CN110475170A - Control method, device, mobile terminal and the storage medium of earphone broadcast state - Google Patents

Control method, device, mobile terminal and the storage medium of earphone broadcast state Download PDF

Info

Publication number
CN110475170A
CN110475170A CN201910624028.5A CN201910624028A CN110475170A CN 110475170 A CN110475170 A CN 110475170A CN 201910624028 A CN201910624028 A CN 201910624028A CN 110475170 A CN110475170 A CN 110475170A
Authority
CN
China
Prior art keywords
audio
earphone
environment
preset
broadcast state
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
CN201910624028.5A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910624028.5A priority Critical patent/CN110475170A/en
Publication of CN110475170A publication Critical patent/CN110475170A/en
Priority to PCT/CN2019/121190 priority patent/WO2021003955A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Headphones And Earphones (AREA)

Abstract

The invention discloses a kind of control methods of earphone broadcast state, the control device mobile terminal and storage medium of earphone broadcast state, this method comprises: obtaining the current status information of mobile terminal, judge whether the status information is earphone connection;When the status information be earphone connection, then by receiver acquisition first environment audio;Judge to match with the presence or absence of single audio frequency with preset audio in the first environment audio;When that there are the single audio frequencies in the first environment audio is corresponding with the preset audio, then the earphone working condition being connected with the mobile terminal is adjusted according to the corresponding regulation scheme of the preset audio.Therefore, the present invention obtains first environment audio by receiver, determines scene according to first environment audio, earphone working condition is adjusted, and avoids user from not made in time according to external environment sound and evades dangerous behavior, causes danger is unexpected to occur;User is avoided because ignoring external environment sound, causes daily life not convenient.

Description

