CN107241689A - A kind of earphone voice interactive method and its device, terminal device - Google Patents

A kind of earphone voice interactive method and its device, terminal device Download PDF

Info

Publication number
CN107241689A
CN107241689A CN201710474659.4A CN201710474659A CN107241689A CN 107241689 A CN107241689 A CN 107241689A CN 201710474659 A CN201710474659 A CN 201710474659A CN 107241689 A CN107241689 A CN 107241689A
Authority
CN
China
Prior art keywords
voice
earphone
speech data
speech
data
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.)
Granted
Application number
CN201710474659.4A
Other languages
Chinese (zh)
Other versions
CN107241689B (en
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.)
Shenzhen Grandsun Electronics Co Ltd
Original Assignee
Shenzhen Grandsun Electronics 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 Shenzhen Grandsun Electronics Co Ltd filed Critical Shenzhen Grandsun Electronics Co Ltd
Priority to CN201710474659.4A priority Critical patent/CN107241689B/en
Publication of CN107241689A publication Critical patent/CN107241689A/en
Application granted granted Critical
Publication of CN107241689B publication Critical patent/CN107241689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/30Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
    • G10L25/54Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination for retrieval
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • H04W28/14Flow control between communication endpoints using intermediate storage

Abstract

The present invention is applied to wearable device technical field there is provided a kind of earphone voice interactive method and its device, terminal device, including:Detect whether to start speech identifying function;If detecting startup speech identifying function, while voice transfer link is set up with mobile terminal, the speech data that earphone is collected carries out caching;After voice transfer link establishment success, the speech data of the caching is transmitted by operation by voice transfer link.After speech identifying function is started, earphone begins setting up voice transfer link with mobile terminal, start simultaneously at and speech data is acquired, and cached the speech data collected, after voice transfer link establishment success, the speech data of caching is transmitted operation by earphone, and user can carry out interactive voice operation immediately after speech identifying function is started, without waiting for and do not result in speech data lose, can ensure speech data do not lose while strengthen Consumer's Experience.

Description

