soundfile.LibsndfileError: Error opening <_io.BytesIO object at ... Runtime error: format not recognized

字號+ 編輯: 国内TP粉 修訂: 种花家 來源: 2024-05-12 我要說兩句(0)

批量處理.wav文档的噪音時, 在https://github.com/bastibe/python-soundfile/issues/309研究過, 無果, 後來換了一個方法

在用GPT處理音頻會用到批量降噪工具, 其中soundfile處理.wav音頻文档時, 會發現階段性的報錯誤:

soundfile.LibsndfileError: Error opening <_io.BytesIO object at xxxxxxxxxx Runtime error: format not recognized

上網查了一圈, 測試以下方法均無效:

  • 有的說是因爲中文文档名的緣故, 改爲純數字文档名。

  • 嘗試將音頻文档的切片切的更短。

  • 用格式工廠批量將文档目標格式轉成.wav, 編碼器選擇PCM_S16LE。

  • 把源文档名改的很短。

最後嘗試了github上一款叫decums的降噪軟體, 解決問題。

https://github.com/facebookresearch/demucs

閲完此文,您的感想如何?
  • 有用

    2

  • 沒用

    0

  • 開心

    0

  • 憤怒

    0

  • 可憐

    0

1.如文章侵犯了您的版權,請發郵件通知本站,該文章將在24小時内刪除;
2.本站標注原創的文章,轉發時煩請注明來源;
3.交流群: 2702237 13835667

相關課文
  • 通過i參數使用國内鏡像給pip安裝提速

  • Conda刪除不用的虛擬環境

  • flask框架知識點總結

  • linux - centos 7.x安裝python3.10教程

我要說說
網上賓友點評