Robotics voice for multiple audio tracks

78 views
Skip to first unread message

Alex Mal

unread,
Jun 19, 2025, 3:07:09 AM6/19/25
to discuss-webrtc
Hello everyone. I ran into a robotic voice issue when trying to transmit audio data in an additional track.
What am I doing:
1. Creating a transceiver
2. I have a LocalAudioSource implementation for getting data.
3. I create a track and install it in the transceiver->sender.
4. I transfer the data to onData.

I can hear the robotic voice on the other device.
If I turn off the track from the microphone, then everything works fine. Otherwise, I hear the loss of a large number of packets.
Opus codec is used for encoding.

Maybe someone has encountered something like this? Which way to look?

Evgeniy Sorokin

unread,
Jun 24, 2025, 11:02:27 AM6/24/25
to discuss-webrtc
Hello,

it would help if you show snippet of your code

четверг, 19 июня 2025 г. в 10:07:09 UTC+3, Alex Mal:

Alex Mal

unread,
Jun 27, 2025, 2:00:26 AM6/27/25
to discuss-webrtc
I figured out the problem There are two senders involved in the audio transmission. As a result, I get doubled audio data in one of the audio streams. It looks like a mistake. Since the data is written of onData of my AudioSource and the webrtc AudioTransport. But I still don't understand how to do this in different streams.

четверг, 19 июня 2025 г. в 10:07:09 UTC+3, Alex Mal:
Hello everyone. I ran into a robotic voice issue when trying to transmit audio data in an additional track.
Reply all
Reply to author
Forward
0 new messages