Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I interrupt between Client to Client voice call? #615

Closed
shehzadraheem opened this issue Jul 30, 2024 · 2 comments
Closed

Can I interrupt between Client to Client voice call? #615

shehzadraheem opened this issue Jul 30, 2024 · 2 comments

Comments

@shehzadraheem
Copy link

Actually, I want to build a live voice translated app.
Let suppose client A speaks English and client B speaks German.

When client A makes a voice call to client B, then during a call I want to get client A audio and dubbed that audio file into a German language and then place that audio file into the call again. So that user B listen it in German and vice versa.

Is it possible? How can I do that with Twilio?

@afalls-twilio
Copy link
Contributor

@shehzadraheem hmm.. there is not an easy way to do this... Twilio doesn't offer an on device dubbing service. Do you have your own dubbing service that is very low latency (sub 100 ms)?....

If so, while its not simple, what you could do is create a custom audio device, and then when you receive the incoming PCM data, you could send that PCM data in real-time to the dubbing service and then have the dubbing service route the audio to the phones speaker.

@shehzadraheem
Copy link
Author

shehzadraheem commented Aug 6, 2024

@afalls-twilio Thanks for your response.
According to this Twilio article, when user call to a Twilio phone number, then his voice will be converted to text (speech-to-text).

There is another article in which ElevenLabs, is integrated with Twilio, and they performed (text-to-speech)

I can merge them.

Now my concern is, how can I call from Twilio phone number to other Twilio phone number (number-to-number)?
Instead of client ID to number or client ID to client ID.

Can you please check issue #614

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants