sipsorcery-org / sipsorcery

A WebRTC, SIP and VoIP library for C# and .NET. Designed for real-time communications apps.
https://sipsorcery-org.github.io/sipsorcery
Other
1.42k stars 431 forks source link

voipMediaSession.AudioExtrasSource.SendAudioFromStream more than one play starts with extra noise #1048

Closed Zozox1 closed 7 months ago

Zozox1 commented 7 months ago

Hello

I'm doing var fileStream = new FileStream(file, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); var sendAudio = voipMediaSession.AudioExtrasSource.SendAudioFromStream(fileStream, AudioSamplingRatesEnum.Rate8KHz)

To play pcm files. It works correctly. After the first file played, Each file starts playing with small noise that is not from the stream. if it can be described in words it is close to a dot.

I would like to be able to play clean file audio after the first file played. What can i do ?

Thank you in advance

danielG1337 commented 5 months ago

@Zozox1 Did you find a solution to your Problem? I ran into the same problem.