Mike
Mike

Reputation: 401

Twilio: test speaker/microphone

Using Twilio, how can I create a JS widget that can listen to the microphone and output its sound through the speakers, as a loopback?

Upvotes: 0

Views: 450

Answers (1)

philnash
philnash

Reputation: 73065

Twilio developer evangelist here.

I don't believe you need Twilio for that. You can just use the getUserMedia API to capture a user's microphone and then play it back with an HTML5 <audio> tag.

I'd like to recommend you don't do this though. Whilst building video chats and testing with myself, the feedback is horrible and no-one wants to experience it!

Upvotes: 1

Related Questions