-
Notifications
You must be signed in to change notification settings - Fork 423
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
G729 encode problem #707
Comments
https://github.com/sipsorcery-org/SIPSorceryMedia.Windows/blob/master/src/WindowsAudioEndPoint.cs#L280 Follow this code the first parameter will be 20, but it shold be 160. |
hi @z791382465 , Which library are you using to Encode / Decode sound ? |
SIPSorcery.Media.AudioEncoder
SIPSorceryMedia.Windows.WindowsAudioEndPoint |
I never used SIPSorceryMedia.Windows.WindowsAudioEndPoint. I created recently a new package SIPSorceryMedia.SDL2 which should work with G729 I'm sure this library is working with PCMU (G711), PCMA (G711), G722 and Opus since I have tested them in a real WebRTC context. (using Edge / Chrome browser as remote peer - the sound was good in both direction) G729 is not used in WebRTC context so I cannot test it in real context. I have just tested it using an Audio Input source (from a file or a Microphone) then I encode it and decode it to finally check the result in an Audio Output |
Thank you for your help. SIPSorcery.Media.AudioEncoder is working. |
Yes, I confirm. I use it correctly for PCMU (G711), PCMA (G711), G722 and G729
It could also be linked to the way to deal with "frame size". Perhaps you have to take "frame" by "frame" the audio raw received before to encode it and then call OnAudioSourceEncodedSample |
I succeed in sip call with G711, G722, G729 codec.
|
Using which packages ? SIPSorceryMedia.SDL2 or SIPSorceryMedia.Windows ? Both ?
Sorry but I don't use / manage these packages. So I can't help more. |
I only use SIPSorceryMedia.Windows. |
I use sipsorcery to answer a sip audio call with G729 codec.
On sipsorcery side listen audio normally, but on caller side hear the noise(can hear volume change on speaking).
The text was updated successfully, but these errors were encountered: