日韩性视频-久久久蜜桃-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音频识别_音频识别和比较的全部內容,希望文章能夠幫你解決所遇到的問題。

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

主站蜘蛛池模板: 色播久久 | 操三八男人的天堂 | 免费网站黄色 | 天天爱天天插 | 亚洲av成人片色在线观看高潮 | 狂野欧美性猛交xxxx巴西 | 丁香六月av | 欧美视频第一页 | h片免费网站 | 亚洲xx网站 | 欧美性猛交乱大交3 | 黄色高清无遮挡 | 日韩免费高清视频 | 亚洲精久久 | 国产字幕侵犯亲女 | 国产特级aaaaaa大片 | 国产乱码精品一区二三区蜜臂 | 亚洲天堂免费观看 | av片毛片 | 久久精品人妻一区二区 | 欧美成人三级精品 | 国产综合av| 在线观看亚洲视频 | 久久久精品影院 | 国产一区资源 | 久久99精品国产.久久久久久 | 91深夜视频 | 久久久久国产精品无码免费看 | 欧美一级爽aaaaa大片 | 黄瓜视频色 | 一区二区三区高清 | 日本学生初尝黑人巨免费视频 | 一区二区三区在线视频免费观看 | 久久久88 | 久久国产传媒 | 日韩中文字幕在线观看视频 | 人妻精品一区 | 91.xxx.高清在线 | 少妇色欲网 | 性——交——性——乱免费的 | 精品无码人妻一区二区三区品 | 深夜视频一区二区 | h欧美| 日本精品一区视频 | 美日韩久久 | 善良的公与媳hd中文字 | 成人观看视频 | 国产亚洲综合av | 日韩三级视频在线播放 | 91香蕉国产在线观看软件 | 中国成人av | 欧美日韩xxxx| 国产精品美女久久 | 亚洲视频在线一区二区 | kk视频在线观看 | 久久福利小视频 | 成人免费网站在线 | 韩国一区二区三区视频 | 亚洲午夜无码久久 | 日本中文在线 | 国产chinesehd天美传媒 | 日本色图片 | 青青草久久 | 操小妹影院| 国产免费无码一区二区视频 | 男人天堂五月天 | 波多野结衣在线网址 | 国产成人一区二区三区影院在线 | 神马影院午夜伦理 | 五十路母| 一本色道久久综合亚洲精品小说 | 性天堂网 | 亚洲图片综合区 | 欧美区亚洲区 | 激情小说专区 | 长篇乱肉合集乱500小说日本 | 久久国产片 | 欧美黄色a| 日韩免费在线播放 | 欧美永久 | 国产一区二区三区麻豆 | 丰满熟妇人妻中文字幕 | 三上悠亚 在线观看 | 游戏涩涩免费网站 | 成年人在线播放 | 少妇精品 | 污黄视频在线观看 | 91亚洲国产成人精品性色 | 在线免费av播放 | 日韩网红少妇无码视频香港 | 伊人影院在线播放 | 日韩大片一区二区 | 国产深夜福利在线 | 亚洲男人天堂av | 天天看天天摸 | 总裁憋尿呻吟双腿大开憋尿 | 黄色片日韩| 小泽玛利亚在线 | 日韩一区二区三区在线观看 |