英文:
PyVoIP write_audio send really bad quality sound
问题
我使用pyvoip 2.0.0-dev(因为它支持OPTIONS请求和摘要认证)。我有这个音频文件,当我的脚本在电话上使用write_audio方法时,我只听到噪音。这可能与客户端和服务器上的不同代码或服务器不支持PCMA\PCMU编码有关吗?
英文:
I use pyvoip 2.0.0-dev(because it's supporting OPTIONS requests and digest auth). I have this audio file and when my script uses write_audio method on the phone I hear only noises. Can it related with different codes on the client and server or server doesn't support PCMA\PCMU codes?
答案1
得分: 1
注意:音频必须为8位、8000Hz和单声道/1通道。您可以在一个名为Audacity的免费程序中完成这个操作。要将音频录制为单声道,请转到“轨道” > “混合” > “将立体声混合为单声道”。要将音频录制为8000 Hz,请转到“轨道” > “重采样…”,然后选择8000,然后确保左下角的“项目速率”也设置为8000。要将音频录制为8位,请转到“文件” > “导出” > “导出为WAV”,然后将“保存类型:”更改为“其他未压缩文件”,然后将“标题:”设置为“WAV(Microsoft)”,然后将“编码:”设置为“无符号8位PCM”。
一旦您获得了音频,它将可以工作,但音频质量很差,我希望改进它。
英文:
Note: Audio must be 8 bit, 8000Hz, and Mono/1 channel. You can accomplish this in a free program called Audacity. To make an audio recording Mono, go to Tracks > Mix > Mix Stereo Down to Mono. To make an audio recording 8000 Hz, go to Tracks > Resample… and select 8000, then ensure that your ‘Project Rate’ in the bottom left is also set to 8000. To make an audio recording 8 bit, go to File > Export > Export as WAV, then change ‘Save as type:’ to ‘Other uncompressed files’, then set ‘Header:’ to ‘WAV (Microsoft)’, then set the ‘Encoding:’ to ‘Unsigned 8-bit PCM’
once you got the audio will work , but quality audio is bad , I will love to improve it
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论