wav

Coverting webm to wav with ffmpeg

情到浓时终转凉″ 提交于 2020-12-13 03:54:56
问题 I've succesfully used ffmpeg in Python to convert mp3-files into wav so I can post them to Google Speech-To-Text. Now I have same situation with webm files and the old function I have doesn't work. It should convert the file into wav and split it into 15 second chunks. Can I do this from webm -file or do I need to convert it first into some other format? The function I've used: def convert_and_split(filename): command = ['ffmpeg', '-i', filename, '-f', 'segment', '-segment_time', '15', '-c',

Coverting webm to wav with ffmpeg

夙愿已清 提交于 2020-12-13 03:53:08
问题 I've succesfully used ffmpeg in Python to convert mp3-files into wav so I can post them to Google Speech-To-Text. Now I have same situation with webm files and the old function I have doesn't work. It should convert the file into wav and split it into 15 second chunks. Can I do this from webm -file or do I need to convert it first into some other format? The function I've used: def convert_and_split(filename): command = ['ffmpeg', '-i', filename, '-f', 'segment', '-segment_time', '15', '-c',

librosa can't open .wav created by librosa?

心已入冬 提交于 2020-08-03 02:19:50
问题 i'm trying to use librosa to generate some data by cutting 1s pieces from some .wav file with a duration of 60s. This part works, i create all my files and i can also listen to them via any player, but if i try to open them with librosa.load i receive this error: >>> librosa.load('.\\train\\audio\\silence\\0doing_the_dishes.wav', sr=None) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\gionata\AppData\Local\Programs\Python\Python36\lib\site\packages

librosa can't open .wav created by librosa?

流过昼夜 提交于 2020-08-03 02:19:10
问题 i'm trying to use librosa to generate some data by cutting 1s pieces from some .wav file with a duration of 60s. This part works, i create all my files and i can also listen to them via any player, but if i try to open them with librosa.load i receive this error: >>> librosa.load('.\\train\\audio\\silence\\0doing_the_dishes.wav', sr=None) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\gionata\AppData\Local\Programs\Python\Python36\lib\site\packages

Convert RTP Payload (payload type 107, AMR-WB 16khz 1Channel) to .wav

点点圈 提交于 2020-07-10 10:29:40
问题 I'm working in Python 3.6 under Linux Ubuntu and I used the Scapy lib to extract data from a bin file which contained the following stack: IP/UDP/RTP. The RTP-PAYLOAD TYPE is 107 (dynamic), a=rtpmap:107 AMR-WB/16000/1. I put it into a file in raw format and I called it src.aud , but it also wouldn't be a problem to put write it in hex. Now what do I have to do exactly to transform it into audio data format like .wav or .mp3 for example, which is on every computer? I've already made an' effort

Convert RTP Payload (payload type 107, AMR-WB 16khz 1Channel) to .wav

99封情书 提交于 2020-07-10 10:29:10
问题 I'm working in Python 3.6 under Linux Ubuntu and I used the Scapy lib to extract data from a bin file which contained the following stack: IP/UDP/RTP. The RTP-PAYLOAD TYPE is 107 (dynamic), a=rtpmap:107 AMR-WB/16000/1. I put it into a file in raw format and I called it src.aud , but it also wouldn't be a problem to put write it in hex. Now what do I have to do exactly to transform it into audio data format like .wav or .mp3 for example, which is on every computer? I've already made an' effort