CN107247783A - A kind of method and device of phonetic search music - Google Patents

A kind of method and device of phonetic search music Download PDF

Info

Publication number
CN107247783A
CN107247783A CN201710447725.9A CN201710447725A CN107247783A CN 107247783 A CN107247783 A CN 107247783A CN 201710447725 A CN201710447725 A CN 201710447725A CN 107247783 A CN107247783 A CN 107247783A
Authority
CN
China
Prior art keywords
search
regular expression
sentence
voice
search keyword
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710447725.9A
Other languages
Chinese (zh)
Inventor
王静照
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Siyixuan Robot Technology Co Ltd
Original Assignee
Shanghai Siyixuan Robot Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Siyixuan Robot Technology Co Ltd filed Critical Shanghai Siyixuan Robot Technology Co Ltd
Priority to CN201710447725.9A priority Critical patent/CN107247783A/en
Publication of CN107247783A publication Critical patent/CN107247783A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/632Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/686Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title or artist information, time, location or usage information, user ratings

Abstract

A kind of method and device of phonetic search music disclosed by the invention, matching obtains regular expression corresponding with the sentence recognized from default regular expression database, sentence and regular expression are contrasted, search keyword is obtained, music searching is carried out using search keyword and its type.For different types of search keyword, different search are carried out, such as, for the search keyword of title of the song type, searches for title of the song, effectively increases the precision of music searching result.

Description