Control method, device, mobile terminal and the storage medium of earphone broadcast state
Technical field
The present invention relates to terminal control technical field more particularly to a kind of control method of earphone broadcast state, movements eventually End and storage medium.
Background technique
With the development of mobile terminal, hand-held mobile terminal has become the necessary article of people's daily life, eventually with movement The earphone being used cooperatively is held to become the wearable device that people wear for a long time.Since the sound that earphone plays is larger, can interfere User listens to external environment sound, and especially existing noise cancelling headphone, full packet ear earphone can effectively drop to promote earphone audio quality Low external environment sound causes user not made in time according to external environment sound and evades dangerous behavior, user is made to be in danger In;Or ignore external environment sound, cause daily life not convenient.
Summary of the invention
The main purpose of the present invention is to provide the controls of the control method, earphone broadcast state of a kind of earphone broadcast state Device, mobile terminal and storage medium, it is intended to solve to extract useful external environment sound due to using earphone to influence user, cause It lives not convenient technical problem.
To achieve the above object, the present invention proposes a kind of control method of earphone broadcast state, the earphone broadcast state Control method include:
The current status information of mobile terminal is obtained, judges whether the status information is earphone connection;
When the status information be earphone connection, then by receiver acquisition first environment audio;
Judge to match with the presence or absence of single audio frequency with preset audio in the first environment audio;
When that there are the single audio frequencies in the first environment audio is corresponding with the preset audio, then according to the default sound Frequently corresponding regulation scheme adjusts the earphone working condition being connected with the mobile terminal.
Preferably, the preset audio, which is one section, has semantic prompt audio;It is described to work as in the first environment audio It is corresponding with the preset audio that there are the single audio frequencies, then is adjusted and the shifting according to the corresponding regulation scheme of the preset audio The step of earphone working condition that dynamic terminal is connected, including
When that there are the single audio frequencies in the first environment audio is corresponding with the prompt audio, then sent to the earphone Play instruction comprising the prompt audio, so that the earphone plays the prompt audio.
Preferably, the preset audio, which is one section, has semantic prompt audio;It is described to work as in the first environment audio It is corresponding with the prompt audio that there are the single audio frequencies, then sends the play instruction comprising the prompt audio to the earphone, So that after the step of earphone broadcasting prompt audio, comprising:
The current display state of the mobile terminal display screen is obtained, judges whether the display state is to light;
When the display state is to light, the corresponding semantic character of the acquisition prompt audio controls the mobile terminal Display screen show the semantic character.
Preferably, the semantic character includes semantic character and the semantic character that arrives at a station of entering the station, described to work as the first environment It is corresponding with the prompt audio that there are the single audio frequencies in audio, then sends the broadcasting comprising the prompt audio to the earphone Instruction, so that after the step of earphone plays the prompt audio, comprising:
Judge whether the semantic character is the default character that enters the station;
If the semanteme character is the default character that enters the station, second environment audio is obtained by the receiver;
Judge corresponding with preset travel audio with the presence or absence of single audio frequency in the second environment audio;
When that there are single audio frequencies in the second environment audio is corresponding with the preset travel audio, then increase the earphone Broadcast sound volume.
Preferably, the control method of the earphone broadcast state further include:
By the receiver obtain comprising it is described prompt audio third environmental audio, to the third environmental audio into Row semantics recognition generates text information;
The selection operation made based on the text information of user is received, according to the selection operation by the text information In all or part be set as semantic character;
It is the prompt audio by audio setting corresponding with the semanteme character in the third environmental audio.
Preferably, described there are the single audio frequencies in the first environment audio matches with the preset audio, then root The step of adjusting earphone working condition according to the corresponding regulation scheme of the preset audio include:
It is matched when there are the single audio frequencies in the first environment audio with the preset audio, then judges the earphone Whether noise reduction type is active noise reduction;
When the noise reduction type of the earphone is active noise reduction, then closes active noise reduction function and reduce the earphone and play sound Amount;
When the noise reduction type of the earphone is not active noise reduction, then the first environment audio is played.
Preferably, step packet corresponding with preset audio with the presence or absence of single audio frequency in the judgement first environment audio It includes:
Sub-frame processing is carried out to the first environment audio, generates speech frame;
Feature extraction is carried out to the speech frame, it is special to obtain the corresponding mel-frequency cepstrum coefficient of each speech frame Levy vector;
The mel-frequency cepstrum coefficient feature vector is inputted in default phoneme model, with the frame level voice being aligned Feature vector;
By preset state network, judge the alignment frame level speech feature vector whether with the preset audio one It causes, wherein preset state network is the database constructed by hidden Markov model.
The present invention also provides a kind of control device of earphone broadcast state, the control device includes:
First obtains module, and the first acquisition module is for obtaining the current status information of mobile terminal, described in judgement Whether status information is earphone connection;
Second obtains module, and described second, which obtains module, is used to when the status information be earphone connection, then passes through movement The receiver of terminal obtains first environment audio;
Judgment module, the judgment module is for judging in the first environment audio with the presence or absence of single audio frequency and default sound Frequency matches;
Adjustment module, the adjustment module are used to preset when there are the single audio frequencies in the first environment audio with described Audio is corresponding, then the earphone work shape being connected with the mobile terminal is adjusted according to the corresponding regulation scheme of the preset audio State.
The present invention also provides a kind of mobile terminal, the mobile terminal includes processor, memory, receiver and deposits Storage on the memory can be by the control program for the earphone broadcast state that the processor executes, wherein the earphone is broadcast When putting the control program of state and being executed by the processor, the step of realizing the control method such as above-mentioned earphone broadcast state.
The present invention also provides a kind of storage medium, the control journey of earphone broadcast state is stored on the storage medium Sequence, wherein when the control program of the earphone broadcast state is executed by processor, realize the control such as above-mentioned earphone broadcast state The step of method processed.
In technical solution of the present invention, first environment audio is obtained by receiver, scene is determined according to first environment audio, Earphone working condition is adjusted, avoids user from not made in time according to external environment sound and evades dangerous behavior, cause Dangerous unexpected generation;User is avoided because ignoring external environment sound, causes daily life not convenient.
Detailed description of the invention
Fig. 1 is the hardware structural diagram of mobile terminal involved in the embodiment of the present invention;
Fig. 2 is the flow diagram of the control method first embodiment of earphone broadcast state of the present invention;
Fig. 3 is the flow diagram of the control method second embodiment of earphone broadcast state of the present invention;
Fig. 4 is the flow diagram of the control method 3rd embodiment of earphone broadcast state of the present invention;
Fig. 5 is the flow diagram of the control method fourth embodiment of earphone broadcast state of the present invention;
Fig. 6 is the flow diagram of the 5th embodiment of control method of earphone broadcast state of the present invention;
Fig. 7 is the flow diagram of the control method sixth embodiment of earphone broadcast state of the present invention;
Fig. 8 is the flow diagram of the 7th embodiment of control method of earphone broadcast state of the present invention;
Fig. 9 is the module diagram of the control device of earphone broadcast state of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present embodiments relate to the control method of earphone broadcast state be mainly used in mobile terminal, the mobile terminal It is the equipment with processing function, can be mobile phone, tablet computer, intelligent wearable device or portable computer.
Referring to Fig.1, Fig. 1 is the hardware structural diagram of mobile terminal involved in the embodiment of the present invention.The present invention In embodiment, mobile terminal may include processor 1001 (such as CPU), and communication bus 1002, user interface 1003, network connects Mouth 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components;User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), receiver (Receiver);Network Interface 1004 optionally may include WI-FI interface, SIM card interface, blue tooth interface;Memory 1005 can be high-speed RAM and deposit Reservoir is also possible to stable memory (non-volatile memory), such as magnetic disk storage, memory 1005 are optional The storage device that can also be independently of aforementioned processor 1001.
Receiver is for one kind by audio-frequency electric under the conditions of voiceless sound leaks (or high/low suction ring of 3.2 types by ITU standard) Signal is converted into the electro-acoustic element of voice signal, to realize audio collection.Mobile terminal by wired or wireless mode with Earphone is communicatively coupled, and mobile terminal issues the diaphragm oscillations sounding of electric signal driving earphone.
It will be understood by those skilled in the art that hardware configuration shown in Fig. 1 does not constitute the restriction to equipment, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
With continued reference to Fig. 1, the memory 1005 in Fig. 1 as a kind of storage medium may include that operating system, audio are broadcast The control program of amplification module and earphone broadcast state.
In Fig. 1, audio playing module is mainly used for connecting earphone, controls the loudspeaker vibration sounding of earphone;And it handles Device 1001 can call the control program of the earphone broadcast state stored in memory 1005, and execute the control of earphone broadcast state The step of method processed.
Based on the hardware configuration of above-mentioned terminal, each embodiment of the control method of earphone broadcast state of the present invention is proposed.
The present invention provides a kind of control method of earphone broadcast state.
Referring to Fig. 2, in the first embodiment of the invention, the control method of earphone broadcast state the following steps are included:
Step S100 obtains the current status information of mobile terminal, judges whether the status information is earphone connection;
The control method of earphone broadcast state provided by the invention is used for mobile terminal, and the processor acquisition of mobile terminal is worked as Preceding status information, status information can specifically include mobile terminal carry loudspeaker working condition, whether with external broadcasting Equipment connection, working condition of external playback equipment etc..
Step S200, when the status information is earphone connection, then the receiver for passing through mobile terminal obtains first environment Audio;
Earphone is connected as mobile terminal and carries out sounding by the loudspeaker of earphone.Earphone can directly pass through with mobile terminal Route wired connection can also be wirelessly connected by bluetooth etc..First environment audio is the audio that current receiver acquires in real time Information, first environment audio may include a variety of single audio frequencies such as vehicle driving noise, sound of the wind, the prompt tone that arrives at a station, pedestrian's voice It mixes.Specifically the receiver connecting with mobile terminal can also be can be used using the receiver installed in mobile terminal The acquisition for carrying out first environment audio, can be individual receiver, be also possible to the receiver being set in earphone.
Step S300 judges to match with the presence or absence of single audio frequency with preset audio in the first environment audio;
Preset audio is the audio file that those skilled in the art preset and store.It specifically, can be according to reality Need to be arranged a variety of preset audios, such as: braking automobile sound, the prompt tone that arrives at a station etc..
Step S400, when that there are the single audio frequencies in the first environment audio is corresponding with the preset audio, then basis The corresponding regulation scheme of the preset audio adjusts the earphone working condition being connected with the mobile terminal.
It is corresponding with the preset audio when the single audio frequency is not present in the first environment audio, then it is not processed.
Different regulation schemes can be preset for different preset audios, be can specifically include and increased volume, drop Amount of bass, closing active noise reduction function etc., so that earphone working condition is adapted to different scenes.
Such as: preset audio is vehicle whistle sound, and the first environment audio that will acquire and vehicle whistle acoustic ratio are compared with when first There are single audio frequencies to have and vehicle whistle acoustic matching for environmental audio, then it represents that there are vehicle whistle sound in environment locating for user, this When call corresponding with vehicle whistle sound regulation scheme, decrease of noise functions or reduction earphone broadcast sound volume are closed, so that user is audible To vehicle whistle sound, makes and evade behavior.
The present invention acquires first environment audio by receiver, then by first environment audio compared with preset audio, with root The working condition of earphone is adjusted according to different first environment audios, to avoid music or earphone noise reduction because playing in earphone Function causes user not make the case where evading hazardous act or social action according to external environment sound in time.
Further, referring to figure 3., Fig. 3 is the process of the control method second embodiment of earphone broadcast state of the present invention Schematic diagram is based on second embodiment, and the preset audio, which is one section, has semantic prompt audio;The step S400 includes:
Step S410, when that there are the single audio frequencies in the first environment audio is corresponding with the prompt audio, then to institute It states earphone and sends the play instruction comprising the prompt audio, so that the earphone plays the prompt audio.
Preset audio, which is one section, in the present embodiment has semantic prompt audio, i.e. prompt audio for people's sound or imitates people The audio of sound, speech recognition software in the prior art can will be prompted to audio and are converted to written form to express.
Such as: the prompt audio prestored is " next stop reaches A website ", issues " next stop reaches A website " when external, by Words device collects the first environment audio comprising " next stop reaches A website ", obtains existing in first environment audio by comparing Single audio frequency and prompt Audio Matching, then the diaphragm oscillations of audio playing module control earphone, issue " next stop reaches A website " Prompt tone.External sending " next stop reaches A website " is had ignored to avoid user, leads to miss website.
Further, referring to figure 4., Fig. 4 is the process of the control method 3rd embodiment of earphone broadcast state of the present invention Schematic diagram is based on first embodiment, includes: after the step S410
Step S411 obtains the current display state of the mobile terminal display screen, judge the display state whether be It lights;
Step S412 then obtains the corresponding semantic character of the prompt audio, control institute when the display state is to light The display screen for stating mobile terminal shows the semantic character.
Those skilled in the art preset semantic character corresponding with prompt audio, and semantic character is and prompt audio language The corresponding character of justice.People often indulge in mobile phone and show in content, cause to miss website, pass through judgement in riding process The display state of display screen, to judge whether user is currently reading the content of display screen, control display screen shows semantic word Symbol, further reminds user.
Further, referring to figure 5., Fig. 5 is the process of the control method fourth embodiment of earphone broadcast state of the present invention Schematic diagram is based on 3rd embodiment, after the step S410, comprising:
Step S413 judges whether the semantic character is the default character that enters the station;
Step S414 obtains the second ring by the receiver if the semanteme character is the default character that enters the station Border audio;
Step S415 judges corresponding with preset travel audio with the presence or absence of single audio frequency in the second environment audio;
Preset travel audio is the pre-set audio of those skilled in the art.Specifically can be set multiple automobiles, subway, The traveling audio of the vehicles such as aircraft,
Step S416, when there are single audio frequency and the preset travel Audio Matching, then increasing in the second environment audio The broadcast sound volume of the earphone.
When there are single audio frequency and the preset travel Audio Matching, then showing that user has submitted in the second environment audio Logical tool, and the vehicles are just under steam, by increasing the broadcast sound volume of the earphone, reduce due to vehicle travel process In noise to earphone play sound interference.It preferably, can also include: according to the matching default row after step S416 The corresponding noise reduction schemes of audio are sailed, decrease of noise functions is opened.In the present invention, following formula progress is can be used in noise reduction process:
Let D (w)=PS(w)-αPn(w);
If D (w) > β Pn(w), P 'S(w)=D (w);
If D (w)≤β Pn(w), P 'S(w)=β Pn(w);
Wherein, α >=1,0 < β < 1, PS(w) be input noisy speech frequency spectrum, Pn(w) be the noise estimated frequency Spectrum, the two subtract each other to obtain D (w) difference frequency spectrum, and α is subtraction factor, and β is frequency spectrum lower threshold parameter.It is true with specific reference to signal-to-noise ratio Determine the value of α and β.
Further, Fig. 6 is please referred to, Fig. 6 is the process of the 5th embodiment of control method of earphone broadcast state of the present invention Schematic diagram is based on 3rd embodiment, the control method of the earphone broadcast state further include:
Step S420 obtains the third environmental audio comprising the prompt audio by the receiver, to the third Environmental audio carries out semantics recognition, generates text information;
Step S430 receives the selection operation made based on the text information of user, according to the selection operation by institute It states all or part in text information and is set as semantic character;
Audio setting corresponding with the semanteme character in the third environmental audio is the prompt tone by step S440 Frequently.
User can according to their needs, and self-setting prompts audio.Receiver acquisition is first passed through in advance containing prompt audio Third environmental audio, then by the processing such as noise reduction, semantics recognition, generate text information corresponding with third environmental audio.Due to Third environmental audio collection process is excessively noisy, and user decides the language for needing to be arranged in text information in its sole discretion by selection operation Adopted character, to improve discrimination.
Such as: subscriber station is recorded at " A website ", is obtained and is talked sound, sound of the wind comprising train driving sound, passerby and " train is A website will be entered " third environmental audio, to the third environmental audio carry out noise reduction process, by the audio conversion after noise reduction process Text information is changed to get the text information of " train will enter A website " is arrived.If the text information generated does not conform to the actual conditions, Prove that the third environmental audio recorded is of low quality, user can re-start recording.User manually selects " entering A website " as language Adopted character then will be set as prompt audio with " entering A website " corresponding part in third environmental audio after noise reduction.
Further, Fig. 7 is please referred to, Fig. 7 is the process of the control method sixth embodiment of earphone broadcast state of the present invention Schematic diagram, is based on first embodiment, and the step S400 includes:
Step S450 is matched with the preset audio when there are the single audio frequencies in the first environment audio, is then obtained The noise reduction type of the earphone judges whether the noise reduction type is active noise reduction;
Step S460, when the earphone noise reduction type be active noise reduction, then close active noise reduction function and reduce described in Earphone broadcast sound volume;
Step S470 then plays the first environment audio when the noise reduction type of the earphone is not active noise reduction.
In order to avoid the interference of external environment sound, sound quality is promoted, existing earphone uses active noise reduction or passive noise reduction. Active noise reduction is that the reversed sound wave equal with ambient noise is generated by noise reduction system, noise is neutralized, to realize noise reduction Effect.Passive noise reduction is to obstruct noise sound wave by using material and structure etc., to reduce noise.When earphone uses active noise reduction When, closing active noise reduction function simultaneously suitably reduces the earphone broadcast sound volume, and user can be allowed to receive and fallen by noise reduction process Audio.When earphone uses passive noise reduction, the preferable structure of soundproof effects such as especially full packet ear earphone, directly by playing institute First environment audio is stated, user is obtained.
Further, Fig. 8 is please referred to, Fig. 8 is the process of the 7th embodiment of control method of earphone broadcast state of the present invention Schematic diagram, is based on first embodiment, and the step S300 includes:
Step S310 carries out sub-frame processing to the first environment audio, generates speech frame;
Sub-frame processing is by first environment audio segmentation by mobile window function into the audio fragment of regular length.Successively arrange Have between the speech frame and speech frame of column it is certain overlapping, such as: by 30 milliseconds of each speech frame, 5 milliseconds overlapping, i.e., the In N speech frame, 1-5 milliseconds are consistent with 26-30 milliseconds of N-1 speech frame, 26-30 milliseconds with N+1 speech frame 1-5 milliseconds consistent.
Step S320 carries out feature extraction to the speech frame, to obtain the corresponding mel-frequency of each speech frame Cepstrum coefficient feature vector;
Since speech frame itself does not have descriptive power in the time domain, according to the physiological property of human ear, by speech frame The processing such as Fourier transformation, triangle filtering, logarithmic transformation, discrete cosine transform is carried out, speech frame processing is tieed up for one 13 Feature vector, this feature vector are mel-frequency cepstrum coefficient feature vector, i.e., have identification meaning in first environment audio Feature.
Step S330 inputs the mel-frequency cepstrum coefficient feature vector in default phoneme model, to be aligned Frame level speech feature vector;
Default phoneme model is that those skilled in the art pass through a large amount of voice data trained model in advance.By default Several speech frames can be corresponded to phoneme by phoneme model, then form word by several phonemes.
Step S340, by preset state network, judge the alignment frame level speech feature vector whether with it is described pre- If audio is consistent, wherein preset state network is to be constructed by hidden Markov model (Hidden Markov Model, HMM) Database.
Preset state network is the text network that those skilled in the art are arranged according to actual needs, so that several phonemes exist Corresponding word is found in preset state network.Such as: include in preset state network " today ", " tomorrow " and " day after tomorrow ", that What the frame level speech feature vector no matter obtained is, last corresponding word can only be " today ", " tomorrow " and " day after tomorrow " In one, to increase comparison efficiency and accuracy rate.
In addition, the control of the earphone broadcast state fills the present invention also provides a kind of control device of earphone broadcast state It sets and includes:
First obtains module 10, and the first acquisition module 10 judges for obtaining the current status information of mobile terminal Whether the status information is earphone connection;
Second obtains module 20, and described second, which obtains module 20, is used to when the status information be earphone connection, then passes through The receiver of mobile terminal obtains first environment audio;
Judgment module 30, the judgment module 30 is for judging in the first environment audio with the presence or absence of single audio frequency and pre- If Audio Matching;
Adjustment module 40, the adjustment module 40 be used in the first environment audio there are the single audio frequency with it is described Preset audio is corresponding, then adjusts the earphone work being connected with the mobile terminal according to the corresponding regulation scheme of the preset audio Make state.
Further, the preset audio, which is one section, has semantic prompt audio;The adjustment module 40 is also used to work as It is corresponding with the prompt audio that there are the single audio frequencies in the first environment audio, then sends to the earphone and mention comprising described Show the play instruction of audio, so that the earphone plays the prompt audio.
Further, the preset audio, which is one section, has semantic prompt audio;The adjustment module 40 includes:
First acquisition unit, the first acquisition unit is for obtaining the current display shape of the mobile terminal display screen State judges whether the display state is to light;
Display unit, the display unit are used to when the display state be to light, and it is corresponding to obtain the prompt audio Semantic character, the display screen for controlling the mobile terminal show the semantic character.
Further, the semantic character includes enter the station semantic character and the semantic character that arrives at a station, and the adjustment module 40 is wrapped It includes:
First judging unit, first judging unit is for judging whether the semantic character is the default character that enters the station;
Second acquisition unit, if the second acquisition unit is the default character that enters the station for the semantic character, Second environment audio is obtained by the receiver;
Second judgment unit, the second judgment unit is for judging in the second environment audio with the presence or absence of single audio frequency It is corresponding with preset travel audio;
Play and adjust unit, broadcastings adjust unit for work as in the second environment audio there are single audio frequency with it is described Preset travel audio is corresponding, then increases the broadcast sound volume of the earphone.
Further, the control device includes:
Third obtains module 50, and it includes the prompt tone that the third, which obtains module 50 and is used to obtain by the receiver, The third environmental audio of frequency carries out semantics recognition to the third environmental audio, generates text information;
Setup module 60, the setup module 60 are used to receive the selection operation that user is made based on the text information, Semantic character is set by all or part in the text information according to the selection operation;
It is the prompt audio by audio setting corresponding with the semanteme character in the third environmental audio.
Further, the adjustment module 40 includes:
Second judgment unit, the second judgment unit be used in the first environment audio there are the single audio frequency with The preset audio matching, then judge whether the noise reduction type of the earphone is active noise reduction;
The adjusting unit that plays is also used to when the noise reduction type of the earphone be active noise reduction, then closes active noise reduction function It can and reduce the earphone broadcast sound volume;
When the noise reduction type of the earphone is not active noise reduction, then the first environment audio is played.
Further, the judgment module 30 includes:
Sub-frame processing unit, the sub-frame processing unit are used to carry out sub-frame processing to the first environment audio, generate Speech frame;
Feature extraction unit, the feature extraction unit is used to carry out feature extraction to the speech frame, each to obtain The corresponding mel-frequency cepstrum coefficient feature vector of the speech frame;
Characteristic processing unit, the characteristic processing unit are used to input the mel-frequency cepstrum coefficient feature vector pre- If in phoneme model, with the frame level speech feature vector being aligned;
Matching treatment unit, the matching treatment unit are used to judge the frame level of the alignment by preset state network Whether speech feature vector is consistent with the preset audio, wherein preset state network is to be constructed by hidden Markov model Database.
In addition, the control program of earphone broadcast state is stored on storage medium the present invention also provides a kind of storage medium, Wherein, when the control program of earphone broadcast state is executed by processor, the control method such as above-mentioned earphone broadcast state is realized The step of.
Wherein the control program of earphone broadcast state, which is performed realized method, can refer to earphone broadcasting shape of the present invention Each embodiment of the control method of state, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, calculate Machine, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of control method of earphone broadcast state characterized by comprising
The current status information of mobile terminal is obtained, judges whether the status information is earphone connection;
When the status information be earphone connection, then by receiver acquisition first environment audio;
Judge to match with the presence or absence of single audio frequency with preset audio in the first environment audio;
When that there are the single audio frequencies in the first environment audio is corresponding with the preset audio, then according to the preset audio pair The regulation scheme answered adjusts the earphone working condition being connected with the mobile terminal.
2. the control method of earphone broadcast state as described in claim 1, which is characterized in that the preset audio is one section of tool There is semantic prompt audio;Described that there are the single audio frequencies in the first environment audio is corresponding with the preset audio, then The step of adjusting the earphone working condition being connected with the mobile terminal according to the corresponding regulation scheme of the preset audio, packet It includes
When that there are the single audio frequencies in the first environment audio is corresponding with the prompt audio, then include to earphone transmission The play instruction of the prompt audio, so that the earphone plays the prompt audio.
3. the control method of earphone broadcast state as claimed in claim 2, which is characterized in that described to work as the first environment sound It is corresponding with the prompt audio that there are the single audio frequencies in frequency, then sends the broadcasting comprising the prompt audio to the earphone and refer to It enables, so that after the step of earphone plays the prompt audio, comprising:
The current display state of the mobile terminal display screen is obtained, judges whether the display state is to light;
When the display state is to light, the corresponding semantic character of the acquisition prompt audio controls the aobvious of the mobile terminal Display screen shows the semantic character.
4. the control method of earphone broadcast state as claimed in claim 3, which is characterized in that the control of the earphone broadcast state Method processed further include:
The third environmental audio comprising the prompt audio is obtained by the receiver, language is carried out to the third environmental audio Justice identification, generates text information;
The selection operation that user is made based on the text information is received, it will be in the text information according to the selection operation Completely or partially it is set as semantic character;
It is the prompt audio by audio setting corresponding with the semanteme character in the third environmental audio.
5. the control method of earphone broadcast state as claimed in claim 2, which is characterized in that the semanteme character includes entering the station Semantic character and the semantic character that arrives at a station, it is described when there are the single audio frequencies and the prompt audio pair in the first environment audio It answers, then sends the play instruction comprising the prompt audio to the earphone, so that the earphone plays the prompt audio After step, comprising:
Judge whether the semantic character is the default character that enters the station;
If the semanteme character is the default character that enters the station, second environment audio is obtained by the receiver;
Judge in the second environment audio with the presence or absence of single audio frequency and preset travel Audio Matching;
When that there are single audio frequencies in the second environment audio is corresponding with the preset travel audio, then increase the broadcasting of the earphone Volume.
6. the control method of earphone broadcast state as described in claim 1, which is characterized in that described to work as the first environment sound There are the single audio frequencies in frequency matches with the preset audio, then adjusts earphone according to the corresponding regulation scheme of the preset audio The step of working condition includes:
It is matched when there are the single audio frequencies in the first environment audio with the preset audio, then judges the noise reduction of the earphone Whether type is active noise reduction;
When the earphone noise reduction type be active noise reduction, then close active noise reduction function and reduce the earphone broadcast sound volume;
When the noise reduction type of the earphone is not active noise reduction, then the first environment audio is played.
7. the control method of earphone broadcast state as described in claim 1, which is characterized in that the judgement first environment Include: with the presence or absence of the single audio frequency step corresponding with preset audio in audio
Sub-frame processing is carried out to the first environment audio, generates speech frame;
To the speech frame carry out feature extraction, with obtain the corresponding mel-frequency cepstrum coefficient feature of each speech frame to Amount;
The mel-frequency cepstrum coefficient feature vector is inputted in default phoneme model, with the frame level phonetic feature being aligned Vector;
By preset state network, judge whether the frame level speech feature vector of the alignment is consistent with the preset audio, In, preset state network is the database constructed by hidden Markov model.
8. a kind of control device of earphone broadcast state, which is characterized in that the control device includes:
First obtains module, and the first acquisition module judges the state for obtaining the current status information of mobile terminal Whether information is earphone connection;
Second obtains module, and described second, which obtains module, is used to when the status information be earphone connection, then passes through mobile terminal Receiver obtain first environment audio;
Judgment module, the judgment module is for judging in the first environment audio with the presence or absence of single audio frequency and preset audio Match;
Adjustment module, the adjustment module are used for when there are the single audio frequencies and the preset audio in the first environment audio It is corresponding, then the earphone working condition being connected with the mobile terminal is adjusted according to the corresponding regulation scheme of the preset audio.
9. a kind of mobile terminal, which is characterized in that including processor, memory, receiver and be stored on the memory Can be by the control program for the earphone broadcast state that the processor executes, wherein the control program of the earphone broadcast state When being executed by the processor, the step of the control method of the earphone broadcast state as described in any one of claims 1 to 7 is realized Suddenly.
10. a kind of storage medium, which is characterized in that the control program of earphone broadcast state is stored on the storage medium, In, when the control program of the earphone broadcast state is executed by processor, realize as described in any one of claims 1 to 7 The step of control method of earphone broadcast state.
CN201910624028.5A 2019-07-10 2019-07-10 Control method, device, mobile terminal and the storage medium of earphone broadcast state Pending CN110475170A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910624028.5A CN110475170A (en) 2019-07-10 2019-07-10 Control method, device, mobile terminal and the storage medium of earphone broadcast state
PCT/CN2019/121190 WO2021003955A1 (en) 2019-07-10 2019-11-27 Method and device for controlling playback state of earphone, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910624028.5A CN110475170A (en) 2019-07-10 2019-07-10 Control method, device, mobile terminal and the storage medium of earphone broadcast state

