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程式碼中被識別。
當然,會有新問題存在,就是識別不準的問題,但是起碼報錯不見了。
相關文章
- PatchObject constructor:Input file does not existObjectStruct
- java.lang.IllegalArgumentException: Path index does not start with a "/" charactJavaExceptionIndex
- Android解決The APK file app-debug.apk does not exist on disk.AndroidAPKAPP
- Exchange 2000/2003 System Attendant does not start after disaster recovery installation, event ID 90AST
- JDK 載入jar中的檔案資源出現Cannot be resolved to absolute file path because it does not reside in the file systemJDKJARIDE
- OPatch failed with error code 135, Given 'ocmrf' file does not existsAIError
- Squid - A quick start guide(轉)GUIIDE
- oracle for linux安裝報錯 file /home/oracle/.Xauthority does not existOracleLinux
- Oracle DataPump Quick Start [ID 413965.1]OracleUI
- The file '/MasterPage.master' does not exist. 類錯誤解決方法AST
- 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
- Although it does not provide the most Parajumpers On SaleIDE
- centos 7.2執行yum -y install報錯Metadata file does not match checksumCentOS
- python unix :No such file or directoryPython
- relation with OID 637165 does not exist
- No Response from the Server, Does it Hang or Spin? (Doc ID 68738.1)Server
- why app_start startAPP
- Troubleshooting when srvctl can't start RAC instance, but sqlplus can start it [ID 844272.1]SQL
- How does OUI check if the HACMP software is installed? [ID 738574.1]UIACM
- `QtValidLicenseForCoreModule' does not name a type 錯誤的解決QTREM
- ORA-27054: NFS file system where the file is created or resides is ......NFSIDE
- .Net Core使用File ProvidersIDE
- ORA-27054: NFS file system where the file is created or resides is not mountedNFSIDE
- ndk編譯錯誤:error: 'override' does not name a type編譯ErrorIDE
- Python--File及OS操作Python
- 阿里雲oss的檔案無法使用URL訪問,返回:This XML file does not appear阿里XMLAPP
- Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of ex...UIAIAPPiPhone
- android studio Error:Unable to start the daemon process【轉】AndroidError
- Android error “Could not get BatchedBridge, make sure your bundle is packaged properly” on start ofAndroidErrorBATPackage
- How to Start 11gR2 Grid Infrastrucure in Exclusive Mode (Doc ID 1364971.1)AST
- MySQL server PID file could not be found!MySqlServer
- Linux格式化分割槽報錯Could not start /dev/sda No such file or directory 解決辦法Linuxdev
- python中file物件的常用方法Python物件
- python file 檔案操作筆記Python筆記
- read content in a text file in pythonPython
- Python 檔案(file)處理 例子Python
- CRS can not Start After Node Reboot (文件 ID 733260.1)boot