Open CommanderRedYT opened 1 year ago
I tried it with both latest pip package and directly via master, always the same result. I added logging and I saw that the transmit function inside the library is doing something however. Can someone help?
This is working for me:
def answer(self, call):
script_dir = os.path.dirname(os.path.realpath(__file__))
wav_file_path = os.path.join(script_dir, 'audio/output.wav')
f = wave.open(wav_file_path, 'rb')
call.answer()
data = f.readframes(160)
while data:
call.write_audio(data)
data = f.readframes(160)
f.close()
Recording quality in the transmission is decent, but I hear small gaps while the record is being transmitted. If it works for you please let me know if you have that other same issue.
Nope, I still hear nothing.
Is there a chance that this lib is broken for linux?
it could be related to audio format. I think the sip clients you use doesn't support PCMU 8bit audio format.
it could be related to audio format. I think the sip clients you use doesn't support PCMU 8bit audio format.
Do you know how I could fix that?
When trying the example code (and replacing the file name with my own), I just hear silence. I tried it with both a Gigaset telephone and the Linphone android app.