博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
python识别音乐歌曲_如何轻松识别您正在听的歌曲
阅读量:2510 次
发布时间:2019-05-11

本文共 7508 字,大约阅读时间需要 25 分钟。

python识别音乐歌曲

python识别音乐歌曲

Do you have a song stuck in your head? Did you listen to a new song and now you’re humming it? Do you just remember a few words from that song? Or even better, are you currently listening to the song? In either case, you’re in luck, because we have got a list of utilities that can help you identify a new song you’ve heard!

你的头上有歌吗? 您是否听过一首新歌,现在正在哼着歌? 您还记得那首歌中的几句话吗? 甚至更好,您目前正在听这首歌吗? 无论哪种情况,您都很幸运,因为我们有一系列实用程序可以帮助您识别所听到的新歌曲!

There can be two situations in which this method is applicable. One, when you’re listening to the song. And two, when you’ve listened to the song and all you remember are some lyrics and the tune of the song. We will discuss both one-by-one.

在两种情况下都可以使用此方法。 第一,当你听歌的时候。 第二,当您听完这首歌后,您所记得的只是歌词和歌曲的曲调。 我们将一对一讨论。

When the Song is Playing

播放歌曲时

Suppose you’re at a party or at any other place, and you hear some music playing. You like the music, and really want to know what it is. No problem! Most (if not all) of us have a smartphone now. Just be sure to have the Shazam ( – ) or SoundHound ( – ) app installed in your smartphone beforehand.

假设您正在聚会或任何其他地方,并且听到一些音乐正在播放。 您喜欢音乐,并且真的想知道它是什么。 没问题! 我们大多数(如果不是全部)现在都拥有智能手机。 只需确保事先在智能手机中安装了Shazam( – )或SoundHound( – )应用程序。

The next time you come across a song that you haven’t heard before, and want to know what it is, fire up the app. Both these apps work the same way. Tap the screen and the app will start listening. It will record a short sample of the song and will begin to upload it once the recording is done. In a few moments, you’ll be presented with the name of the song, the artist, and even more information about the song. The app will also provide you with an iTunes link or other links to buy the song. It’s that simple!

下次您遇到以前从未听过的歌曲并想知道它是什么时,启动该应用程序。 这两个应用程序的工作方式相同。 点按屏幕,该应用将开始收听。 它将录制一首歌曲的简短样本,并在录制完成后开始上载。 稍后,您将看到歌曲名称,艺术家以及有关歌曲的更多信息。 该应用程序还将为您提供iTunes链接或其他链接以购买歌曲。 就这么简单!

However, if you don’t have the app installed, or if your phone doesn’t support these apps, there’s still something you can do. Almost all phones offer a ‘voice recorder’, often built into the phone. So all you need to do is record the song as it is playing, and save it. Then whenever possible, transfer the recording to your computer, and play it back to check if the quality is good enough. Then you have to make sure that ‘Stereo Mix’ is enabled. Basically this allows your computer to record streaming audio. Here’s . Once that’s done, head over to , and click the ‘Click and Sing or Hum’ button.

但是,如果您没有安装该应用程序,或者您的手机不支持这些应用程序,那么您仍然可以做些事情。 几乎所有电话都提供“语音记录器”,通常内置在电话中。 因此,您所要做的就是在播放歌曲时将其记录下来并保存。 然后,尽可能将录音传输到计算机上,然后播放以检查质量是否足够好。 然后,您必须确保已启用“立体声混音”。 基本上,这使您的计算机可以录制流音频。 这是 。 完成后,转到 ,然后单击“ Click and Sing or Hum”按钮。

Then you’ll see the usual Flash player warning, click Yes.

然后,您将看到通常的Flash Player警告,单击“是”。

Now midomi is listening, so play the recorded sound clip and see if midomi is actually recording (you can see the sound level bar move and spikes being created). After some time, the recording will stop, and it will start uploading the recorded clip.

现在,midomi正在收听,因此播放录制的声音片段,并查看midomi是否正在录制(您可以看到声级条的移动和尖峰的产生)。 一段时间后,录制将停止,并且它将开始上传录制的剪辑。

And in a few moments, you will be presented with all the details of the song.

稍后,您将看到歌曲的所有详细信息。

What’s even better is that this method can also be applied to any other audio being played in your computer. So if you’re on YouTube, watching a video which doesn’t mention the music used in the video, you can just open up midomi in a new window or in a new tab and follow the procedure.

更好的是,此方法也可以应用于计算机上正在播放的任何其他音频。 因此,如果您在YouTube上观看未提及视频中使用的音乐的视频,则只需在新窗口或新标签页中打开Midomi,然后按照以下步骤操作即可。

When you have already listened to the song

当您已经听过歌曲时

Once the song has finished playing, there are a few things you can do to identify what it was. Let’s start with the simplest approach: When in doubt, Google it. If you remember any phrase, or any words from the song, just type them into Google, with the word “lyrics” in the end, and you’ll be presented with a couple of search results. Thanks to the various lyrics websites over the web, searching a song by only a few words of the song can bring up accurate results. Chances are, you’ll come across the correct song in the first attempt, and you can look it up on YouTube to confirm if it is the right song. But if the results are mixed, you can search for most of the top results to see which one it was.

歌曲播放完毕后,您可以执行一些操作来识别歌曲的内容。 让我们从最简单的方法开始: 如有疑问,请使用Google 。 如果您还记得任何短语或歌曲中的任何单词,只需将它们键入Google并在单词末尾加上“歌词”,即可看到几个搜索结果。 借助网络上的各种歌词网站,仅用歌曲中的几个单词搜索歌曲就可以带来准确的结果。 您很可能会在第一次尝试中遇到正确的歌曲,然后可以在YouTube上查找该歌曲,以确认它是否正确。 但是,如果结果混合,则可以搜索大多数顶部结果,以查看结果是哪一个。

For example, the other day I was listening to a song on the radio, and all that I remembered out of the whole song was a catchy phrase, almost in the middle of the song. Let’s try looking it up on Google.

例如,前一天我在收音机上听一首歌,而我在整首歌中所记得的只是一个醒目的短语,几乎在歌曲的中间。 让我们尝试在Google上查找它。

I’m presented with several results, and all the results are quite similar.

我看到了几个结果,所有结果都非常相似。

And yes, I have successfully identified the song I was looking for. Confirmed that via YouTube!

是的,我已经成功识别出我想要的歌曲。 通过YouTube确认!

But what if the song you listened was an instrumental, an electronic track. Or even more, a song in a language that you don’t even understand. For that, we need to go manual. Whether you remember anything or not, you might remember the tune of the song, and that’s what we’ll use. Remember midomi? It was actually intended to be used with real human voices, and that’s why it said “sing or hum”. So now you can head over to midomi again, and this time, be sure to have your microphone enabled (instead of stereo mix). Be confident, you need to find a song, and be sure you can do it. Sing the song, let midomi do the searching, and it will hopefully come up with suggestions based on what you sung. But it is worth mentioning, it doesn’t work all the time, so there’s a workaround. Head over to . It is a community of music enthusiasts who can identify most songs and tracks. So visit the site, create an account, and record the song.

但是,如果您听过的歌曲是器乐性的电子曲目,该怎么办? 甚至更多,这是一首您甚至听不懂的语言的歌曲。 为此,我们需要手动操作。 无论您是否记住任何内容,您都可能会记住歌曲的曲调,这就是我们将要使用的。 还记得midomi吗? 实际上,它旨在与真实的人声一起使用,这就是为什么它说“唱歌或嗡嗡”。 因此,现在您可以再次使用Midomi了,这一次,请确保已启用麦克风(而不是立体声混音)。 要有信心,您需要找到一首歌,并确保可以做到。 唱歌,让midomi进行搜索,希望它将根据您演唱的内容提出建议。 但是值得一提的是,它并非始终有效 ,因此有一种解决方法。 前往 。 它是一个音乐爱好者社区,可以识别大多数歌曲和曲目。 因此,请访问该网站,创建一个帐户并录制歌曲。

Also specify the genre and language of the song, if you know what it is. Finally, it never hurts to add a bit more information, like, where you heard it for the first time, and other details that might be helpful. You can also upload a recorded sample if you want to do so. For instrumental tracks, you can either hum the tune, or play it on an instrument if you can do so.

如果您知道歌曲的类型和语言,请同时指定它的类型和语言。 最后,添加更多信息(如您第一次听到该信息的地方)以及可能有用的其他详细信息也无济于事。 您也可以上传已记录的样本。 对于乐器音轨,您可以嗡嗡作曲,也可以在乐器上弹奏。

Your recording will be submitted to the community. Then the members of the community will listen to the song, and hopefully someone will be able to tell you what the song is.

您的录音将提交给社区。 然后,社区成员将听这首歌,并希望有人能够告诉您这首歌是什么。

Now you can go ahead and search for songs or music you’ve heard and liked in the past. And as for the future, be sure to follow the first method (using apps to identify music), it is definitely easier to identify the song while it is playing. So, have you ever tried looking for music this way? Tell us in the comments.

现在,您可以继续搜索过去听到和喜欢的歌曲或音乐。 对于未来,请务必遵循第一种方法(使用应用程序识别音乐),在播放时识别歌曲绝对更容易。 那么,您是否曾经尝试过以这种方式寻找音乐? 在评论中告诉我们。

翻译自:

python识别音乐歌曲

转载地址:http://vbcwd.baihongyu.com/

你可能感兴趣的文章
ng-深度学习-课程笔记-2: 神经网络中的逻辑回归(Week2)
查看>>
正则表达式的搜索和替换
查看>>
个人项目:WC
查看>>
地鼠的困境SSL1333 最大匹配
查看>>
flume+elasticsearch+kibana遇到的坑
查看>>
【MM系列】在SAP里查看数据的方法
查看>>
C#——winform
查看>>
CSS3 transform制作的漂亮的滚动式导航
查看>>
《小强升职记——时间管理故事书》读书笔记
查看>>
Alpha 冲刺(3/10)
查看>>
Kaldi中的Chain模型
查看>>
spring中的ResourceBundleMessageSource使用和测试示例
查看>>
css规范 - bem
查看>>
UVALive 6145 Version Controlled IDE(可持久化treap、rope)
查看>>
mysql 将两个有主键的表合并到一起
查看>>
底部导航栏-----FragmentTabHost
查看>>
在linux中安装jdk以及tomcat并shell脚本关闭启动的进程
查看>>
apk,task,android:process与android:sharedUserId的区别
查看>>
网络字节顺序
查看>>
复制mueclipse项目到eclipse
查看>>