question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Voice Messages - Hold and send mode

See original GitHub issue

We consider here the first steps to support the voice messages in element-android.

MSC2516 is under review to add a new message type for voice messages. We will have to use org.matrix.msc2516.voice as the msgtype for now, but once it’s in the spec properly then we can switch to m.voice. What will probably end up happening is in code there will be a if (msgtype === "org.matrix.msc2516.voice" || msgtype === "m.voice") statement for several releases, once m.voice is allowed.

The first supported mode will be the “hold and send” mode defined by the following points:

  • Voice messages Hold and send
    • Add a voice message button to the composer
    • OnLongPress on the MIC, it gets activated and the recording start. If the user releases the finger, the message gets sent
    • Voice messages last up to 2min. On the last 10s a toast notification is displayed warning users of time left. In this mode, if the user goes over the limit, the message gets sent.
  • Cancel Swipe Left interaction
    • The user has just activated the Voice recording mode. This opens the locking system.
    • If the MIC button is moved towards the left, the Cancelling mode is activated.
    • The chevron, Slide to cancel string and Mic button are attached which means that they all move together
    • Once the chevron and the begining of the string reaches the recording area, the recording is cancelled. A vibration is triggered as soon as it is cancelled.
    • Once cancelled, it returns to the default mode
  • Sending a voice message
    • While sending the voice message, the message is showing the audio bar and a progress
    • Once sent, the sent tick is shown
  • Playing back a sent voice message
    • sent voice messages will be displayed with an audio visualiser bar and a play button
    • Part of the audio file that has been played is darker
  • As soon as the user is typing, the Mic is replaced with the Send button

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:30
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

12reactions
efeloncommented, Apr 7, 2021

Speaking from experience with my wife and her circle of voice messengers 😉 , 2 Minutes only covers about 60-80% of their regular messages. Having all those kind of users on board without a negative first expression of that feature would boost popularity a lot in my opinion. Please consider those options in that order:

  1. No time/size limit
  2. If a fixed limit is necessary, go higher (5 min. - 10 min)
  3. Have a setting for the time limit

For my case having voice messages is the last big resort which prevents me from switching and maybe even “forcing” everyone around me to matrix.

8reactions
giomfocommented, Apr 1, 2021

Is there a technical reason for this hard limit?

No, this is a design reason

Read more comments on GitHub >

github_iconTop Results From Across the Web

Send & receive text & voice messages in Messages
Open the Messages app . Open a chat. Tap and hold a message. Tap More and then Forward. Choose your contact. Tap Send...
Read more >
How to Send Voice Messages on iPhone - Lifewire
1. Open the Messages app on your iPhone. If you have an existing conversation with your recipient, select it to open it. If...
Read more >
Send photos and videos in Messages on iPhone
In a Messages conversation, tap the Camera button , then choose Photo or Video mode. · Tap the Effects button · Tap the...
Read more >
How to Send a Voice Recording in a Text Message on iPhone
In this video I'll show you how to send a voice recording in a text message on your iPhone.See more videos by Max...
Read more >
Send a Message Using Hold and Talk - Voxer Support
Select your desired chat. Tap and hold the "Hold and Talk" orange button. It's as simple as that! *Note that your message is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found