A kind of method and device of phonetic search music
Technical field
The present invention relates to music searching technical field, more specifically to the method and dress of a kind of phonetic search music Put.
Background technology
Voice is the expression way than word earlier, more natural, and with the development of speech recognition technology, phonetic search will be super Crossing text search turns into the search form of main flow.Phonetic entry is evolved to from the past traditional word input, closer to people's Naturally express the meaning, the distance of furthered people and internet is enhanced people and experienced using the hommization of internet.Usual people's language Sound search is that other side is engaged in the dialogue as a communicatee, such as " I wants to listen griggles ", " playing song griggles " etc., But, present search engine is the search entry for inputting user, i.e., " I wants to listen griggles ", " playing song griggles " are made For the instruction submitted to computer system, obtain search result and include a large amount of irrelevant informations, accuracy rate is relatively low.
The content of the invention
In view of this, the present invention proposes a kind of method and device of phonetic search music, is intended to realize that raising search result is accurate The purpose of true rate.
To achieve these goals, it is proposed that scheme it is as follows:
A kind of method of phonetic search music, including:
Obtain the voice of user's input;
The voice is identified and obtains sentence;
Matching obtains regular expression corresponding with the sentence from default regular expression database;
The sentence and the regular expression are contrasted, search keyword is obtained;
Music searching is carried out according to the search keyword and its type, the type of the search keyword includes song Hand, title of the song and special edition.
It is preferred that, it is described corresponding music searching is carried out according to the search keyword and its type after, in addition to:
Search result is screened according to matching degree, playback volume and tonequality;
Optimal the selection result is played out.
It is preferred that, before the voice of the acquisition user input, in addition to:
Set up regular expression database.
A kind of device of phonetic search music, including:
Voice acquiring unit, the voice for obtaining user's input;
Voice recognition unit, sentence is obtained for the voice to be identified;
Matching unit, for matching regular expressions corresponding with the sentence from default regular expression database Formula;
Comparing unit, for contrasting the sentence and the regular expression, obtains search keyword;
Music searching unit, it is described to search for carrying out corresponding music searching according to the search keyword and its type The type of rope keyword includes singer, title of the song and special edition.
It is preferred that, described device also includes:
Screening unit, for it is described corresponding music searching is carried out according to the search keyword and its type after, root Search result is screened according to matching degree, playback volume and tonequality;
Automatic broadcast unit, for optimal the selection result to be played out.
It is preferred that, described device also includes:
Database Unit, for before the voice of the acquisition user input, setting up regular expression database.
Compared with prior art, technical scheme has advantages below:
The method and device for a kind of phonetic search music that above-mentioned technical proposal is provided, from default regular expression data Matching obtains regular expression corresponding with the sentence recognized, contrast sentence and regular expression in storehouse, obtains search crucial Word, music searching is carried out using search keyword and its type.For different types of search keyword, different search is carried out Rope, such as, for the search keyword of title of the song type, search for title of the song, effectively increase the precision of music searching result.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of the method for phonetic search music provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the method for another phonetic search music provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of the device of phonetic search music provided in an embodiment of the present invention;
Fig. 4 is the structural representation of the device of another phonetic search music provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
A kind of method of phonetic search music is present embodiments provided, referring to Fig. 1, this method can include:
Step S11:Obtain the voice of user's input;
Step S12:The voice is identified and obtains sentence;
Speech recognition technology is the technology of comparative maturity, for example the winged speech engine of University of Science and Technology's news, exposes corresponding interface, Speech-recognition services are provided for all APP (Application, computer applied algorithm), the speech engine is utilized, it is possible to achieve Good speech recognition.
Step S13:Matching obtains regular expression corresponding with the sentence from default regular expression database;
Regular expression is a kind of special character string mode, for matching one group of character string, is produced like with grinding tool Product, regular expression is exactly this grinding tool, defines a kind of rule and goes to match legal character." * " in regular expression General matching symbol is represented, any character of any number can be matched, such as " I wants to listen * " to match, and " I wants to listen small apple Really ", " I wants to listen Chengdu ", " I wants to listen blue and white porcelain " etc.., can be from canonical when the sentence recognized is " I wants to listen griggles " Regular expression is matched in expression formula database, and " I wants to listen * ".
Step S14:The sentence and the regular expression are contrasted, search keyword is obtained;
Character string corresponding with " * " in regular expression is search keyword in sentence.
Step S15:Music searching, the type of the search keyword are carried out according to the search keyword and its type Including singer, title of the song and special edition.
By the way that " I wants to listen * ", " I wants to listen * * ", " play * ", " regular expression and the corresponding sentence pair such as search * " Than what is obtained is the search keyword of title of the song type.Pass through the canonical such as " I wants to listen * song ", " song for playing * ", " * song " Expression formula is contrasted with corresponding sentence, and what is obtained is the search keyword of singer's type.By " playing special edition * ", " playing *'s What the regular expressions such as special edition * " were obtained is the search keyword of special edition type.For the search keyword of title of the song type, carry out Title of the song is searched for;For the search keyword of singer's type, singer's search is carried out;For the search keyword of special edition type, carry out Special edition is searched for.
The present embodiment provide phonetic search music method, from default regular expression database matching obtain with The corresponding regular expression of sentence recognized, contrast sentence and regular expression, obtain search keyword, crucial using search Word and its type carry out music searching.For different types of search keyword, different search are carried out, music is effectively increased The precision of search result.
A kind of method of phonetic search music is present embodiments provided, referring to Fig. 2, this method can include:
Step S21:Obtain the voice of user's input;
Step S22:The voice is identified and obtains sentence;
Step S23:Matching obtains regular expression corresponding with the sentence from default regular expression database;
Step S24:The sentence and the regular expression are contrasted, search keyword is obtained;
Step S25:Music searching, the type of the search keyword are carried out according to the search keyword and its type Including singer, title of the song and special edition.
Step S26:Search result is screened according to matching degree, playback volume and tonequality;
Step S27:Optimal the selection result is played out.
Can the weight different to the setting of matching degree, playback volume and tonequality respectively, search result is ranked up, selection is most Excellent the selection result is played out.
By the filtering to search result, the degree of accuracy of search result is further increased.
Before the voice of user's input is obtained, in addition to:Set up regular expression database.Regular expression database bag Include the regular expression for obtaining the search key that type is title of the song, include but is not limited to " I want to listen * ", " play * ", " search * ";Regular expression database include be used for obtain type be singer search key regular expression, including but It is not limited to " I wants to listen * song ", " song for playing * ", " * song " etc.;Regular expression database includes being used to obtain type For the regular expression of the search key of special edition, include but is not limited to " play special edition * ", " I wants to listen special edition * " etc..
It is exemplified below:
Step A11:Identification voice obtains sentence " I wants to listen and listen wind to chant ";
Step A12:Matching obtains regular expression, and " I wants to listen * ";
Step A13:Contrast " I likes to listen and listen wind to chant " and " I wants to listen * ", and type is that the search keyword of title of the song " and is listened Wind is chanted ".
Step A14:Search for title of the song and listen wind to chant;
Step A15:The progress of the information sifting such as matching degree, playback volume and tonequality optimal result is considered in search result Play.
Following is apparatus of the present invention embodiment, can be used for performing the inventive method embodiment.It is real for apparatus of the present invention The details not disclosed in example is applied, the inventive method embodiment is refer to.
The present embodiment provides a kind of device of phonetic search music, and referring to Fig. 3, the device can include:
Voice acquiring unit 11, the voice for obtaining user's input;
Voice recognition unit 12, sentence is obtained for the voice to be identified;
Matching unit 13, for matching canonical table corresponding with the sentence from default regular expression database Up to formula;
Comparing unit 14, for contrasting the sentence and the regular expression, obtains search keyword;
Music searching unit 15, it is described for carrying out corresponding music searching according to the search keyword and its type The type of search keyword includes singer, title of the song and special edition.
The present embodiment provides a kind of method of phonetic search music, and matching unit 13 is from default regular expression database Middle matching obtains regular expression corresponding with the sentence recognized, the contrast sentence of comparing unit 14 and regular expression, obtains Search keyword, music searching unit 15 carries out music searching using search keyword and its type.Searched for different types of Rope keyword, carries out different search, such as, for the search keyword of title of the song type, searches for title of the song, effectively increases music The precision of search result.
The present embodiment provides the device of another phonetic search music, and referring to Fig. 4, the device is relative to disclosed in Fig. 3 Device can also include:
Screening unit 16, for it is described corresponding music searching is carried out according to the search keyword and its type after, Search result is screened according to matching degree, playback volume and tonequality;
Automatic broadcast unit 17, for optimal the selection result to be played out.
The device of above-mentioned phonetic search music can also include:Database Unit, in the acquisition user input Before voice, regular expression database is set up
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can To be or may not be physically separate,.Some or all of module therein can be selected according to the actual needs To realize the purpose of this embodiment scheme.Those of ordinary skill in the art are without creative efforts, you can with Understand and implement.
Herein, term " comprising ", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, from And cause the process, method, article or the equipment that include a series of key elements not only to include those key elements, but also including not bright Other key elements really listed, or also include for this process, method, article or the intrinsic key element of equipment.Do not having In the case of more limitations, the key element limited by sentence "including a ...", it is not excluded that the process including the key element, Also there is other identical element in method, article or equipment.
The embodiment of each in this specification is described by the way of progressive, and what each embodiment was stressed is and other Between the difference of embodiment, each embodiment identical similar portion mutually referring to.
To the described above of disclosed embodiment of this invention, professional and technical personnel in the field is realized or use this Invention.A variety of modifications to these embodiments will be apparent for those skilled in the art, institute herein The General Principle of definition can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, The present invention is not intended to be limited to the embodiments shown herein, and is to fit to special with principles disclosed herein and novelty The consistent most wide scope of point.