Publications (1)

Publication Number Publication Date
CN110475170A true CN110475170A (en) 2019-11-19

Family

ID=68507273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910624028.5A Pending CN110475170A (en) 2019-07-10 2019-07-10 Control method, device, mobile terminal and the storage medium of earphone broadcast state

Country Status (2)

Country Link
CN (1) CN110475170A (en)
WO (1) WO2021003955A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110996205A (en) * 2019-11-28 2020-04-10 歌尔股份有限公司 Earphone control method, earphone and readable storage medium
CN111464902A (en) * 2020-03-31 2020-07-28 联想(北京)有限公司 Information processing method, information processing device, earphone and storage medium
CN111683317A (en) * 2020-05-28 2020-09-18 江苏紫米电子技术有限公司 Prompting method and device applied to earphone, terminal and storage medium
CN111933184A (en) * 2020-09-29 2020-11-13 平安科技(深圳)有限公司 Voice signal processing method and device, electronic equipment and storage medium
WO2021003955A1 (en) * 2019-07-10 2021-01-14 深圳壹账通智能科技有限公司 Method and device for controlling playback state of earphone, mobile terminal and storage medium
CN113259826A (en) * 2021-06-23 2021-08-13 央广新媒体文化传媒(北京)有限公司 Method and device for realizing hearing aid in electronic terminal
CN114629990A (en) * 2022-01-24 2022-06-14 武汉小码联城科技有限公司 Playing state adjusting method and device, storage medium and mobile terminal
WO2023011370A1 (en) * 2021-08-04 2023-02-09 维沃移动通信有限公司 Audio playing method and apparatus

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037831A (en) * 2021-03-05 2022-09-09 深圳市万普拉斯科技有限公司 Mode control method and device, electronic equipment and earphone
CN113223508B (en) * 2021-03-29 2023-08-04 深圳市芯中芯科技有限公司 Management method of dual-mode TWS Bluetooth headset
CN113490089B (en) * 2021-06-02 2022-07-29 安克创新科技股份有限公司 Noise reduction control method, electronic device and computer readable storage device
CN113409801B (en) * 2021-08-05 2024-03-19 云从科技集团股份有限公司 Noise processing method, system, medium and device for real-time audio stream playing
CN114363299A (en) * 2021-12-11 2022-04-15 新线科技有限公司 Network conference control method and device, electronic equipment and storage medium
CN116761114B (en) * 2023-07-14 2024-01-26 润芯微科技(江苏)有限公司 Method and system for adjusting playing sound of vehicle-mounted sound equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105205955A (en) * 2015-09-25 2015-12-30 小米科技有限责任公司 Method and device for sending out warning signal
US20160006847A1 (en) * 2008-01-10 2016-01-07 Personics Holdings, Llc Method and earpiece for visual operational status indication
CN106601272A (en) * 2016-11-24 2017-04-26 歌尔股份有限公司 Earphone and speech recognition method thereof
CN106686481A (en) * 2016-11-29 2017-05-17 维沃移动通信有限公司 Method of earphone de-noising and earphone
CN107147795A (en) * 2017-05-24 2017-09-08 上海与德科技有限公司 A kind of reminding method and mobile terminal
WO2018045536A1 (en) * 2016-09-08 2018-03-15 华为技术有限公司 Sound signal processing method, terminal, and headphones
CN107948801A (en) * 2017-12-21 2018-04-20 广东小天才科技有限公司 The control method and earphone of a kind of earphone
CN109192213A (en) * 2018-08-21 2019-01-11 平安科技(深圳)有限公司 The real-time transfer method of court's trial voice, device, computer equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102090948B1 (en) * 2013-05-20 2020-03-19 삼성전자주식회사 Apparatus saving conversation and method thereof
CN110475170A (en) * 2019-07-10 2019-11-19 深圳壹账通智能科技有限公司 Control method, device, mobile terminal and the storage medium of earphone broadcast state

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160006847A1 (en) * 2008-01-10 2016-01-07 Personics Holdings, Llc Method and earpiece for visual operational status indication
CN105205955A (en) * 2015-09-25 2015-12-30 小米科技有限责任公司 Method and device for sending out warning signal
WO2018045536A1 (en) * 2016-09-08 2018-03-15 华为技术有限公司 Sound signal processing method, terminal, and headphones
CN106601272A (en) * 2016-11-24 2017-04-26 歌尔股份有限公司 Earphone and speech recognition method thereof
CN106686481A (en) * 2016-11-29 2017-05-17 维沃移动通信有限公司 Method of earphone de-noising and earphone
CN107147795A (en) * 2017-05-24 2017-09-08 上海与德科技有限公司 A kind of reminding method and mobile terminal
CN107948801A (en) * 2017-12-21 2018-04-20 广东小天才科技有限公司 The control method and earphone of a kind of earphone
CN109192213A (en) * 2018-08-21 2019-01-11 平安科技(深圳)有限公司 The real-time transfer method of court's trial voice, device, computer equipment and storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021003955A1 (en) * 2019-07-10 2021-01-14 深圳壹账通智能科技有限公司 Method and device for controlling playback state of earphone, mobile terminal and storage medium
CN110996205A (en) * 2019-11-28 2020-04-10 歌尔股份有限公司 Earphone control method, earphone and readable storage medium
CN111464902A (en) * 2020-03-31 2020-07-28 联想(北京)有限公司 Information processing method, information processing device, earphone and storage medium
CN111683317A (en) * 2020-05-28 2020-09-18 江苏紫米电子技术有限公司 Prompting method and device applied to earphone, terminal and storage medium
CN111683317B (en) * 2020-05-28 2022-04-08 江苏紫米电子技术有限公司 Prompting method and device applied to earphone, terminal and storage medium
CN111933184A (en) * 2020-09-29 2020-11-13 平安科技(深圳)有限公司 Voice signal processing method and device, electronic equipment and storage medium
CN111933184B (en) * 2020-09-29 2021-01-08 平安科技(深圳)有限公司 Voice signal processing method and device, electronic equipment and storage medium
CN113259826A (en) * 2021-06-23 2021-08-13 央广新媒体文化传媒(北京)有限公司 Method and device for realizing hearing aid in electronic terminal
WO2023011370A1 (en) * 2021-08-04 2023-02-09 维沃移动通信有限公司 Audio playing method and apparatus
CN114629990A (en) * 2022-01-24 2022-06-14 武汉小码联城科技有限公司 Playing state adjusting method and device, storage medium and mobile terminal

