久久久久久久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 檢測圖像中矩形的中心和角度)
主站蜘蛛池模板: 色综合一区二区三区 | 一区二区视频在线观看 | 成人福利电影 | 国产在线观看网站 | 国产精品久久国产精品 | 国产小视频在线 | 日韩成人精品一区 | 国产精品久久久久久久岛一牛影视 | 人人人人爽 | 国产成人在线播放 | 国产精品久久亚洲 | 久久免费香蕉视频 | 成年人黄色免费视频 | 国产sm主人调教女m视频 | 久久久久久久久久久91 | 日本韩国欧美在线观看 | 翔田千里一区二区 | 色精品视频 | 日韩免费看片 | 六月成人网 | 欧美精品在线观看 | 国产欧美一区二区三区在线看 | 亚洲国产欧美日韩 | 国产欧美一区二区三区日本久久久 | 欧美日韩高清在线一区 | 国内精品久久久久久久 | 毛片av免费在线观看 | 精品美女视频在免费观看 | 91精品久久久久久久久久小网站 | 91精品国产乱码久久久久久久 | 欧美三级成人理伦 | 日韩视频在线免费观看 | 日韩精品在线一区 | 色综合视频 | 久久成人一区二区三区 | 欧美一区2区三区4区公司 | 91色综合 | 国产黄色大片在线免费观看 | 69热视频在线观看 | 亚洲精品免费视频 | 国产午夜精品一区二区三区嫩草 |