Reputation: 123
I can successfully record voice within the browser using Twilio.js lib.
I would like to display a count down timer once the recording begins which happens when the "beep" is played.
Is there any way for the client lib to detect the recording start / beep so that I can start count down timer?
Upvotes: 1
Views: 181
Reputation: 10366
Twilio evangelist here.
There is no way for the client to tell you that a "beep" has occurred. What you could do is at the beginning of the call, prompt the user to press a button on the web page to start recording. That button press can do two things:
<Gather>
verb. Once the gather completes you can tell Twilio to start recording.The timing between the client and exactly when the client starts won't be 100% in sync, but it should be pretty close.
Hope that helps.
Upvotes: 1