Also Published As

Publication number Publication date
WO2021003955A1 (en) 2021-01-14

Similar Documents

Publication Publication Date Title
CN110475170A (en) Control method, device, mobile terminal and the storage medium of earphone broadcast state
CN104954555B (en) A kind of volume adjusting method and system
US9704478B1 (en) Audio output masking for improved automatic speech recognition
US8831939B2 (en) Voice data transferring device, terminal device, voice data transferring method, and voice recognition system
CN107995360B (en) Call processing method and related product
CN107799126A (en) Sound end detecting method and device based on Supervised machine learning
CN106782504A (en) Audio recognition method and device
WO2012053629A1 (en) Voice processor and voice processing method
CN108922525B (en) Voice processing method, device, storage medium and electronic equipment
CN101627427A (en) Voice emphasis device and voice emphasis method
CN109410973B (en) Sound changing processing method, device and computer readable storage medium
EP2506541B1 (en) Hands-free terminals and hands-free system for cars
CN107360507A (en) A kind of play parameter Automatic adjustment method, intelligent sound box and storage medium
US20210118464A1 (en) Method and apparatus for emotion recognition from speech
WO2018038235A1 (en) Auditory training device, auditory training method, and program
WO2019228329A1 (en) Personal hearing device, external sound processing device, and related computer program product
CN110696756A (en) Vehicle volume control method and device, automobile and storage medium
US20050080626A1 (en) Voice output device and method
US11290802B1 (en) Voice detection using hearable devices
CN106548782A (en) The processing method and mobile terminal of acoustical signal
CN114664303A (en) Continuous voice instruction rapid recognition control system
CN106790963A (en) The control method and device of audio signal
CN101399874B (en) Mobile phone bell volume reinforcing apparatus and method
CN111696566A (en) Voice processing method, apparatus and medium
CN108364631B (en) Speech synthesis method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191119