A kind of earphone voice interactive method and its device, terminal device
Technical field
The invention belongs to wearable device technical field, more particularly to a kind of earphone voice interactive method and its device, terminal Equipment.
Background technology
Current many earphones can pass through Key word voice or button triggering and the company of the voice transfer link of mobile terminal Connect, the voice transfer for then being inputted user by voice transfer link passes through internet to mobile terminal, then by mobile terminal The voice transfer to voice cloud service is subjected to interactive voice service.Exemplary, user triggers bluetooth by Key word voice After earphone, bluetooth earphone sets up Bluetooth SCO link with mobile phone, and user speech input needs the information searched for, such as " finding nearby Restaurant ", bluetooth earphone is by Bluetooth SCO link by the transmission of speech information to mobile terminal, and mobile terminal is again by the voice Information transfer is to related voice cloud service, and the Alexa of such as Amazon, will after Alexa progress speech recognitions and lookup result The result found feeds back to mobile terminal, and mobile terminal is again transmitted the result to bluetooth earphone by Bluetooth SCO link, leads to Cross bluetooth earphone to play out, if there are multiple options in the result of feedback, user can continue through bluetooth earphone and language Sound cloud service Alexa is exchanged, to determine specific restaurant and route.It should be noted that both SCO link is connection-oriented The abbreviation of synchronization link (Synchronous Connection Oriented link).
However, user is by triggering during speech identifying function, earphone needs to set up the connection of voice transfer link with mobile phone, Setting up the process of connection needs the regular hour, if connection is not set up also, and user has begun to carry out phonetic entry, then can cause Speech data is lost, in order to avoid speech data is lost, and user needs wait to carry out phonetic entry after the completion of setting up connection, Cause Consumer's Experience not good.Therefore, there is language during the interactive voice between existing earphone and mobile terminal and cloud service The problem of sound loss of data and not good Consumer's Experience.
The content of the invention
In view of this, the embodiments of the invention provide a kind of earphone voice interactive method and its device, terminal device, to solve Certainly there is speech data during interactive voice in the prior art between earphone and mobile terminal and cloud service to lose and user The problem of experience is not good.
The first aspect of the embodiment of the present invention provides a kind of earphone voice interactive method, the voice interactive method bag Include:
Detect whether to start speech identifying function;
If detecting startup speech identifying function, while voice transfer link is set up with mobile terminal, by earphone The speech data collected carries out caching;
After voice transfer link establishment success, by the voice transfer link by the speech data of the caching It is transmitted operation.
The second aspect of the embodiment of the present invention provides a kind of earphone voice interaction device, the earphone voice interaction device Including:
Start detection module, for detecting whether starting speech identifying function;
Cache module, if for detecting startup speech identifying function, voice transfer link is being set up with mobile terminal While, the speech data that earphone is collected carries out caching;Sending module, in the voice transfer link establishment After success, the speech data of the caching is transmitted by operation by the voice transfer link.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, described in the computing device during computer program The step of realizing the earphone voice interactive method:
Detect whether to start speech identifying function;
If detecting startup speech identifying function, while voice transfer link is set up with mobile terminal, by earphone The speech data collected carries out caching;
After voice transfer link establishment success, by the voice transfer link by the speech data of the caching It is transmitted operation.
The fourth aspect of the embodiment of the present invention provides a kind of computer-readable recording medium, the computer-readable storage Media storage has computer program, and the computer program realizes the step of the earphone voice interactive method when being executed by processor Suddenly:
Detect whether to start speech identifying function;
If detecting startup speech identifying function, while voice transfer link is set up with mobile terminal, by earphone The speech data collected carries out caching;After voice transfer link establishment success, pass through the voice transfer chain The speech data of the caching is transmitted operation by road.
Implement a kind of earphone voice interactive method provided in an embodiment of the present invention and its device, terminal device have and following had Beneficial effect:
By after speech identifying function is started, being opened while earphone and mobile terminal begin setting up voice transfer link Beginning is acquired to speech data, and the speech data collected is cached, after voice transfer link establishment success, ear The speech data of caching is transmitted operation by machine, and at the same time earphone, which continues to gather, simultaneously caches speech data, and user can be Start speech identifying function after carry out interactive voice operation immediately, without waiting for and do not result in speech data lose, Neng Gou Ensure to strengthen Consumer's Experience while speech data is not lost, solve the language between existing earphone and mobile terminal and cloud service The problem of there is speech data loss and not good Consumer's Experience in sound interaction.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art In required for the accompanying drawing that uses be briefly described, it should be apparent that, drawings in the following description are only some of the present invention Embodiment, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these Accompanying drawing obtains other accompanying drawings.
Fig. 1 is the implementation process schematic diagram for the earphone voice interactive method that the embodiment of the present invention one is provided;
Fig. 2 is the implementation process schematic diagram for the earphone voice interactive method that the embodiment of the present invention two is provided;
Fig. 3 is the structural representation for the earphone voice interaction device that the embodiment of the present invention three is provided;
Fig. 4 is the exemplary plot for the terminal device that the embodiment of the present invention four is provided.
Embodiment
In describing below, in order to illustrate rather than in order to limit, it is proposed that such as tool of particular system structure, technology etc Body details, thoroughly to understand the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention can also be realized in the other embodiments of details.In other situations, omit to well-known system, device, electricity Road and the detailed description of method, in case unnecessary details hinders description of the invention.
In order to solve there is speech data during the interactive voice between existing earphone and mobile terminal and cloud service The problem of loss and Consumer's Experience be not good, present embodiments provides a kind of earphone voice interactive method and its device, terminal device, By the way that after speech identifying function is started, earphone begins setting up voice transfer link with mobile terminal, starts simultaneously to voice number According to being acquired, and the speech data collected is cached, after voice transfer link establishment success, earphone is by caching Speech data is transmitted operation, and at the same time earphone continues to gather and cache speech data, and user can know starting voice Carry out interactive voice operation immediately after other function, without waiting for and do not result in speech data lose, can ensure voice number According to Consumer's Experience is strengthened while loss, the interactive voice process between existing earphone and mobile terminal and cloud service is solved In exist speech data lose and Consumer's Experience it is not good the problem of.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Embodiment one:
Fig. 1 shows the implementation process for the earphone voice interactive method that the embodiment of the present invention one is provided, for convenience of description, Part related to the present embodiment is illustrate only, mainly includes step S101 to S103, details are as follows:
In step S101, detect whether to start speech identifying function.
When carrying out interactive voice service by earphone and mobile terminal and voice cloud service, it is necessary to pass through Key word voice Or the voice transfer link of button triggering earphone and mobile terminal, then passed by the voice that voice transfer link inputs user It is defeated arrive mobile terminal, then by mobile terminal by internet by the voice transfer to voice cloud service progress interactive voice service.
Triggered by crucial voice word or button needs before setting up voice transfer link between earphone and mobile terminal Whether test earphone starts to start speech identifying function, that is, has detected whether that Key word voice or button triggering start speech recognition Function, starts to start interactive voice service.It should be noted that starting speech identifying function can be carried out by Key word voice Triggering starts, and can also carry out triggering startup by button.
In step s 102, if detecting startup speech identifying function, voice transfer link is being set up with mobile terminal While, the speech data that earphone is collected carries out caching.
Startup speech identifying function, i.e. earphone is detected to start to carry out interactive voice clothes with mobile terminal and voice cloud service During business, user starts to input voice, and the speech data that user inputs is acquired by earphone, and the speech data collected is entered Row caching, at the same time, earphone starts to set up voice transfer link with mobile terminal, to transmit the speech data collected.
Exemplary, user carries out interactive voice service by bluetooth earphone and mobile terminal and voice Cloud Server, first First detect bluetooth earphone and have been started up speech identifying function, then bluetooth earphone starts to gather the voice signal of user's input, and In the internal memory that the speech data collected is stored in bluetooth earphone master chip, at the same time, bluetooth earphone is opened with mobile terminal Establish vertical Bluetooth SCO link.It should be noted that in practical operation, bluetooth earphone sets up Bluetooth SCO link with mobile terminal 5S or so time is needed, therefore bluetooth earphone can cache 5S or so speech data.
As an embodiment of the present embodiment, the speech data that earphone is collected can be deposited using circular buffer Storage.It should be noted that above-mentioned circular buffer (Ring Buffer or Circular Buffer) can be in storaged voice number According to while to mobile terminal transmitting audio data.
In step s 103, after voice transfer link establishment success, by the voice transfer link by the caching Speech data be transmitted operation.
After voice transfer link establishment success, the speech data in the internal memory of the master chip of earphone is transmitted behaviour Make, speech data that will be buffered is sent to mobile terminal, and by mobile terminal by internet by the voice transfer to Voice cloud service carries out interactive voice service, and speech cloud service search is simultaneously got after result, the result is fed back to mobile whole End, mobile terminal is again transmitted the result to earphone by voice transfer link, and plays to user by earphone.
Further, earphone has been turned on to begin setting up after speech identifying function and mobile terminal sound is transmitted detecting Link, to transmitting audio data, therefore can need whether detection voice transfer link is set up when setting up voice transfer link Success, after voice transfer link establishment success, the transmission of speech data, reduction delay can be carried out immediately.Exemplary, During voice transfer link establishment success, mobile terminal can feed back a success link signal, if headset detection is said to the signal Voice transfer link between bright earphone and mobile terminal has built up success.
Exemplary, Bluetooth SCO link is begun setting up between bluetooth earphone and mobile terminal, bluetooth earphone detects indigo plant in real time Whether tooth both SCO link is successfully established.Exemplary, when Bluetooth SCO link is successfully established, mobile terminal can feed back a success Link signal, if bluetooth earphone detects the signal, illustrates Bluetooth SCO link between bluetooth earphone and mobile terminal It is successfully established.
The present embodiment provide earphone voice interactive method by start speech identifying function after, earphone and mobile terminal Voice transfer link is begun setting up, starts simultaneously at and speech data is acquired, and the speech data collected is cached, After voice transfer link establishment success, the speech data of caching is transmitted operation by earphone, and at the same time earphone continues to adopt Collect and cache speech data, user can start speech identifying function after carry out interactive voice operation immediately, without waiting for and Speech data loss is not resulted in, Consumer's Experience can be strengthened while ensureing that speech data is not lost, existing ear is solved The problem of there is speech data loss and not good Consumer's Experience during interactive voice between machine and mobile terminal and cloud service.
Embodiment two:
Fig. 2 shows the implementation process for the earphone voice interactive method that the embodiment of the present invention two is provided, for convenience of description, Part related to the present embodiment is illustrate only, details are as follows:
In step s 201, detect whether to start speech identifying function.
When carrying out interactive voice service by earphone and mobile terminal and voice cloud service, it is necessary to pass through Key word voice Or the voice transfer link of button triggering earphone and mobile terminal, then passed by the voice that voice transfer link inputs user It is defeated arrive mobile terminal, then by mobile terminal by internet by the voice transfer to voice cloud service progress interactive voice service.
Triggered by crucial voice word or button needs before setting up voice transfer link between earphone and mobile terminal Whether test earphone starts to start speech identifying function, that is, has detected whether that Key word voice or button triggering start speech recognition Function, starts to start interactive voice service.It should be noted that starting speech identifying function can be carried out by Key word voice Triggering starts, and can also carry out triggering startup by button.
In step S202, if detecting startup speech identifying function, voice transfer link is being set up with mobile terminal While, the speech data that earphone is collected carries out caching.
Startup speech identifying function, i.e. earphone is detected to start to carry out interactive voice clothes with mobile terminal and voice cloud service During business, user starts to input voice, and the speech data that user inputs is acquired by earphone, and the speech data collected is entered Row caching, at the same time, earphone starts to set up voice transfer link with mobile terminal, to transmit the speech data collected.
Exemplary, user carries out interactive voice service by bluetooth earphone and mobile terminal and voice Cloud Server, first First detect bluetooth earphone and have been started up speech identifying function, then bluetooth earphone starts to gather the voice signal of user's input, and In the internal memory that the speech data collected is stored in bluetooth earphone master chip, at the same time, bluetooth earphone is opened with mobile terminal Establish vertical Bluetooth SCO link.It should be noted that in practical operation, bluetooth earphone sets up Bluetooth SCO link with mobile terminal 5S or so time is needed, therefore bluetooth earphone can cache 5S or so speech data.
As an embodiment of the present embodiment, the speech data that earphone is collected can be deposited using circular buffer Storage is, it is necessary to which explanation, above-mentioned circular buffer (Ring Buffer or Circular Buffer) can be in storaged voice number According to while to mobile terminal transmitting audio data.
Further, above-mentioned steps S202 is specially:The speech data that earphone is collected is carried out using circular buffer Storage, circular buffer can be while voice data to mobile terminal transmitting audio data.
In step S203, after voice transfer link establishment success, by the voice transfer link by the caching Speech data be transmitted operation.After voice transfer link establishment success, by the voice in the internal memory of the master chip of earphone Data are transmitted operation, and speech data that will be buffered is sent to mobile terminal, and passes through internet by mobile terminal The voice transfer to voice cloud service is subjected to interactive voice service, speech cloud service search simultaneously gets after result, this is tied Structure feeds back to mobile terminal, and mobile terminal transmits the result to earphone by voice transfer link, and is played by earphone To user.
Further, earphone has been turned on to begin setting up after speech identifying function and mobile terminal sound is transmitted detecting Link, needs whether detection voice transfer link is created as to transmitting audio data, therefore when setting up voice transfer link Work(, after voice transfer link establishment success, the transmission of speech data, reduction delay can be carried out immediately.Exemplary, in language When sound transmission link is successfully established, mobile terminal can feed back a success link signal, if headset detection illustrates to the signal Voice transfer link between earphone and mobile terminal has built up success.
Exemplary, Bluetooth SCO link is begun setting up between bluetooth earphone and mobile terminal, bluetooth earphone detects indigo plant in real time Whether tooth both SCO link is successfully established.Exemplary, when Bluetooth SCO link is successfully established, mobile terminal can feed back a success Link signal, if bluetooth earphone detects the signal, illustrates Bluetooth SCO link between bluetooth earphone and mobile terminal It is successfully established.
In step S204, whether detection voice transfer is in idle periods.
It should be noted that being a kind of semiduplex work shape when user carries out interactive voice service with voice cloud service State:User is putd question to by earphone, has been asked the voice Cloud Server identification voice of rear mobile terminal and has been searched for answer, Ran Houyi Result is fed back to earphone by dynamic terminal by voice, is waited after end to be feedback, user just can so be followed by being putd question to again Ring is reciprocal.
Therefore, it is necessary to detect whether voice transfer is in idle periods during interactive voice service is carried out, voice is passed Defeated to refer in idle periods, user carries out that phonetic entry, i.e. earphone are interior for a period of time does not collect user not over earphone The voice signal of input, then illustrate that now voice transfer is in idle periods.
Further, above-mentioned steps S204 comprises the following steps:
The speech data that earphone is collected carries out real-time voice activity detection to judge whether earphone persistently carries out voice Collection;
If earphone persistently carries out voice collecting, voice transfer is not at idle periods;
If earphone does not carry out voice collecting persistently, voice transfer is in idle periods.
The speech data that earphone is collected carries out real-time voice activity detection, can interpolate that whether user carries out language Sound input operation, that is, can interpolate that whether earphone persistently carries out voice collecting, if earphone does not carry out voice collecting persistently, this When voice transfer be in idle periods, if earphone persistently carries out voice collecting, voice transfer is not at idle periods.
In step S205, if detecting voice transfer is in idle periods, the progress of Real-time voice data passage is switched to Real-time voice data is transmitted.
Detect voice transfer and be in idle periods, then illustrate that now user does not carry out phonetic entry, i.e. earphone and do not had The voice signal of user's input is collected, now, voice data source is switched over, that is, switches to Real-time voice data passage and enters Row Real-time voice data is transmitted, that is to say, that during subsequently voice transfer is carried out, no longer by the speech data collected Caching is carried out, but the speech data collected is directly sent to mobile terminal.
In step S206, if detecting voice transfer is not at idle periods, whether test earphone receives speech data.
When detecting voice transfer and being not at idle periods, then now user passes through earphone and carries out phonetic entry operation, Whether now test earphone received speech data, earphone receives speech data and then illustrates that the voice of earphone and mobile terminal is passed Transmission link has built up success, thus earphone can just receive the speech data fed back by mobile terminal.Then now allow hand over Real-time voice data transmission is carried out to Real-time voice data passage.
In step S207, if detecting earphone receives speech data, switch to Real-time voice data passage and carry out in fact When voice data transmission.
Speech data is received detecting earphone, then illustrates that the voice transfer link of earphone and mobile terminal has built up into Work(, thus earphone can just receive the speech data fed back by mobile terminal, now switch to the progress of Real-time voice data passage Real-time voice data is transmitted, i.e., during subsequently voice transfer is carried out, no longer cached the speech data collected Operation, but the speech data collected is directly sent to mobile terminal.
The present embodiment provide earphone voice interactive method by start speech identifying function after, earphone and mobile terminal Voice transfer link is begun setting up, starts simultaneously at and speech data is acquired, and the speech data collected is cached, After voice transfer link establishment success, the speech data of caching is transmitted operation by earphone, and at the same time earphone continues to adopt Collect and cache speech data, user can start speech identifying function after carry out interactive voice operation immediately, without waiting for and Speech data loss is not resulted in, Consumer's Experience can be strengthened while ensureing that speech data is not lost, moreover it is possible in language When sound transmission is in idle periods, switches to Real-time voice data passage and carry out real-time interactive voice, reduce prolonging for voice transfer When, further strengthen Consumer's Experience, the voice between existing earphone and mobile terminal and cloud service can be efficiently solved The problem of there is speech data loss and not good Consumer's Experience in interaction.
It should be understood that the size of the sequence number of each step is not meant to the priority of execution sequence, each process in above-described embodiment Execution sequence should determine that the implementation process without tackling the embodiment of the present invention constitutes any limit with its function and internal logic It is fixed.
Embodiment three:
To realize the earphone voice interactive method in the embodiment of the present invention one shown in Fig. 1, a kind of ear is present embodiments provided Machine voice interaction device.Fig. 3 shows the structure of the earphone voice interaction device, for convenience of description, illustrate only and this reality The related part of example is applied, details are as follows:
As shown in figure 3, earphone voice interaction device 30 includes:Start detection module 31, cache module 32 and sending module 33。
Start detection module 31 for detecting whether starting speech identifying function.
If cache module 32 is used to detect startup speech identifying function, voice transfer link is being set up with mobile terminal While, the speech data that earphone is collected carries out caching.
Sending module 33 is used for after voice transfer link establishment success, by the voice transfer link by the caching Speech data be transmitted operation.Alternatively, as an embodiment of the present embodiment, above-mentioned earphone voice interaction device 30 also include:Idle-detection module, the first handover module, reception detection module, the second handover module.
Idle-detection module, for detecting whether voice transfer is in idle periods.
First handover module, if being in idle periods for detecting voice transfer, switches to Real-time voice data passage Carry out Real-time voice data transmission.
Detection module is received, if being not at idle periods for detecting voice transfer, whether test earphone receives voice Data.
Second handover module, if receiving speech data for detecting earphone, switches to Real-time voice data passage and enters Row Real-time voice data is transmitted.
Specifically, above-mentioned cache module 32 is carried out specifically for the speech data for collecting earphone using circular buffer Storage, circular buffer can be while voice data to mobile terminal transmitting audio data.
Further, above-mentioned idle-detection module includes:Speech activity detection unit and judging unit.
Speech activity detection unit, the speech data for earphone to be collected carries out real-time voice activity detection to judge Whether earphone persistently carries out voice collecting;
Judging unit, if persistently carrying out voice collecting for earphone, voice transfer is not at idle periods;If earphone is not held Continuous to carry out voice collecting, then voice transfer is in idle periods.
It should be noted that earphone voice interaction device provided in an embodiment of the present invention, due to side shown in Fig. 1 of the present invention Method embodiment is based on same design, and its technique effect brought is identical with embodiment of the method shown in Fig. 1 of the present invention, and particular content can Referring to the narration in embodiment of the method shown in Fig. 1 of the present invention, here is omitted.
Therefore, the present embodiment provide earphone voice interaction device equally can by start speech identifying function after, Earphone and mobile terminal begin setting up voice transfer link, start simultaneously at and speech data is acquired, and by the language collected Sound data are cached, and after voice transfer link establishment success, the speech data of caching is transmitted operation by earphone, with this Earphone continues to gather and cache speech data simultaneously, and user can carry out interactive voice behaviour immediately after speech identifying function is started Make, without waiting for and do not result in speech data lose, can ensure speech data do not lose while strengthen user's body Test, solve there is speech data loss and user during the interactive voice between existing earphone and mobile terminal and cloud service The problem of experience is not good.
Example IV:
Fig. 4 is the schematic diagram for the terminal device that another embodiment of the present invention is provided.As shown in figure 4, the terminal of the embodiment Equipment 4 includes:Processor 40, memory 41 and it is stored in the memory 41 and can be run on the processor 40 The program of computer program 42, such as short message sending.The processor 40 is realized above-mentioned each when performing the computer program 42 Step in the embodiment of the method for individual short message sending, such as the step S101 to S103 shown in Fig. 1.Or, the processor 40 The function of each module/unit in above-mentioned each device embodiment, such as module shown in Fig. 3 are realized when performing the computer program 42 31 to 33 function.
Exemplary, the computer program 42 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 41, and are performed by the processor 40, to complete the present invention.Described one Individual or multiple module/units can complete the series of computation machine programmed instruction section of specific function, and the instruction segment is used for Implementation procedure of the computer program 42 in terminal device 4 is described.For example, the computer program 42 can be divided into Start detection module, cache module, sending module, each module concrete function is as follows:
Start detection module, for detecting whether starting speech identifying function.
Cache module, if for detecting startup speech identifying function, voice transfer link is being set up with mobile terminal While, the speech data that earphone is collected carries out caching.Sending module, in voice transfer link establishment success Afterwards, the speech data of the caching is transmitted by operation by the voice transfer link.The terminal device 4 can be ear The computing devices such as machine, desktop PC, notebook, palm PC and cloud server.The terminal device may include, but not It is only limitted to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 is only the example of terminal device 4, not Restriction to terminal device 4 is constituted, can be included than illustrating more or less parts, some parts or or not are combined Same part, such as the terminal device can also include input-output equipment, network access equipment, bus.
Alleged processor 40 can be CPU (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) or other PLDs, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as hard disk of terminal device 4 or interior Deposit.The memory 41 can also be the External memory equipment of the terminal device 4, such as is equipped with described terminal device 4 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodges Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4 Member also includes External memory equipment.The memory 41 is used for needed for storing the computer program and the terminal device Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that, for convenience of description and succinctly, only with above-mentioned each work( Energy unit, the division progress of module are for example, in practical application, as needed can distribute above-mentioned functions by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completion The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used To be that unit is individually physically present, can also two or more units it is integrated in a unit, it is above-mentioned integrated Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.In addition, each function list Member, the specific name of module are also only to facilitate mutually differentiation, is not limited to the protection domain of the application.Said system The specific work process of middle unit, module, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, without detailed description or note in some embodiment The part of load, may refer to the associated description of other embodiments.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.
, can be with embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method Realize by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of division of logic function there can be other dividing mode, for example when actually realizing Multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or not perform.Separately A bit, shown or discussed coupling or direct-coupling or communication connection each other can be by some interfaces, device Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated module/unit realized using in the form of SFU software functional unit and as independent production marketing or In use, can be stored in a computer read/write memory medium.Understood based on such, the present invention realizes above-mentioned implementation All or part of flow in example method, can also instruct the hardware of correlation to complete, described meter by computer program Calculation machine program can be stored in a computer-readable recording medium, and the computer program can be achieved when being executed by processor The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or some intermediate forms etc..The computer-readable medium It can include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried Dish, CD, computer storage, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium is included can carry out appropriate increasing according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in some jurisdictions, according to legislation and patent practice, computer-readable medium include be electric carrier signal and Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to foregoing reality Example is applied the present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each Technical scheme described in embodiment is modified, or carries out equivalent substitution to which part technical characteristic;And these are changed Or replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme, all should Within protection scope of the present invention.

Claims (10)

1. a kind of earphone voice interactive method, it is characterised in that the earphone voice interactive method includes:
Detect whether to start speech identifying function;
If detecting startup speech identifying function, while voice transfer link is set up with mobile terminal, earphone is gathered The speech data arrived carries out caching;
After voice transfer link establishment success, the speech data of the caching is carried out by the voice transfer link Send operation.
2. earphone voice interactive method according to claim 1, it is characterised in that the earphone voice interactive method is also wrapped Include:
Detect whether voice transfer is in idle periods;
If detecting voice transfer is in idle periods, switches to Real-time voice data passage and carry out Real-time voice data transmission.
3. earphone exchange method according to claim 1 or 2, it is characterised in that the earphone exchange method also includes:
If detecting voice transfer is not at idle periods, detect whether the earphone receives speech data;
If detecting the earphone receives speech data, switch to Real-time voice data passage and carry out Real-time voice data biography It is defeated.
4. earphone voice interactive method according to claim 1, it is characterised in that the voice number for collecting earphone It is specially according to caching is carried out:
The speech data that the earphone is collected is stored using circular buffer, and the circular buffer can be in storage To mobile terminal transmitting audio data while speech data.
5. earphone voice interactive method according to claim 2, it is characterised in that whether the detection voice transfer is in Idle periods include:
The speech data that the earphone is collected carries out real-time voice activity detection to judge whether the earphone is persistently carried out Voice collecting;
If the earphone persistently carries out voice collecting, voice transfer is not at idle periods;
If the earphone does not carry out voice collecting persistently, voice transfer is in idle periods.
6. a kind of earphone voice interaction device, it is characterised in that the earphone voice interaction device includes:
Start detection module, for detecting whether starting speech identifying function;
Cache module, if for detecting startup speech identifying function, the same of voice transfer link is being set up with mobile terminal When, the speech data that earphone is collected carries out caching;
Sending module, for after voice transfer link establishment success, by the voice transfer link by the caching Speech data be transmitted operation.
7. earphone voice interaction device according to claim 6, it is characterised in that the earphone voice interaction device is also wrapped Include:
Idle-detection module, for detecting whether voice transfer is in idle periods;
First handover module, if being in idle periods for detecting voice transfer, switches to the progress of Real-time voice data passage Real-time voice data is transmitted.
8. the earphone voice interaction device according to claim 6 or 7, it is characterised in that the earphone voice interaction device Also include:
Detection module is received, if being not at idle periods for detecting voice transfer, whether test earphone receives speech data;
Second handover module, if receiving speech data for detecting the earphone, switches to Real-time voice data passage and enters Row Real-time voice data is transmitted.
9. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor The computer program of operation, it is characterised in that realize such as claim 1 to 5 described in the computing device during computer program The step of any one methods described.
10. a kind of computer-readable recording medium, the computer-readable recording medium storage has computer program, its feature exists In the step of realizing such as claim 1 to 5 any one methods described when the computer program is executed by processor.
CN201710474659.4A 2017-06-21 2017-06-21 Earphone voice interaction method and device and terminal equipment Active CN107241689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710474659.4A CN107241689B (en) 2017-06-21 2017-06-21 Earphone voice interaction method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710474659.4A CN107241689B (en) 2017-06-21 2017-06-21 Earphone voice interaction method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN107241689A true CN107241689A (en) 2017-10-10
CN107241689B CN107241689B (en) 2020-05-05

Family

ID=59986596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710474659.4A Active CN107241689B (en) 2017-06-21 2017-06-21 Earphone voice interaction method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN107241689B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399917A (en) * 2018-01-26 2018-08-14 百度在线网络技术(北京)有限公司 Method of speech processing, equipment and computer readable storage medium
CN108550367A (en) * 2018-05-18 2018-09-18 深圳傲智天下信息科技有限公司 A kind of portable intelligent interactive voice control device, method and system
CN108563468A (en) * 2018-03-30 2018-09-21 深圳市冠旭电子股份有限公司 A kind of method, apparatus and Baffle Box of Bluetooth of Baffle Box of Bluetooth data processing
CN108564949A (en) * 2018-05-18 2018-09-21 深圳傲智天下信息科技有限公司 A kind of TWS earphones, Wrist belt-type AI voice interaction devices and system
CN108769432A (en) * 2018-07-27 2018-11-06 Oppo广东移动通信有限公司 Main earphone switching method, mobile terminal and computer readable storage medium
CN108986810A (en) * 2018-08-30 2018-12-11 出门问问信息科技有限公司 A kind of method and device for realizing interactive voice by earphone
CN109859762A (en) * 2019-01-02 2019-06-07 百度在线网络技术(北京)有限公司 Voice interactive method, device and storage medium
CN109949801A (en) * 2019-01-10 2019-06-28 百度在线网络技术(北京)有限公司 A kind of smart home device sound control method and system based on earphone
CN111295864A (en) * 2018-08-31 2020-06-16 华为技术有限公司 Method, terminal and system for improving voice call quality
CN111292738A (en) * 2018-12-07 2020-06-16 北京京东尚科信息技术有限公司 Voice interaction control method and system
CN112259076A (en) * 2020-10-12 2021-01-22 北京声智科技有限公司 Voice interaction method and device, electronic equipment and computer readable storage medium
US20210288807A1 (en) * 2018-07-10 2021-09-16 Cirrus Logic International Semiconductor Ltd. System and method for performing biometric authentication

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150031322A1 (en) * 2011-10-31 2015-01-29 Cardo Systems Inc. Mobile device for group activities having broadcasting of emergency messages capability
CN105161110A (en) * 2015-08-19 2015-12-16 百度在线网络技术(北京)有限公司 Bluetooth connection-based speech recognition method, device and system
CN105161111A (en) * 2015-08-25 2015-12-16 百度在线网络技术(北京)有限公司 Bluetooth connection-based voice recognition method and device
US20160036968A1 (en) * 2013-07-30 2016-02-04 Wuxi Vimicro Corporation Bluetooth headset with an audio table
CN105554214A (en) * 2015-12-09 2016-05-04 誉兴世纪(北京)科技有限公司 Voice notification device with function of pre-posed recording and multiple triggering start modes
CN105722020A (en) * 2016-03-04 2016-06-29 宇龙计算机通信科技(深圳)有限公司 Intelligent earphone, intelligent earphone system and communication method
CN106658369A (en) * 2016-12-06 2017-05-10 歌尔科技有限公司 Two-way voice communication device, communication system and communication method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150031322A1 (en) * 2011-10-31 2015-01-29 Cardo Systems Inc. Mobile device for group activities having broadcasting of emergency messages capability
US20160036968A1 (en) * 2013-07-30 2016-02-04 Wuxi Vimicro Corporation Bluetooth headset with an audio table
CN105161110A (en) * 2015-08-19 2015-12-16 百度在线网络技术(北京)有限公司 Bluetooth connection-based speech recognition method, device and system
CN105161111A (en) * 2015-08-25 2015-12-16 百度在线网络技术(北京)有限公司 Bluetooth connection-based voice recognition method and device
CN105554214A (en) * 2015-12-09 2016-05-04 誉兴世纪(北京)科技有限公司 Voice notification device with function of pre-posed recording and multiple triggering start modes
CN105722020A (en) * 2016-03-04 2016-06-29 宇龙计算机通信科技(深圳)有限公司 Intelligent earphone, intelligent earphone system and communication method
CN106658369A (en) * 2016-12-06 2017-05-10 歌尔科技有限公司 Two-way voice communication device, communication system and communication method

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399917B (en) * 2018-01-26 2023-08-04 百度在线网络技术(北京)有限公司 Speech processing method, apparatus and computer readable storage medium
CN108399917A (en) * 2018-01-26 2018-08-14 百度在线网络技术(北京)有限公司 Method of speech processing, equipment and computer readable storage medium
CN108563468A (en) * 2018-03-30 2018-09-21 深圳市冠旭电子股份有限公司 A kind of method, apparatus and Baffle Box of Bluetooth of Baffle Box of Bluetooth data processing
CN108563468B (en) * 2018-03-30 2021-09-21 深圳市冠旭电子股份有限公司 Bluetooth sound box data processing method and device and Bluetooth sound box
US11199893B2 (en) 2018-03-30 2021-12-14 Shenzhen Grandsun Electronic Co., Ltd. Method, device for processing data of bluetooth speaker, and bluetooth speaker
CN108550367A (en) * 2018-05-18 2018-09-18 深圳傲智天下信息科技有限公司 A kind of portable intelligent interactive voice control device, method and system
CN108564949A (en) * 2018-05-18 2018-09-21 深圳傲智天下信息科技有限公司 A kind of TWS earphones, Wrist belt-type AI voice interaction devices and system
US11799657B2 (en) * 2018-07-10 2023-10-24 Cirrus Logic Inc. System and method for performing biometric authentication
US20210288807A1 (en) * 2018-07-10 2021-09-16 Cirrus Logic International Semiconductor Ltd. System and method for performing biometric authentication
WO2020019848A1 (en) * 2018-07-27 2020-01-30 Oppo广东移动通信有限公司 Method for performing switching with respect to primary earpiece, mobile terminal, and computer readable storage medium
CN108769432B (en) * 2018-07-27 2020-02-11 Oppo广东移动通信有限公司 Main earphone switching method and mobile terminal
US11452172B2 (en) 2018-07-27 2022-09-20 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for switching master earphone, mobile terminal, and non-transitory computer-readable storage medium
CN108769432A (en) * 2018-07-27 2018-11-06 Oppo广东移动通信有限公司 Main earphone switching method, mobile terminal and computer readable storage medium
CN108986810A (en) * 2018-08-30 2018-12-11 出门问问信息科技有限公司 A kind of method and device for realizing interactive voice by earphone
CN111295864A (en) * 2018-08-31 2020-06-16 华为技术有限公司 Method, terminal and system for improving voice call quality
CN111292738A (en) * 2018-12-07 2020-06-16 北京京东尚科信息技术有限公司 Voice interaction control method and system
CN109859762A (en) * 2019-01-02 2019-06-07 百度在线网络技术(北京)有限公司 Voice interactive method, device and storage medium
CN109949801A (en) * 2019-01-10 2019-06-28 百度在线网络技术(北京)有限公司 A kind of smart home device sound control method and system based on earphone
CN112259076A (en) * 2020-10-12 2021-01-22 北京声智科技有限公司 Voice interaction method and device, electronic equipment and computer readable storage medium
CN112259076B (en) * 2020-10-12 2024-03-01 北京声智科技有限公司 Voice interaction method, voice interaction device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN107241689B (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN107241689A (en) A kind of earphone voice interactive method and its device, terminal device
CN107277754A (en) The method and Bluetooth peripheral of a kind of bluetooth connection
CN109246671A (en) Data transmission method, apparatus and system
CN109257500A (en) Audio frequency playing method, device, electronic equipment and storage medium
CN102904959A (en) Network accelerating method and gateway
CN109618318A (en) A kind of matching method and TWS earphone of TWS earphone
CN107770269A (en) A kind of service response method and its terminal
CN107256707A (en) A kind of audio recognition method, system and terminal device
US20220247707A1 (en) Session message display method, electronic device and storage medium
CN107707653A (en) A kind of advertisement sending method, device and vehicle intelligent equipment
CN103139157A (en) Network communication method based on socket, device and system
CN110505516A (en) A kind of throwing screen control method, device and system
CN107172313A (en) Improve method, device, mobile terminal and the storage medium of hand-free call quality
CN107801132A (en) A kind of intelligent sound box control method, mobile terminal and intelligent sound box
CN110297722A (en) Thread task communication method and Related product
CN107333287A (en) Network detecting method, network detection means and intelligent terminal
CN107317928A (en) Information processing method, mobile terminal and computer-readable recording medium
CN107968848A (en) A kind of method, terminal device and storage medium for obtaining IP address
CN108092784A (en) A kind of method, terminal and computer-readable medium for creating group
CN107331399A (en) A kind of results of learning detection method, system and terminal device
CN107277896A (en) Wifi hotspot management method, device and terminal device
CN107332988A (en) Information processing method, mobile terminal and computer-readable recording medium
CN103178878A (en) Method and system for connection of wireless devices
CN108563468A (en) A kind of method, apparatus and Baffle Box of Bluetooth of Baffle Box of Bluetooth data processing
CN109976698A (en) Obtain method and device, the equipment, computer readable storage medium of audio data

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
GR01 Patent grant
GR01 Patent grant