久久久久久久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 檢測圖像中矩形的中心和角度)
主站蜘蛛池模板: 久久99久久99精品免视看婷婷 | 琪琪午夜伦伦电影福利片 | 欧美不卡视频一区发布 | 国产91亚洲精品一区二区三区 | 亚洲欧美一区二区三区1000 | 国内精品视频在线 | 国产午夜精品一区二区三区嫩草 | 久久精品亚洲国产 | 天天拍天天草 | 91欧美精品 | 欧美精品1区2区 | 亚洲综合二区 | 91一区二区三区在线观看 | 天天干天天插天天 | 伊人精品久久久久77777 | 欧美日韩国产一区 | 亚洲成人av在线 | 久久久久久久久99 | 亚洲视频免费在线观看 | 亚洲一一在线 | 天天操天天玩 | 日韩理论电影在线观看 | 亚洲欧美国产一区二区三区 | 日韩成人精品一区二区三区 | 国产精品久久国产精品久久 | av一级一片 | 久久亚洲国产精品 | 天堂三级| 亚洲一区在线日韩在线深爱 | 亚洲精品一区在线 | 91精品国产91久久综合桃花 | 爱爱视频在线观看 | 成人一级片在线观看 | 国产精品久久久亚洲 | 日韩欧美在线视频 | 99免费精品视频 | 亚洲 日本 欧美 中文幕 | 亚洲精品乱码久久久久久按摩观 | 在线播放中文 | 在线视频亚洲 | 一区二区在线 |