Claims (6)

1. a kind of method of phonetic search music, it is characterised in that including:
Obtain the voice of user's input;
The voice is identified and obtains sentence;
Matching obtains regular expression corresponding with the sentence from default regular expression database;
The sentence and the regular expression are contrasted, search keyword is obtained;
Music searching is carried out according to the search keyword and its type, the type of the search keyword includes singer, song Name and special edition.
2. according to the method described in claim 1, it is characterised in that entered described according to the search keyword and its type After the corresponding music searching of row, in addition to:
Search result is screened according to matching degree, playback volume and tonequality;
Optimal the selection result is played out.
3. according to the method described in claim 1, it is characterised in that before the voice of the acquisition user input, in addition to:
Set up regular expression database.
4. a kind of device of phonetic search music, it is characterised in that including:
Voice acquiring unit, the voice for obtaining user's input;
Voice recognition unit, sentence is obtained for the voice to be identified;
Matching unit, for matching regular expression corresponding with the sentence from default regular expression database;
Comparing unit, for contrasting the sentence and the regular expression, obtains search keyword;
Music searching unit, for carrying out corresponding music searching according to the search keyword and its type, the search is closed The type of keyword includes singer, title of the song and special edition.
5. device according to claim 4, it is characterised in that also include:
Screening unit, for it is described corresponding music searching is carried out according to the search keyword and its type after, according to Search result is screened with degree, playback volume and tonequality;
Automatic broadcast unit, for optimal the selection result to be played out.
6. device according to claim 4, it is characterised in that also include:
Database Unit, for before the voice of the acquisition user input, setting up regular expression database.
CN201710447725.9A 2017-06-14 2017-06-14 A kind of method and device of phonetic search music Pending CN107247783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710447725.9A CN107247783A (en) 2017-06-14 2017-06-14 A kind of method and device of phonetic search music

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710447725.9A CN107247783A (en) 2017-06-14 2017-06-14 A kind of method and device of phonetic search music

Publications (1)

Publication Number Publication Date
CN107247783A true CN107247783A (en) 2017-10-13

Family

ID=60019408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710447725.9A Pending CN107247783A (en) 2017-06-14 2017-06-14 A kind of method and device of phonetic search music

Country Status (1)

