TWI416354B - System and method for automatically searching and playing songs - Google Patents
System and method for automatically searching and playing songs Download PDFInfo
- Publication number
- TWI416354B TWI416354B TW97117237A TW97117237A TWI416354B TW I416354 B TWI416354 B TW I416354B TW 97117237 A TW97117237 A TW 97117237A TW 97117237 A TW97117237 A TW 97117237A TW I416354 B TWI416354 B TW I416354B
- Authority
- TW
- Taiwan
- Prior art keywords
- melody
- music
- memory
- characteristic parameters
- characteristic
- Prior art date
Links
Landscapes
- Telephone Function (AREA)
- Auxiliary Devices For Music (AREA)
- Electrophonic Musical Instruments (AREA)
Abstract
Description
本發明涉及一種自動搜尋及播放音樂之系統及方法。 The present invention relates to a system and method for automatically searching and playing music.
今天的手機,除了用於通話外,其他的附加功能日漸豐富,在手機開發商和服務商不遺餘力的挖掘下,手機的娛樂價值日益凸現。 Today's mobile phones, in addition to use for calls, other additional features are increasingly rich, mobile phone developers and service providers spare no effort to tap, the entertainment value of mobile phones is increasingly prominent.
隨著人們生活的日益豐富,單純通話功能的手機滿足不了消費者多樣化、個性化的需求,娛樂功能的手機應運而生。而娛樂型的手機對於如今日益眾多並且具備消費潛力的年輕一族來說是非常具有吸引力的。比如,用戶可以利用手機來聽音樂。 With the increasing enrichment of people's lives, mobile phones with simple call functions can't satisfy the diversified and personalized needs of consumers, and entertainment-oriented mobile phones have emerged. And entertainment-type phones are very attractive to younger generations who are increasingly numerous and have potential for consumption. For example, users can use their mobile phones to listen to music.
然而,在運用傳統的手機聽音樂時,用戶需手動搜尋所喜好的音樂所在位置並手動開啟播放該音樂。這種做法很不方便。尤其當用戶在開車途中,如果手動去搜尋並開啟播放音樂可能會對用戶帶來危險。 However, when listening to music using a conventional mobile phone, the user has to manually search for the location of the favorite music and manually turn on the music. This is very inconvenient. Especially when the user is driving, if you manually search for and start playing music, it may be dangerous to the user.
鑒於以上內容,本發明較佳實施例提供一種自動搜尋及播放 音樂之系統及方法,其解決了傳統手機需要用戶手動搜尋音樂並開啟播放音樂的缺點。 In view of the above, the preferred embodiment of the present invention provides an automatic search and play The music system and method solve the shortcomings of the traditional mobile phone that requires the user to manually search for music and start playing music.
一種自動搜尋及播放音樂之系統,該系統運行於一個電子裝置中,該電子裝置包括一個記憶體及播放器,所述記憶體用於存儲音樂及每一首音樂的特徵參數,該自動搜尋及播放音樂之系統包括:旋律捕捉單元,用於捕捉用戶哼唱的一段旋律;特徵參數計算單元,用於利用levinson-durbin recursion演算法計算該段旋律的特徵參數;關聯性計算單元,用於在獲取記憶體中所有音樂的特徵參數後,利用最近鄰居法則計算該段旋律的特徵參數與記憶體中所有音樂的特徵參數的關聯性,並搜尋出與該段旋律關聯性最高的特徵參數對應的音樂;及啟動單元,用於啟動所述播放器播放所搜尋到的音樂。 A system for automatically searching and playing music, the system running in an electronic device, the electronic device comprising a memory and a player, the memory for storing music and characteristic parameters of each piece of music, the automatic search and The system for playing music includes: a melody capture unit for capturing a melody of the user singing; a feature parameter calculation unit for calculating a feature parameter of the melody using the levinson-durbin recursion algorithm; and an association calculation unit for After obtaining the characteristic parameters of all the music in the memory, the nearest neighbor rule is used to calculate the correlation between the feature parameters of the melody and the characteristic parameters of all the music in the memory, and search for the feature parameter with the highest relevance to the melody. a music; and a launching unit for initiating the player to play the searched music.
一種自動搜尋及播放音樂之方法,該方法運用於一個包括記憶體及播放器的電子裝置中,該方法包括步驟:所述電子裝置開機後,捕捉用戶哼唱的一段旋律;利用levinson-durbin recursion演算法計算該段旋律的特徵參數;在獲取記憶體中所有音樂的特徵參數後,利用最近鄰居法則計算該段旋律的特徵參數與記憶體中所有音樂的特徵參數的關聯性,並搜尋出與該段旋律關聯性最高的特徵參數對應的音樂;及啟動所述播放器播放所搜尋到的音樂。 A method for automatically searching and playing music, the method is applied to an electronic device including a memory and a player, the method comprising the steps of: capturing a melody of a user singing after the electronic device is turned on; using a levinson-durbin recursion The algorithm calculates the characteristic parameters of the melody. After obtaining the characteristic parameters of all the music in the memory, the nearest neighbor rule is used to calculate the correlation between the characteristic parameters of the melody and the characteristic parameters of all the music in the memory, and search for and The music corresponding to the feature parameter with the highest melody relevance; and starting the player to play the searched music.
相較於習知技術,所述之自動搜尋及播放音樂之系統,可藉由捕捉用戶哼唱的旋律,計算該旋律的特徵參數,並從電子裝置中搜尋出與上述特徵參數關聯性最高的音樂,並開啟播放器播放該音樂,從而實現自動搜尋及開啟播放音樂。因此,利用本發明可使用戶快速並方便的選擇及播放所喜好的音樂。 Compared with the prior art, the system for automatically searching and playing music can calculate the characteristic parameters of the melody by capturing the melody of the user singing, and searching for the highest correlation with the above characteristic parameters from the electronic device. Music, and turn on the player to play the music, so as to automatically search and open the music. Therefore, with the present invention, the user can quickly and conveniently select and play the favorite music.
1‧‧‧手機 1‧‧‧Mobile phone
10‧‧‧自動搜尋及播放音樂之系統 10‧‧‧Automatically search and play music systems
12‧‧‧記憶體 12‧‧‧ memory
14‧‧‧播放器 14‧‧‧ Player
100‧‧‧旋律捕捉單元 100‧‧‧ melody capture unit
110‧‧‧特徵參數計算單元 110‧‧‧Characteristic parameter calculation unit
120‧‧‧關聯性計算單元 120‧‧‧ Relevance computing unit
130‧‧‧啟動單元 130‧‧‧Starting unit
圖1係本發明自動搜尋及播放音樂之系統的應用環境圖。 1 is an application environment diagram of a system for automatically searching and playing music according to the present invention.
圖2係本發明自動搜尋及播放音樂之系統的功能單元圖。 2 is a functional unit diagram of a system for automatically searching and playing music according to the present invention.
圖3係本發明自動搜尋及播放音樂之方法作業流程圖。 3 is a flow chart showing the operation of the method for automatically searching and playing music according to the present invention.
圖4係本發明特徵參數之間的關聯示意圖。 Figure 4 is a schematic diagram of the association between the characteristic parameters of the present invention.
參閱圖1所示,係本發明自動搜尋及播放音樂之系統的應用環境圖。該自動搜尋及播放音樂之系統10(下稱“本系統10”)運行於手機、MP3、MP4等可播放音樂的電子裝置中。在本較佳實施例中,所述電子裝置是手機。手機1還包括一個記憶體12及一個播放器14。本系統10可在捕捉到用戶哼唱的旋律後,利用levinson-durbin recursion演算法計算被捕捉到旋律的特徵參數,利用最近鄰居法則計算上述特徵參數與預先存儲在記憶體12中的特徵參數的關聯性,搜尋出關聯性最高的特徵參數所對應的音樂並播放該音樂。所述記憶體12可以是一個Flash,用於存儲用戶所喜好的音樂,此外還存儲了每一首音樂的特徵參數。其中,每一首音樂的特徵參 數亦可藉由levinson-durbin recursion演算法計算得到。 Referring to FIG. 1, an application environment diagram of a system for automatically searching and playing music according to the present invention is shown. The system 10 for automatically searching and playing music (hereinafter referred to as "the system 10") runs in an electronic device such as a mobile phone, an MP3, or an MP4 that can play music. In the preferred embodiment, the electronic device is a cell phone. The mobile phone 1 also includes a memory 12 and a player 14. The system 10 can calculate the feature parameters captured by the melody using the levinson-durbin recursion algorithm after capturing the melody of the user singing, and calculate the above characteristic parameters and the feature parameters pre-stored in the memory 12 by using the nearest neighbor rule. Correlation, search for the music corresponding to the most relevant feature parameter and play the music. The memory 12 can be a Flash for storing music that the user likes, and in addition to storing characteristic parameters of each piece of music. Among them, the characteristics of each piece of music The number can also be calculated by the levinson-durbin recursion algorithm.
參閱圖2所示,係本發明自動搜尋及播放音樂之系統的功能單元圖。本系統10包括旋律捕捉單元100、特徵參數計算單元110、關聯性計算單元120及啟動單元130。 Referring to FIG. 2, it is a functional unit diagram of a system for automatically searching and playing music according to the present invention. The system 10 includes a melody capture unit 100, a feature parameter calculation unit 110, an association calculation unit 120, and a startup unit 130.
當用戶想聽音樂時,但又不想藉由手動操作或不方便進行手動操作來開啟音樂播放器14時,該用戶可在啟動本系統10後,哼唱一段旋律。所述旋律捕捉單元100則會捕捉該用戶哼唱的旋律(以下稱“該段旋律”)。 When the user wants to listen to music, but does not want to open the music player 14 by manual operation or inconvenient manual operation, the user can sing a melody after starting the system 10. The melody capturing unit 100 captures the melody sung by the user (hereinafter referred to as "the melody of the segment").
所述特徵參數計算單元110用於藉由levinson-durbin recursion演算法計算該段旋律的特徵參數。 The feature parameter calculation unit 110 is configured to calculate a feature parameter of the segment melody by a levinson-durbin recursion algorithm.
其中levinson-durbin recursion演算法藉由將該段旋律進行分割計算得到特徵參數,其公式如下:
所述關聯性計算單元120用於當計算出該段旋律的特徵參數時,利用最近鄰居法則計算上述該段旋律的特徵參數與記憶體12中所有音樂的特徵參數的關聯性,並確定與該段旋律關聯性最高的特徵參數。 The association calculation unit 120 is configured to calculate a correlation between a feature parameter of the segment of the melody and a feature parameter of all music in the memory 12 by using a nearest neighbor rule, and determine the relationship with the feature parameter of the segment of the melody. The feature parameter with the highest relevance of the segmental melody.
藉由最近鄰居法則計算關聯性的公式如下:dist(x,x train )=|x-x train |2,其中,x train 代表存放在記憶體12中音樂的特徵參數,如果手機中存放10首音樂則就會有10組x train 的值;x代表用戶哼唱的該段旋律的特徵參數。dist(x.x train )值越小,即該組x train 值與x距離越近,則表示該組x train 值與x值關聯性最高。如圖4所示,特徵參數41是表示該段旋律的特徵參數,其他都是記憶體12中存儲音樂的特徵參數,與特徵參數41距離越近,表示其關聯性越強。 The formula for calculating the correlation by the nearest neighbor rule is as follows: dist ( x , x train )=| x - x train | 2 , where x train represents the characteristic parameter of the music stored in the memory 12, if the mobile phone stores 10 The music will have 10 sets of x train values; x represents the characteristic parameters of the melody of the user singing. The smaller the value of dist ( x . x train ), that is, the closer the x train value is to the x distance, the higher the correlation between the x train value and the x value. As shown in FIG. 4, the characteristic parameter 41 is a characteristic parameter indicating the melody of the segment, and the others are characteristic parameters for storing music in the memory 12, and the closer the distance to the feature parameter 41 is, the stronger the correlation is.
所述啟動單元130當找出關聯性最高的特徵值x train 值後,搜尋出與該組x train 值對應的音樂,並啟動播放器14播放該音樂。 After the activation unit 130 finds the feature value x train value with the highest relevance, the startup unit 130 searches for music corresponding to the group x train value, and starts the player 14 to play the music.
圖3係本發明自動搜尋及播放音樂之方法的作業流程圖。步驟S301,用戶將手機開機上電後,手機1開始運行本系統10。當用戶想聽音樂時並哼唱一段旋律後,旋律捕捉單元100捕捉用戶哼唱的該段旋律。 3 is a flow chart showing the operation of the method for automatically searching and playing music according to the present invention. Step S301, after the user turns on the mobile phone, the mobile phone 1 starts to run the system 10. When the user wants to listen to music and sings a melody, the melody capturing unit 100 captures the melody that the user sings.
步驟S302,藉由levinson-durbin recursion演算法計算該段旋律的特徵參數。 Step S302, calculating a characteristic parameter of the melody by the levinson-durbin recursion algorithm.
其中levinson-durbin recursion演算法藉由將該段旋律進行分割計算得到特徵參數,其公式如下:
步驟S303,讀取記憶體中存儲所有音樂的特徵參數,所有音 樂的特徵參數亦可藉由上述的levinson-durbin recursion演算法計算得到。 Step S303, reading characteristic parameters of all music stored in the memory, all the sounds The characteristic parameters of music can also be calculated by the above-mentioned levinson-durbin recursion algorithm.
步驟S304,當計算出該段旋律的特徵參數時,利用最近鄰居法則計算上述該段旋律的特徵參數與記憶體12中所有音樂的特徵參數的關聯性,並找出與該段旋律關聯性最高的特徵參數。 Step S304, when calculating the feature parameter of the melody, calculating the correlation between the feature parameter of the melody and the feature parameters of all the music in the memory 12 by using the nearest neighbor rule, and finding the highest correlation with the melody of the segment. Characteristic parameters.
藉由最近鄰居法則計算關聯性的公式如下:dist(x,x train )=|x-x train |2,其中,x train 代表存放在記憶體12中音樂的特徵參數,如果手機中存放10首音樂則就會有10組x train 的值;x代表用戶哼唱該段旋律的特徵參數。dist(x.x train )值越小,即該組x train 值與x距離越近,則表示該組x train 值與x值關聯性最高。如圖4所示,特徵參數41是表示用戶哼唱旋律的特徵參數,其他都是記憶體12中存儲音樂的特徵參數,與特徵參數41距離越近,表示其關聯性越強。 The formula for calculating the correlation by the nearest neighbor rule is as follows: dist ( x , x train )=| x - x train | 2 , where x train represents the characteristic parameter of the music stored in the memory 12, if the mobile phone stores 10 The music will have 10 sets of x train values; x represents the characteristic parameters of the user singing the melody. The smaller the value of dist ( x . x train ), that is, the closer the x train value is to the x distance, the higher the correlation between the x train value and the x value. As shown in FIG. 4, the characteristic parameter 41 is a characteristic parameter indicating the user's humming melody, and the other is a characteristic parameter for storing music in the memory 12, and the closer the distance to the characteristic parameter 41 is, the stronger the correlation is.
步驟S305,確定與該段旋律關聯性最高的特徵參數後,搜尋出該關聯性最高的特徵參數對應的音樂,並開啟播放器14播放該音樂。 Step S305, after determining the feature parameter with the highest relevance to the segment melody, searching for the music corresponding to the feature parameter with the highest relevance, and turning on the player 14 to play the music.
最後應說明的是,以上實施例僅用以說明本發明的技術方案而非限制,儘管參照較佳實施例對本發明進行了詳細說明, 本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。 It should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, and are not intended to limit the present invention. A person skilled in the art should understand that the technical solutions of the present invention may be modified or equivalently substituted without departing from the spirit and scope of the technical solutions of the present invention.
10‧‧‧自動搜尋及播放音樂之系統 10‧‧‧Automatically search and play music systems
100‧‧‧旋律捕捉單元 100‧‧‧ melody capture unit
110‧‧‧特徵參數計算單元 110‧‧‧Characteristic parameter calculation unit
120‧‧‧關聯性計算單元 120‧‧‧ Relevance computing unit
130‧‧‧啟動單元 130‧‧‧Starting unit
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW97117237A TWI416354B (en) | 2008-05-09 | 2008-05-09 | System and method for automatically searching and playing songs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW97117237A TWI416354B (en) | 2008-05-09 | 2008-05-09 | System and method for automatically searching and playing songs |
Publications (2)
Publication Number | Publication Date |
---|---|
TW200947242A TW200947242A (en) | 2009-11-16 |
TWI416354B true TWI416354B (en) | 2013-11-21 |
Family
ID=44870268
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW97117237A TWI416354B (en) | 2008-05-09 | 2008-05-09 | System and method for automatically searching and playing songs |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI416354B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5890108A (en) * | 1995-09-13 | 1999-03-30 | Voxware, Inc. | Low bit-rate speech coding system and method using voicing probability determination |
TW200515367A (en) * | 2003-10-16 | 2005-05-01 | Acer Inc | Humming transcription system and methodology |
-
2008
- 2008-05-09 TW TW97117237A patent/TWI416354B/en not_active IP Right Cessation
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5890108A (en) * | 1995-09-13 | 1999-03-30 | Voxware, Inc. | Low bit-rate speech coding system and method using voicing probability determination |
TW200515367A (en) * | 2003-10-16 | 2005-05-01 | Acer Inc | Humming transcription system and methodology |
Also Published As
Publication number | Publication date |
---|---|
TW200947242A (en) | 2009-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12002452B2 (en) | Background audio identification for speech disambiguation | |
KR102527281B1 (en) | Method and device for playing multimedia | |
CN107978323B (en) | Audio recognition method, device and storage medium | |
WO2016165325A1 (en) | Audio information recognition method and apparatus | |
US20080215319A1 (en) | Query by humming for ringtone search and download | |
US20150169747A1 (en) | Systems and methods for automatically suggesting media accompaniments based on identified media content | |
CN106469557B (en) | Method and device for providing accompaniment music | |
JP2018505442A5 (en) | ||
US10462508B2 (en) | Method of recommending personal broadcasting contents | |
US20150193199A1 (en) | Tracking music in audio stream | |
US9224385B1 (en) | Unified recognition of speech and music | |
KR20160004914A (en) | Method and device for playing multimedia | |
CN108090140A (en) | A kind of playback of songs method and mobile terminal | |
TW201725504A (en) | A music playing system, method and electronic device | |
CN107241511B (en) | Music playing method, device, storage medium and terminal | |
US20220147558A1 (en) | Methods and systems for automatically matching audio content with visual input | |
CN110660375A (en) | Method, device and equipment for generating music | |
CN105608114B (en) | A kind of music retrieval method and device | |
CN111540361B (en) | Voice processing method, device and medium | |
TWI416354B (en) | System and method for automatically searching and playing songs | |
CN101567203B (en) | System and method for automatically searching and playing music | |
JP5457791B2 (en) | Karaoke scoring system | |
KR20090011685A (en) | System and method for providing a singing room service using a image-inference and a server | |
JP2012247558A (en) | Information processing device, information processing method, and information processing program | |
CN102890948B (en) | A kind of Online Music player method and terminal device thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |