file does not start with RIFF id(python)
在使用語音識別API的時候出現報錯
file does not start with RIFF id
參考連結如下:
https://stackoverflow.com/questions/25672289/failed-to-open-file-file-wav-as-a-wav-due-to-file-does-not-start-with-riff-id
所以最終解決方案如下:
apt-get install ffmpeg
然後
ffmpeg -i out_test7.mp3 out_test7.wav
也就是從mp3檔案轉化為wav檔案
然後這個wav檔案就可以在python程式碼中被識別。
當然,會有新問題存在,就是識別不準的問題,但是起碼報錯不見了。
相關文章
- According to TLD or attribute directive in tag file, attribute value does not accept any expressionExpress
- ubuntu apt update 提示 The repository ‘http://xxx Release‘ does not have a Release fileUbuntuAPTHTTP
- Android解決The APK file app-debug.apk does not exist on disk.AndroidAPKAPP
- streamlit run執行報錯,Invalid value: File does not exist: XXX.py
- JDK 載入jar中的檔案資源出現Cannot be resolved to absolute file path because it does not reside in the file systemJDKJARIDE
- Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of ex...UIAIAPPiPhone
- 阿里雲oss的檔案無法使用URL訪問,返回:This XML file does not appear阿里XMLAPP
- read content in a text file in pythonPython
- Python--File及OS操作Python
- pgsql 執行建庫指令碼時候出現ERROR: relation "xxx_id_seq" does not existSQL指令碼Error
- mac scrcpy 報錯 does not exist or is not a regular file,ERROR: Server connection failed(scrcpy mac與極空間衝突)MacErrorServerAI
- Python函式每日一講 - id()Python函式
- python中file物件的常用方法Python物件
- python file 檔案操作筆記Python筆記
- start uniappAPP
- ssserver -c /etc/shadowsocks.json --log-file /var/log/shadowsocks.log -d start啟動失敗ServerJSON
- Python 根據id生成唯一碼Python
- Python3之檔案操作filePython
- Python BUG FileExistsError: [Errno 17] File exists: xxxPythonError
- Python程式碼解析: job = next(job for job in jobs if job.job_id == job_id)Python
- What does -> do in clojure?
- does not support SSL connections
- ‘map’ does not name a type
- AVI音視訊封裝格式學習(二)——AVI RIFF檔案參考封裝
- 整合 Python標準庫之 Path/File 類Python
- rac中 crsctl start/stop crs and crsctl start/stop cluster 區別
- The label does not denote a loop in forEachOOP
- What does "xargs grep" do?
- error: 'cout' does not name a type|Error
- error: ‘xxx’ does not name a typeError
- 3.1.5.6 Forcing an Instance to Start
- 開發springboot startSpring Boot
- python libclntsh.so.12.1: cannot open shared object filePythonObject
- 虛擬環境bin/python: bad interpreter: No such file or directoryPython
- Waring: /dev/centos/swap does not existdevCentOS
- Property [title] does not exist on this collection instance
- PSQLexception: ERROR : type "signed" does not existSQLExceptionError
- AUTO START ORACLE ON LINUX(zt)OracleLinux
- where to start, from where the end