久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何在沒有音頻庫的情況下編輯原始 PCM 音頻數據

How to edit raw PCM audio data without an audio library?(如何在沒有音頻庫的情況下編輯原始 PCM 音頻數據?)
本文介紹了如何在沒有音頻庫的情況下編輯原始 PCM 音頻數據?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我對精確提取 PCM WAV 文件的各個部分感興趣,直到樣本級別.大多數音頻模塊似乎都依賴于特定于平臺的音頻庫.我想做這個跨平臺,速度不是問題,有沒有原生的python音頻模塊可以做到這一點?

I'm interested in precisely extracting portions of a PCM WAV file, down to the sample level. Most audio modules seem to rely on platform-specific audio libraries. I want to make this cross platform and speed is not an issue, are there any native python audio modules that can do this?

如果沒有,我將不得不解釋 PCM 二進制文件.雖然我確信我可以相當容易地挖掘 PCM 規范,并且原始格式很容易理解,但我以前從未真正用 Python 處理過二進制數據.有沒有很好的資源可以解釋如何做到這一點?專門與音頻相關的只是錦上添花.

If not, I'll have to interpret the PCM binary. While I'm sure I can dig up the PCM specs fairly easily, and raw formats are easy enough to walk, I've never actually dealt with binary data in Python before. Are there any good resources that explain how to do this? Specifically relating to audio would just be icing.

推薦答案

我看了問題和答案,我覺得我一定遺漏了一些非常明顯的東西,因為沒有人提到以下兩個模塊:

I read the question and the answers and I feel that I must be missing something completely obvious, because nobody mentioned the following two modules:

  • audioop:操作原始音頻數據
  • wave:讀寫WAV文件
  • audioop: manipulate raw audio data
  • wave: read and write WAV files

也許我來自平行宇宙,Guido 的時間機器實際上是一個時空機器 :)

Perhaps I come from a parallel universe and Guido's time machine is actually a space-time machine :)

如果您需要示例代碼,請隨時詢問.

Should you need example code, feel free to ask.

PS 假設 48kHz 采樣率,24/1.001==23.976023976... fps 的視頻幀長度為 2002 個音頻樣本,而 25fps 的視頻幀長度為 1920 個音頻樣本.

PS Assuming 48kHz sampling rate, a video frame at 24/1.001==23.976023976… fps is 2002 audio samples long, and at 25fps it's 1920 audio samples long.

這篇關于如何在沒有音頻庫的情況下編輯原始 PCM 音頻數據?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to draw a rectangle around a region of interest in python(如何在python中的感興趣區域周圍繪制一個矩形)
How can I detect and track people using OpenCV?(如何使用 OpenCV 檢測和跟蹤人員?)
How to apply threshold within multiple rectangular bounding boxes in an image?(如何在圖像的多個矩形邊界框中應用閾值?)
How can I download a specific part of Coco Dataset?(如何下載 Coco Dataset 的特定部分?)
Detect image orientation angle based on text direction(根據文本方向檢測圖像方向角度)
Detect centre and angle of rectangles in an image using Opencv(使用 Opencv 檢測圖像中矩形的中心和角度)
主站蜘蛛池模板: 国产欧美精品一区二区 | 中文字幕免费 | 二区三区av | 午夜精品久久久久久久星辰影院 | 一区在线视频 | 欧美在线观看网站 | 国产成人精品久久二区二区 | 欧美涩| 三级成人在线观看 | 亚洲永久免费 | 成人免费网站 | 男人的天堂久久 | 欧美中文在线 | 五月激情综合 | 伊人久久在线 | 欧美一区二区三区 | 国产一区二区三区四区在线观看 | 蜜月va乱码一区二区三区 | 精品一二 | 视频一区二区三区中文字幕 | 精品久久免费 | 性做久久久久久免费观看欧美 | 久久久综合 | 爱爱小视频 | 中文字幕在线网 | 精品欧美一区免费观看α√ | 国产丝袜人妖cd露出 | 国产精品久久久久久二区 | 91麻豆精品国产91久久久久久久久 | 在线观看亚洲欧美 | 国产精品国产三级国产aⅴ无密码 | 美女在线一区二区 | 日本久久网 | 中文字幕在线观看一区 | 亚洲国产精品视频一区 | 久久久成人一区二区免费影院 | 久久精品亚洲精品 | 99热播精品 | 国产成人免费视频网站视频社区 | 欧洲亚洲一区二区三区 | 国产成人久久精品 |