Summary of the invention
Based on this, be necessary to provide a kind of speech recognition toy and voice interface device of upgrading of can upgrading.
A kind of voice interface device, is applied in speech recognition product, comprises voice playing device, treating apparatus, voice playing device and upgrade file memory storage; Described voice acquisition device, described voice playing device are all connected with described treating apparatus with described upgrade file memory storage; And
Described voice playing device is for playing the first voice signal;
Described second voice signal for gathering the second voice signal, and is sent to described treating apparatus by described voice acquisition device;
Described treating apparatus is used for by described second voice signal compared with interactive answer information corresponding with described first voice signal in the interaction content file prestored, and comparative result is sent to described voice playing device and plays; Described interaction content file comprises described first voice signal and the interactive answer information corresponding with described first voice signal;
Described upgrade file memory storage is for storing upgrade file, and described treating apparatus also for obtaining described upgrade file, and carries out corresponding upgrading processing according to described upgrade file.
Wherein in an embodiment, described upgrade file comprises ROMPaq;
Described treating apparatus, for obtaining described ROMPaq, carries out the first upgrading processing to the working procedure prestored;
Wherein, described first upgrading processing is that the part corresponding with described ROMPaq in the described working procedure prestored is replaced with described ROMPaq, generates new working procedure and stores.
Wherein in an embodiment, described upgrade file comprises upgrading interaction content file;
Described treating apparatus, for obtaining described upgrading interaction content file, carries out the second upgrading processing to described interaction content file;
Wherein, described second upgrading processing is that part corresponding with described upgrading interaction content file in described interaction content file is replaced with described upgrading interaction content file, generates new interaction content file and stores.
Wherein in an embodiment, the first memory that described treating apparatus comprises single-chip microcomputer and is connected with described single-chip microcomputer;
The described working procedure that prestores and described interaction content file are all stored in described first memory.
Wherein in an embodiment, described single-chip microcomputer comprises digital-to-analogue conversion module and data processing module;
Described digital-to-analogue conversion module is connected with described voice acquisition device, and described second voice signal for being gathered by described voice acquisition device is converted to corresponding digital signal, and sends to described data processing module;
Comparative result compared with interactive answer information corresponding with described first voice signal in the described interaction content file prestored, is sent to voice playing device by described digital-to-analogue conversion module and plays by described second voice signal by described data processing module.
Wherein in an embodiment, described single-chip microcomputer also comprises Serial Peripheral Interface (SPI) module; Described Serial Peripheral Interface (SPI) module is connected with described first memory and described upgrade file memory storage respectively;
Described data processing module obtains the described working procedure or described interaction content file that store in described first memory by described Serial Peripheral Interface (SPI) module, and obtain the described ROMPaq or described upgrading interaction content file that store in described upgrade file memory storage, and carry out corresponding described first upgrading processing or described second upgrading processing.
Wherein in an embodiment, described single-chip microcomputer also comprises universal serial bus module; Described universal serial bus module is used for being connected with exterior terminal;
Described data processing module obtains the upgrade of described exterior terminal by described universal serial bus module, and carries out described first upgrading processing or described second upgrading processing according to described upgrade.
Wherein in an embodiment, after described treating apparatus receives described second voice signal, extract the keyword in described second voice signal, by described keyword compared with described interactive answer information, if described interactive answer information comprises described keyword, then described comparative result is the first comparative result; Otherwise described comparative result is second comparative result contrary with described first comparative result.
Wherein in an embodiment, described treating apparatus also for receiving the first input signal, and sends described first voice signal corresponding with described first input signal according to the first input signal to described voice playing device.
A kind of speech recognition toy, comprises any one voice interface device above-mentioned.
Above-mentioned speech recognition toy and voice interface device, voice playing device plays the first voice signal; Voice acquisition device gathers the second voice signal; Treating apparatus obtains interactive answer information corresponding with the first voice signal in the interaction content file prestored, and is then compared with interactive answer information by the second voice signal, and is play by sound play device by comparative result; And treating apparatus carries out corresponding upgrading processing according to the upgrade file stored in upgrade file memory storage.Therefore, above-mentioned voice interface device can not only realize the voice interface with user, but also renewal of can upgrading, to make the more interactive knowledge of user learning.
Embodiment
For making object of the present invention, technical scheme and advantage clearly understand, be described below in conjunction with the embodiment of accompanying drawing to speech recognition toy of the present invention and voice interface device.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
See Fig. 1, in an embodiment, voice interface device can comprise voice playing device 100, voice acquisition device 200, treating apparatus 300 and upgrade file memory storage 400.Voice acquisition device 200, voice playing device 100 are all connected with treating apparatus 300 with upgrade file memory storage 400.Concrete, voice playing device 100 is for playing the first voice signal.Second voice signal for gathering the second voice signal, and is sent to treating apparatus 300 by voice acquisition device 200.The interactive answer information corresponding with the first voice signal in the second voice signal received and the interaction content file prestored compares by treating apparatus 300.Treating apparatus 300 is also for being sent to voice playing device 100 by comparative result.The comparative result of voice playing device 100 also for being sent by treating apparatus 300 is play.Upgrade file memory storage 400 is for storing upgrade file.Treating apparatus 300 also for obtaining upgrade file, and carries out corresponding upgrading processing according to upgrade file.Wherein, interaction content file comprises the first voice signal and the interactive answer information corresponding with the first voice signal.
Above-mentioned voice interface device, play the first voice signal and gather second voice signal of user, and obtain interactive answer information corresponding with the first voice signal in the interaction content file prestored, then the second voice signal is compared with interactive answer information, and play by comparative result, and corresponding upgrading processing can be carried out according to upgrade file.Above-mentioned voice interface device can not only realize the voice interface with user, but also renewal of can upgrading, to make the more interactive knowledge of user learning.
Understandable, the response of correspondence that the first voice signal can be made according to user's input or the information selected for voice interface device.Concrete, treating apparatus 300 also for receiving the first input signal, and sends first voice signal corresponding with the first input signal according to the first input signal to voice playing device 100.Such as, user selects the knowledge question in a certain field as required, and then voice interface device is according to the selection of user, plays the first voice signal comprising the knowledge question in this field.After user hears the first voice signal, make corresponding answer.The answer that voice acquisition device 200 collects user generates the second voice signal, sends to treating apparatus 300.
Concrete, upgrade file memory storage 400 may be used for storing ROMPaq.Namely upgrade file comprises ROMPaq.This ROMPaq is used for upgrading to voice interface device.Treating apparatus 300 obtains the ROMPaq in upgrade file memory storage 400, carries out the first upgrading processing to the working procedure prestored.Wherein, the first upgrading processing for part corresponding with ROMPaq in the working procedure prestored is replaced with ROMPaq, thus can generate new working procedure and stores.
Concrete, prestore working procedure in treating apparatus 300, be the aforesaid working procedure prestored.When needing to upgrade to voice interface device, exterior terminal 500 can be connected with treating apparatus 300 communication.Upgrade is assigned to treating apparatus 300 by exterior terminal 500.The scope of the program of needs upgrading can be comprised in this upgrade.After treating apparatus 300 receives this upgrade, obtain ROMPaq corresponding in upgrade file memory storage 400, carry out the first upgrading processing.In addition, after treating apparatus 300 executes the first upgrading processing, upgrade file memory storage 400 can also be controlled and delete corresponding ROMPaq, to prevent repeatedly upgrading.
In another embodiment, upgrade file memory storage 400 may be used for storing upgrading interaction content file.That is, upgrade file can comprise upgrading interaction content file.Treating apparatus 300 also for obtaining the upgrading interaction content file stored in upgrade file memory storage 400, carries out the second upgrading processing to interaction content file.Wherein, the second upgrading processing for part corresponding with upgrading interaction content file in interaction content file is replaced with interaction content file of upgrading, thus can generate new interaction content file and stores.
In the present embodiment, by the interaction content file stored in upgrading processing device 300, realize the upgrading to voice interface device, implementation procedure is more easy and not easily make mistakes.Concrete, when needing to upgrade to voice interface device, exterior terminal 500 can be connected with treating apparatus 300 communication.Upgrade is assigned to treating apparatus 300 by exterior terminal 500.The scope of the interaction content file of needs upgrading can be comprised in this upgrade.After treating apparatus 300 receives this upgrade, obtain upgrading interaction content file corresponding in upgrade file memory storage 400, carry out the second upgrading processing.After treating apparatus 300 executes the second upgrading processing, upgrade file memory storage 400 can be controlled and delete corresponding upgrading interaction content file, to prevent repeatedly upgrading.
Arrange upgrade file memory storage 400, can realize upgrading to voice interface device, the interaction content that voice interface device and user are carried out is no longer changeless.Therefore, user uses above-mentioned voice interface device, can carry out more interaction content, learn more interactive knowledge.
See Fig. 2, in an embodiment, treating apparatus 300 can comprise single-chip microcomputer 310 and first memory 320.Wherein, single-chip microcomputer 310 is connected with first memory 320.First memory 320 is for storage running program and interaction content file.When single-chip microcomputer 310 needs to use working procedure or active content file, can obtain from first memory 320.
Concrete, see Fig. 3, in an embodiment, single-chip microcomputer 310 can comprise DAC (Digitaltoanalogconverter, digital-to-analogue conversion) module 311 and data processing module 312.DAC module 311 is connected with voice acquisition device 200, and the second voice signal for being gathered by voice acquisition device 200 is converted to corresponding digital signal, and sends to data processing module 312.Interactive answer information corresponding with described first voice signal in the interaction content file prestored in second voice signal and first memory 320 compares by data processing module 312.Comparative result is also sent to voice playing device 100 by DAC module 311 and plays by data processing module 312.
In addition, the knowledge question in a certain field that data processing module 312 also can be selected according to user, is sent to voice playing device 100 by DAC module 311 by the first voice signal of correspondence and plays.In an embodiment, voice acquisition device 200 can be microphone, and voice playing device 100 can be loudspeaker.
See Fig. 3, in an embodiment, single-chip microcomputer 310 can also comprise spi (SerialPeripheralInterface, Serial Peripheral Interface (SPI)) module 313.Spi module 313 is connected with first memory 320 and upgrade file memory storage 400 respectively.Data processing module 312 obtains the working procedure or interaction content file that store in first memory 320 by spi module 313.Data processing module 312 obtains ROMPaq or the upgrading interaction content file of upgrade file memory storage 400 storage by spi module 313.Then, data processing module 312 carries out the first corresponding upgrading processing or the second upgrading processing.
See Fig. 3, in an embodiment, single-chip microcomputer 310 can also comprise USB (UniversalSerialBus, USB (universal serial bus)) module 314.USB module 314 is for being connected with exterior terminal 500.Data processing module 312 obtains the upgrade of exterior terminal 500 by USB module 314.Data processing module 312 according to the upgrade obtained, can carry out the first upgrading processing or the second upgrading processing.
As a kind of embodiment, after treating apparatus 300 receives the second voice signal, extract the keyword in the second voice signal.Then, treating apparatus 300 by keyword compared with interactive answer information: if interactive answer information comprises this keyword, then comparative result is the first comparative result; Otherwise comparative result is second comparative result contrary with the first comparative result.Wherein, the first comparative result can answer correct voice signal for representing.Second comparative result can for representing the voice signal of erroneous answers.
Such as, the first voice signal content is " one-plus-one equals how many ".The interactive answer information corresponding with the first voice signal can be the multiple information comprising " two ".Second voice signal is " one-plus-one equals two ".The keyword that treating apparatus 300 collects from the second voice signal is " two ".Keyword " two " and interactive answer information compare by treating apparatus 300, draw the first comparative result representing that answer is correct.
Certainly, treating apparatus 300 extracts the keyword in the second voice signal, and the process of keyword compared with interactive answer information can be realized by speech recognition algorithm.In an embodiment, speech recognition algorithm can be DTW (DynamicTimeWarping, dynamic time consolidation) algorithm etc.
In an embodiment, first memory 320 can be storage speed flash storage faster, i.e. flash memories.Upgrade file memory storage 400 can be TF card (Trans-flashCard, flash memory cards).TF card small volume, conveniently takes, and cost is not high yet.
Above-mentioned voice interface device, voice playing device 100 plays the first voice signal; Voice acquisition device 200 gathers the second voice signal; Treating apparatus 300 obtains interactive answer information corresponding with the first voice signal in the interaction content file prestored, and is then compared with interactive answer information by the second voice signal, and is play by sound play device 100 by comparative result; And treating apparatus 300 carries out corresponding upgrading processing according to the upgrade file stored in upgrade file memory storage 400.Therefore, above-mentioned voice interface device can not only realize the voice interface with user, but also renewal of can upgrading.User uses above-mentioned voice interface device, can carry out more interaction content, learn more interactive knowledge.
In an embodiment, speech recognition toy can comprise any one voice interface device above-mentioned, and has the advantage that above-mentioned voice interface device has.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.