Country Link
CN (1) CN107247783A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415929A (en) * 2018-01-19 2018-08-17 广州索答信息科技有限公司 A kind of instruction analysis method, electronic equipment and storage medium based on repetition generation technique
CN108922530A (en) * 2018-07-23 2018-11-30 广州维纳斯家居股份有限公司 Intelligent elevated table minutes method, apparatus, intelligent elevated table and storage medium
CN109284362A (en) * 2018-11-11 2019-01-29 广东小天才科技有限公司 A kind of content search method and system
WO2019196527A1 (en) * 2018-04-11 2019-10-17 北京搜狗科技发展有限公司 Data processing method, apparatus and electronic device
CN111897840A (en) * 2020-08-14 2020-11-06 北京字节跳动网络技术有限公司 Data searching method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030149566A1 (en) * 2002-01-02 2003-08-07 Esther Levin System and method for a spoken language interface to a large database of changing records
CN1908935A (en) * 2006-08-01 2007-02-07 华为技术有限公司 Search method and system of a natural language
CN103455754A (en) * 2013-09-05 2013-12-18 上海交通大学 Regular expression-based malicious search keyword recognition method
CN103605676A (en) * 2013-10-30 2014-02-26 北京奇虎科技有限公司 Search based terminal fault solution, client and system
CN104991943A (en) * 2015-07-10 2015-10-21 百度在线网络技术(北京)有限公司 Music searching method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030149566A1 (en) * 2002-01-02 2003-08-07 Esther Levin System and method for a spoken language interface to a large database of changing records
CN1908935A (en) * 2006-08-01 2007-02-07 华为技术有限公司 Search method and system of a natural language
CN103455754A (en) * 2013-09-05 2013-12-18 上海交通大学 Regular expression-based malicious search keyword recognition method
CN103605676A (en) * 2013-10-30 2014-02-26 北京奇虎科技有限公司 Search based terminal fault solution, client and system
CN104991943A (en) * 2015-07-10 2015-10-21 百度在线网络技术(北京)有限公司 Music searching method and apparatus

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415929A (en) * 2018-01-19 2018-08-17 广州索答信息科技有限公司 A kind of instruction analysis method, electronic equipment and storage medium based on repetition generation technique
CN108415929B (en) * 2018-01-19 2021-07-27 广州索答信息科技有限公司 Instruction analysis method based on repeat generation technology, electronic device and storage medium
WO2019196527A1 (en) * 2018-04-11 2019-10-17 北京搜狗科技发展有限公司 Data processing method, apparatus and electronic device
CN110377766A (en) * 2018-04-11 2019-10-25 北京搜狗科技发展有限公司 A kind of data processing method, device and electronic equipment
CN108922530A (en) * 2018-07-23 2018-11-30 广州维纳斯家居股份有限公司 Intelligent elevated table minutes method, apparatus, intelligent elevated table and storage medium
CN109284362A (en) * 2018-11-11 2019-01-29 广东小天才科技有限公司 A kind of content search method and system
CN111897840A (en) * 2020-08-14 2020-11-06 北京字节跳动网络技术有限公司 Data searching method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107247783A (en) A kind of method and device of phonetic search music
KR101970047B1 (en) Method and apparatus for broadcasting search result based on artificial intelligence
CN104199822B (en) It is a kind of to identify the method and system for searching for corresponding demand classification
CN106601259A (en) Voiceprint search-based information recommendation method and device
CN102549652B (en) Information retrieving apparatus
US20170229114A1 (en) Apparatus, process, and program for combining speech and audio data
US20160012047A1 (en) Method and Apparatus for Updating Speech Recognition Databases and Reindexing Audio and Video Content Using the Same
CN103885949B (en) A kind of song retrieval system and its search method based on the lyrics
US20070282860A1 (en) Method and system for music information retrieval
CN104991943A (en) Music searching method and apparatus
US8892565B2 (en) Method and apparatus for accessing an audio file from a collection of audio files using tonal matching
CN103150356B (en) A kind of the general demand search method and system of application
JP4987682B2 (en) Voice chat system, information processing apparatus, voice recognition method and program
US8161056B2 (en) Database constructing apparatus and method
CN102867512A (en) Method and device for recognizing natural speech
JP2015522892A5 (en)
WO2018121368A1 (en) Method for generating music to accompany lyrics and related apparatus
CN107293308B (en) A kind of audio-frequency processing method and device
CN107369439A (en) A kind of voice awakening method and device
CN108255840A (en) A kind of recommendation method and system of song
JP2012043000A (en) Retrieval device, retrieval method, and program
CN101593519A (en) Detect method and apparatus and the search method and the system of voice keyword
CN103294820B (en) WEB page classifying method and system based on semantic extension
US20140114656A1 (en) Electronic device capable of generating tag file for media file based on speaker recognition
US11188199B2 (en) System enabling audio-based navigation and presentation of a website

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 201207 Chinese (Shanghai) free trade zone fanchun Road No. 400 Building 1 layer 3

Applicant after: SHANGHAI SIYIXUAN ROBOT TECHNOLOGY CO., LTD.

Address before: 200233 room F6, room 4, building No. 34, Guiping Road, Xuhui District, Xuhui District, Shanghai

Applicant before: SHANGHAI SIYIXUAN ROBOT TECHNOLOGY CO., LTD.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20171013

RJ01 Rejection of invention patent application after publication