This message was deleted.
# announcements
s
This message was deleted.
d
try turning off dtx when publishing the track.
🙁 1
m
Where do I do that @dry-elephant-14928?!? Also where can I force to replace the below SDP in LiveKit ReactKS code ?
Copy code
sdp.replace('useinbandfec=1', 'useinbandfec=1; stereo=1; maxaveragebitrate=510000');
Thanks much.
d
no, it's one of the publish options: https://docs.livekit.io/client-sdk-js/interfaces/trackpublishoptions.html livekit doesn't support munging of SDP
which option are you trying to set? perhaps we can expose that via the SDK as an option
👀 1
m
Please do so, to make AUDIO quality good enough we would have to munge SDP sometime @dry-elephant-14928 Now I know that whatever setup we do, its audio will be PHONE-quality only 😞 We will need to replace the standard MONO into STEREO and a few more.
c
you can convert a video or mp3 file with ffmpeg
Copy code
ffmpeg -i someMusic.mp3 -c:a libopus -page_duration 20000 -vn someMusic.ogg
then you can try with the livekit-cli to publish the .ogg file
Copy code
livekit-cli join-room --url <ws://localhost:7880> --room yourRoomName --identity someId --api-key yourKey --api-secret yourSecret --publish someMusic.ogg
I just tried it and it sounds great.
d
Is stereo the option you are trying to set? are there anything else?
❤️ 1
@clean-journalist-37526 is right, if you can programmatically publish the track to livekit directly, that'd be better than trying to mess with browser encoding options.
m
Nahhh @clean-journalist-37526 this is Music Theatre application, all LIVE mate 😄 We have to LIVE mixing voice + background music (something like Karaoke), that is the intention.
😉 1
@dry-elephant-14928 I believe that the quality of the audio is extremely important and being able to publish truly STEREO music is something we should be able to do. Something like the below will help much. sdp = sdp.replace('useinbandfec=1', 'useinbandfec=1; stereo=1; maxaveragebitrate=<max_bitrate*1000>'); Thanks.
@ambitious-painter-74948 @bored-queen-98073
@dry-elephant-14928 if possible, we should be able to try trial/error the option below also to completely avoid variable bitrate for audio, and instead of
Copy code
a=fmtp:111 minptime=10; cbr=1
...meaning either 2 options: sdp = sdp.replace('useinbandfec=1', ''useinbandfec=1; stereo=1; sprop-stereo=1; maxaveragebitrate=<max_bitrate*1000>'); OR sdp = sdp.replace('useinbandfec=1', 'cbr=1; stereo=1; sprop-stereo=1; maxaveragebitrate=<max_bitrate*1000>'); in SDP as well. If possible let us try these both.
We are "munging" the LiveKit SKD client, and will test. Will share the code changes here.