日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

python音频识别_音频识别和比较

發布時間:2023/12/20 python 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python音频识别_音频识别和比较 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

已關閉。這個問題需要更加集中。它當前不接受答案。

想改善這個問題嗎?更新問題,使其僅通過編輯此帖子來關注一個問題。

2年前關閉。

我正在做一個小組項目。我們正在尋求開發一種程序,該程序可以接收音頻并將其與保存的音頻文件進行比較,并在輸入和保存的文件匹配時輸出音頻消息。

我們想將音頻文件與某種python方法進行比較,但是我們還找不到任何方法可以做到這一點。我們正在尋找某種類型的庫,以便能夠從每個文件中獲取數據并查看它們是否相似。

無法弄清楚如何開始。如果有人可以幫助我們入門或為我們指明正確的方向,我認為我們可以從那里接下去。

我們已經看了幾十本教程,在網絡上搜索,仍然需要一些主要幫助。有人可以向我們解釋如何開始嗎?

解決方案

Python有很多方法可以做到這一點。我認為您可以比較文件而無需廣泛的音頻庫。我可能是錯的。否則,請查看struct模塊以將wave文件轉換為可讀的整數。試試這個看看是否可行。

importwavew_one=wave.open('file_one','r')w_two=wave.open('file_two','r')ifw_one.readframes()==w_two.readframes():print('exactly the same')else:print('not a match')

The audio message output is uneccassary and will take a TTS library, so just stick with print. You could just read aloud the results. Tell me if it worked. Right now I'm on mobile, so I can't test it, but it should work. You could also just save yourself saying something, then run it in python using:

importosos.system('prerecorded message.wav')

Make sure your audio is wave files.

I hope I was of help. Have fun at the science fair!

If you want it to be if the audio files are similar, you'll have to take each frame and set a range in frequencies that they can be apart, then compare starting at all points in the file. Then you'll have to make a recursive for loop that breaks when it's not in range and starts from the next point in the file. That would be one heck of a project, good luck! You may also create a noise reducing algorithm for background noise, which would be some complicated math. If you want to see if they're

an exact match, use the above code. As for streaming the audio, there won't really be a way to get rid of the background noise, so you might want to look into some modules for that... also a saved audio file and a recorded audio file have less then a 1/44000^s (s is time in seconds of the audio) chance of being exactly the same. You may have to just use the Alexa server

It may be hard to get rolling with python, but once you break past the barrier of understanding, you can do some pretty cool things. I just recently made a graphics wrapper for python's turtle, which I programmed to display a flying rocket ship in 3D! That may either sound like Greek to you, or not sound like much, but it's pretty cool to see something you made work so well.

#Comparing them may be easier than I thoughtfromscipy.io.wavfileimportreadaswavread[samplerate,y]=wavread('Comparison.wav')[samplerate,z]=wavread('Recording.wav')forxinrange(0,samplerate,4):#Slight compression for the program to run faster.y1,y2=[y[x][0],y[x][1]]#y1,y2 are numbers for your in Comparison.wav. Use these to compare to file 2.z1,z2=[z[x][0],z[x][1]]#z1,z2 are numbers for you to compare.#Install scipy by holding down the window's Button & R. Then type in#pip install scipy#You may have to press enter a few times to get it to work, but overall, be patient. You should be able to figure out how to compare the files from here.

總結

以上是生活随笔為你收集整理的python音频识别_音频识别和比较的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: www日本黄色| 国产精品一区一区三区 | 成人在线观看网 | 狠狠一区二区 | 成人在线视频免费播放 | 国产在线一二三区 | 久视频在线| 国产精品无码专区av在线播放 | a级成人毛片 | 风流僵尸艳片a级 | 女生张开腿给男生桶 | mm131美女大尺度私密照尤果 | 窝窝在线视频 | 精品国产久 | 亚洲福利一区二区三区 | 亚洲三级免费 | 国产91传媒| 亚洲乱码国产乱码精品精大量 | 操操色| 色丁香av | 成人乱人乱一区二区三区一级视频 | 亚洲蜜桃精久久久久久久久久久久 | 日本国产一区二区三区 | 天堂在线播放 | 亚洲精品四区 | 欧美视频色 | 日本成人在线网站 | 麻豆伦理片 | 国产毛片电影 | 国产激情久久久久久熟女老人av | 欧美日韩中 | 亚洲va韩国va欧美va | 日韩美一区二区三区 | 蜜桃tv在线观看 | 中文在线不卡视频 | av网站大全在线观看 | 波多野吉衣视频在线观看 | 四虎国产 | 毛片无限看 | 人人艹人人爽 | 真人bbbbbbbbb毛片 | 少妇专区| 激烈娇喘叫1v1高h糙汉 | 久久久久久九九九 | 麻豆传媒在线观看 | 亚洲欧美小视频 | 欧美另类一区二区 | 日韩毛片一区二区三区 | 岛国av电影在线观看 | 天天色天天 | 黄色一级片免费观看 | 国产精品理论片在线观看 | 成人欧美一区二区三区在线观看 | 人妻精品久久久久中文字幕 | 一区二区三区在线免费观看 | 天天都色| 欧美xxxx精品 | 日韩精品一线二线三线 | 伊人影院中文字幕 | 黄页网站视频 | 日韩精品成人 | 午夜你懂的 | www.av在线| 国产一区在线看 | 三叶草欧洲码在线 | 亚洲av区无码字幕中文色 | 拔插拔插海外华人免费视频 | 草草影院网址 | 久久激情综合网 | 国产h视频在线观看 | 亚洲伦理网| 男女那个视频 | 999视频在线观看 | 91深夜福利| 黄色av免费网站 | 抽插丰满内射高潮视频 | 久久成人a毛片免费观看网站 | 人妻无码一区二区三区四区 | 米奇久久 | 成人一区二区精品 | 国产精品剧情 | 欧美一二三 | 熟女人妻一区二区三区免费看 | 国模私拍在线观看 | 天天综合久久 | 国产一二在线 | 国产sm主人调教女m视频 | 曰批女人视频在线观看 | 白嫩情侣偷拍呻吟刺激 | 亚洲一区免费在线观看 | 91av在线免费 | 女警白嫩翘臀呻吟迎合 | 超碰在线免费播放 | 两根大肉大捧一进一出好爽视频 | 九九热国产在线 | 爱啪啪网站| 波多野结衣二区 | 日韩欧美一区二区在线观看 | 一个色综合网 |