CN108156550B - Playing method and device of headset - Google Patents

Playing method and device of headset Download PDF

Info

Publication number
CN108156550B
CN108156550B CN201711450014.3A CN201711450014A CN108156550B CN 108156550 B CN108156550 B CN 108156550B CN 201711450014 A CN201711450014 A CN 201711450014A CN 108156550 B CN108156550 B CN 108156550B
Authority
CN
China
Prior art keywords
sound
headset
playing
voice
environment
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.)
Active
Application number
CN201711450014.3A
Other languages
Chinese (zh)
Other versions
CN108156550A (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.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN201711450014.3A priority Critical patent/CN108156550B/en
Publication of CN108156550A publication Critical patent/CN108156550A/en
Application granted granted Critical
Publication of CN108156550B publication Critical patent/CN108156550B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/1041Mechanical or electronic switches, or control elements
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • 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
    • H04R2201/105Manufacture of mono- or stereophonic headphone components

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)
  • Headphones And Earphones (AREA)

Abstract

The invention provides a playing method and a device of a headphone, wherein the headphone comprises two ear shields, at least one ear shield is provided with a microphone, and the method comprises the following steps: acquiring an ambient sound playing instruction, wherein the ambient sound playing instruction is used for instructing the headset to play external ambient sound; controlling the microphone to collect first environment sound according to the environment sound playing instruction; and switching the working mode of the headset to an ambient sound playing mode, and controlling the headset to play the first ambient sound. By the earphone playing method provided by the invention, when a user wears the head-wearing active noise reduction earphone and needs to listen to the sound in the environment, the user can easily and conveniently acquire the environment sound without taking off the earphone.

Description

Playing method and device of headset
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for playing a headphone.
Background
In modern life, more and more people choose to wear a head-worn active noise reduction earphone during commuting. The active noise reduction earphone can physically reduce noise, seals human ears through the structural design of the earmuffs, isolates environmental noise, and can further reduce the environmental noise by opening the active noise reduction function and starting the algorithm. However, some sounds in the environmental noise are meaningful, for example, a user broadcasts at a station during traffic, and the user needs to listen to the broadcast to obtain information of interest to the user.
Among the prior art, wear the earphone in-process of making an uproar that wears the head-mounted initiative at the user, when need listening to the sound in the environment, often close the initiative through the button and fall the function of making an uproar and acquire environmental sound, but because the earphone of making an uproar that falls that the head-mounted initiative has good physics and falls the function of making an uproar, often still can not hear environmental sound after closing the initiative and fall the function of making an uproar, need take off the earphone and just can acquire environmental sound. After the user has captured the ambient sound, the headset is worn again to continue the previous use, e.g. listening to music.
However, in the prior art, when the user acquires the environmental sound, the user needs to take off the earphone to acquire the environmental sound, which is time-consuming and labor-consuming for the user and inconvenient to operate.
Disclosure of Invention
The invention provides a method and a device for playing a headphone, which enable a user to easily and conveniently acquire environmental sound without taking off the headphone.
A first aspect of the present invention provides a method for playing a headphone, the headphone including two ear cups, at least one ear cup having a microphone disposed thereon, the method comprising:
acquiring an ambient sound playing instruction, wherein the ambient sound playing instruction is used for instructing the headset to play external ambient sound;
controlling the microphone to collect first environment sound according to the environment sound playing instruction;
and switching the working mode of the headset to an ambient sound playing mode, and controlling the headset to play the first ambient sound.
Further, the obtaining of the ambient sound playing indication includes:
controlling the microphone to collect second environment sound, and carrying out voice recognition on the second environment sound to obtain current voice information;
determining the voice similarity between the current voice information and each pre-stored voice information in a voice information base, and acquiring the maximum voice similarity;
and judging whether the maximum voice similarity is greater than a preset voice similarity, and if so, generating the environment sound playing indication.
Further, before determining the voice similarity between the current voice information and each pre-stored voice information in the voice information base, the method further includes:
switching the working mode of the headset to a recording mode, and acquiring third environment sound acquired by the microphone;
and performing voice recognition on the third environment sound, and storing a voice recognition result to the voice information base.
Further, still be provided with toggle switch on the headphone, acquire the environmental sound and play the instruction, include:
when the fact that the toggle switch is toggled to a first preset position is detected, the ambient sound playing indication is obtained;
when the toggle switch is in the second preset position, the active noise reduction function of the headset is turned on, and when the toggle switch is in the third preset position, the active noise reduction function of the headset is turned off.
Further, before controlling the microphone to collect the first ambient sound according to the ambient sound playing instruction, the method further includes:
judging whether the active noise reduction function of the headset is opened or not;
if so, the active noise reduction function of the headset is closed.
Further, after controlling the microphone to collect the first ambient sound, the method further includes:
caching the first environment sound into a cache;
the controlling the headset to play the first ambient sound comprises:
and acquiring the first environment sound from the cache, and controlling the headset to play the first environment sound.
Further, after the obtaining the first ambient sound from the buffer and controlling the headset to play the first ambient sound, the method further includes:
after the first environmental sound is played, judging whether a first replay instruction input by a user is received within a first preset time length;
if not, deleting the first environment sound from the cache;
if yes, judging whether a second replay instruction input by a user is received within a second preset time length, if not, deleting the first environment sound from the cache, if yes, storing the first environment sound into a memory, and the first preset time length is longer than the second preset time length.
A second aspect of the present invention provides a headphone playing apparatus, the apparatus including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an ambient sound playing instruction which is used for instructing the headset to play external ambient sound;
the environment sound acquisition control module: the microphone is controlled to collect first environment sound according to the environment sound playing instruction;
and the environment sound playing control module is used for switching the working mode of the headset to an environment sound playing mode and controlling the headset to play the first environment sound.
A third aspect of the present invention provides a headphone comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes the computer-executable instructions stored by the memory, so that the terminal device executes the headphone playing method.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon computer-executable instructions, which, when executed by a processor, implement the above-mentioned headphone playing method.
The invention provides a playing method and a playing device of a headset. Acquiring an ambient sound playing instruction, wherein the ambient sound playing instruction is used for instructing the headset to play external ambient sound; controlling a microphone to collect first environmental sound according to an environmental sound playing instruction; and switching the working mode of the headset to an ambient sound playing mode, and controlling the headset to play the first ambient sound. By the method for playing the headset, when a user wears the headset active noise reduction headset and needs to listen to the sound in the environment, the user can easily and conveniently acquire the environment sound without taking off the headset.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a diagram of a scenario provided by an embodiment of the present invention;
fig. 2 is a first flowchart illustrating a playing method of a headphone according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of acquiring an ambient sound playing indication by a headset according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a headset according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a shift position of a toggle switch of a headset according to an embodiment of the present invention;
fig. 6 is another schematic flow chart illustrating a playing method of a headphone according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a playing device of a headphone according to an embodiment of the present invention;
fig. 8 is another schematic structural diagram of a playing device of a headphone according to an embodiment of the present invention;
fig. 9 is another schematic structural diagram of a headset according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second" in the description of the invention and the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein.
As used herein, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. As used herein, "if" may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context.
Fig. 1 is a view of a scene provided by an embodiment of the present invention, as shown in fig. 1, the headphone provided in the present invention has functions of playing ambient sound, playing music, and actively reducing noise, and when a user wears the headphone, the headphone needs to have a good effect of isolating ambient noise, and the processor in the headphone can be controlled to turn on the active noise reduction function by performing a simple operation on an ear cover of the headphone, so as to achieve the effect of isolating ambient noise; when music is required to be listened through the earphone, the music can be played through the ear muffs on the earphone; specially, when the environment sound is listened to through this earphone to needs, can control the microphone on the earphone and gather the environment sound to the environment sound of gathering is broadcast through the ear muff, from this, when the user wears this headphone, need not take off the earphone and just can pass through the microphone on the earphone light, convenient collection environment sound, and broadcast for the user through the ear muff and listen.
The environmental sound related to the invention refers to all sounds which can be heard by people, and can be all sounds in the nature, such as the sound of speaking, the sound of running water, the sound of raining, the sound of blowing a flute, the sound of breaking glass, the sound of broadcasting, the sound of whistling and the like, and the environmental sound can be pleasant, can also be annoying, can be wanted to hear, and can also be unwanted to hear. The content of the environmental sound is not particularly limited in this embodiment.
Hereinafter, for convenience of description, the ambient sound is classified into a first ambient sound, a second ambient sound, and a third ambient sound. The first environmental sound refers to sound in which a user is interested, the second environmental sound refers to collected sound in the current external environment, and the third environmental sound is environmental sound which is stored in the earphone in advance by the user.
The following describes the technical solution of the present invention and how to solve the above technical problems with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present invention will be described below with reference to the accompanying drawings.
Fig. 2 is a first flowchart illustrating a method for playing a headphone according to an embodiment of the present invention, as shown in fig. 2, the method for playing a headphone according to the embodiment includes:
s101: acquiring an environmental sound playing instruction;
wherein, the ambient sound playing indication is used for indicating the headset to play the external ambient sound.
The headset provided by the embodiment can be connected with a terminal, wherein the terminal can be a mobile terminal or a fixed terminal. The mobile terminal includes, but is not limited to, a mobile device having a display function, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer, and a portable device (e.g., a laptop computer, a pocket computer, or a handheld computer). The fixed terminal includes but is not limited to a door access, a smart phone, a console and other fixed equipment with a display function. The present invention is not limited to the form of the terminal.
The ambient sound playing instruction may be an instruction issued by the user by performing a corresponding operation on the headphone ear piece, or may be an instruction issued by the user by performing a corresponding operation on a terminal connected to the headphone provided in this embodiment. The manner of issuing the ambient sound playing instruction is not particularly limited in this embodiment.
S102: controlling a microphone to collect first environmental sound according to an environmental sound playing instruction;
the application scene of the embodiment can be in all environments with sound existence, such as when a user walks, when the user plays, when the user takes a vehicle such as a train and an automobile. For example, scenario one: when a user wears the earphone to walk on the road, the user sees that a person is talking on the head and the user speaks himself, the user can operate on the earphone ear muffs to send an instruction to the earphone, the earphone receives an environmental sound playing instruction, and a microphone on the earphone is controlled to collect the environmental sound according to the received environmental sound playing instruction; scene two: when the user plays the scenic spot, see that there is the guide to explain for the tourist party, the user can operate on the cell-phone that links to each other with this earphone, gives the earphone send instruction to make the earphone receive the environmental sound broadcast instruction, according to the environmental sound broadcast instruction of receiving, control the microphone and gather this environmental sound. Of course, the embodiment has other trial scenarios, which are not listed here, but the specific trial scenario embodiment is not specifically limited.
The headset that this embodiment provided includes two earmuffs, is provided with the microphone on the earmuff, and wherein, the microphone can only set up on an earmuff, also can all set up simultaneously on two earmuffs, and the microphone can set up the top at the earmuff, also can be in the below of earmuff, and this embodiment does not do specific limit to the number and the position that the microphone set up on the earmuff.
After the earphone acquires the environmental sound playing instruction, controlling a microphone of the earphone to collect first environmental sound, wherein the first environmental sound can be any sound that a user wants to listen to. For example, in the first scene, after the earphone acquires the environmental sound playing instruction, the microphone is controlled to collect the sound of the current person conversing with the earphone; in the second scenario, after the earphone obtains the environmental sound playing instruction, the microphone is controlled to collect the sound explained by the current tour guide.
S103: and switching the working mode of the headset to an ambient sound playing mode, and controlling the headset to play the first ambient sound.
The working mode of the headset comprises an active noise reduction function opening mode, an active noise reduction function closing mode, an ambient sound playing mode, a music playing mode and the like, before the microphone is controlled to collect ambient sound, the working mode of the headset can be any one of the working modes, but when a user gives an instruction to indicate the headset to play first ambient sound, the working mode of the headset needs to be switched to the ambient sound playing mode, and the headset can be controlled to play the first ambient sound collected by the microphone.
The playing method of the headphone provided by the embodiment includes two earmuffs, a microphone is arranged on at least one earmuff, the ambient sound playing indication is obtained, according to the ambient sound playing indication, the microphone is controlled to collect first ambient sound, the working mode of the headphone is switched to the ambient sound playing mode, and the headphone is controlled to play the first ambient sound, so that a user can easily and conveniently obtain ambient sound without taking off the headphone in the process of wearing the headphone and listening to sound in the environment.
Fig. 3 is a schematic flow chart of the method for acquiring an ambient sound playing indication by a headphone according to an embodiment of the present invention, where as shown in fig. 3, acquiring the ambient sound playing indication includes:
s201: switching the working mode of the headset to a recording mode, and acquiring third environment sound acquired by a microphone;
s202: and performing voice recognition on the third environment sound, and storing a voice recognition result to a voice information base.
The third ambient sound may be pre-recorded by the user into the headset via the microphone. The voice message may include a voice message or a text message, wherein the text message is obtained by converting the voice message into text. For example, before a user takes a bus, the working mode of the earphones can be switched to a recording mode, so that the earphones record a station name that the user wants to get off, and perform voice recognition on the environmental sound containing the station name, wherein the voice recognition can be to perform audio recognition on the environmental sound first, then perform character conversion on the environmental sound after the audio recognition, determine character information corresponding to the audio, and store the voice recognition result in a voice information base of the earphones.
S203: controlling a microphone to collect second environment sound, and carrying out voice recognition on the second environment sound to obtain current voice information;
as will be understood by those skilled in the art, in an application scenario, many sounds may exist simultaneously, and when the microphone collects ambient sounds, the collected ambient sounds may be relatively mixed, but the collected ambient sounds have different audios, and a sound with a higher audio frequency in the ambient sounds may be screened as the current speech information. For example, in the first scenario described in the first embodiment, when the distance between the user speaking to the user and the user is relatively short, the audio frequency of the speaker in the environmental sound of the scenario collected by the microphone is relatively high, and the voice with the relatively high audio frequency can be subjected to voice recognition to obtain the voice information of the speaker in the user; in the second scenario described in the second embodiment, when the tour guide explains for the tour group, there may be tourists in the tour group who also speak, but the tour guide explanation has continuity and the explanation audio frequency is substantially constant, and the voice recognition can be performed on the environmental sound acquired by the microphone in the scenario, so as to determine the voice information with constant and continuous audio frequency, and further obtain the current voice information. When a user takes a bus, the microphone can be controlled to collect environment sound in the bus, and because the audio frequency of passenger speaking in a public place is low, the audio frequency of the stop name broadcasting sound of the bus is relatively high, and the environment sound is subjected to voice recognition to obtain current voice information.
In addition, due to the variety of languages, the environmental sound collected by the microphone may be a local dialect or a mandarin, and when the collected environmental sound is a non-mandarin speech, speech recognition is required on the collected environmental sound, where the speech recognition includes converting the non-mandarin speech into a mandarin speech to obtain current speech information. The current voice information refers to useful information screened after voice recognition. The voice information may be voice information or text information obtained by converting the voice information into text.
It should be noted that the step S203 may be performed before S201 and S202, or after S201 and S202, as long as it is ensured that the current speech information is determined before S204, and the third environmental sound recognition result is prestored in the speech information base.
S204: determining the voice similarity between the current voice information and each pre-stored voice information in a voice information base, and acquiring the maximum voice similarity;
each pre-stored voice message refers to voice messages which are obtained by recognizing the environmental sound recorded into the earphone through S201 and S202 and stored in the earphone voice message library. And comparing the voice information obtained in the step S203 with the voice information prestored in the voice information base in the steps S201 and S202, and determining the maximum voice similarity between the current voice information obtained in the step S203 and the voice information stored in the voice information base in the steps S201 and S202.
The comparison comprises comparison of voice sound information and comparison of character information obtained after character conversion of environment sound after audio recognition. The skilled person can understand that the comparison of the text information is performed to avoid the situation that the pronunciation is the same and the Chinese characters are different, so that the text information is compared while the sound information is compared, and the environment sound listened by the user is ensured to be the sound that the user wants to listen to.
S205: judging whether the maximum voice similarity is greater than the preset voice similarity, if so, executing S206, and if not, ending the process;
if it is determined that the maximum voice similarity is greater than the preset voice similarity, the following operation of S206 is performed. If the maximum voice similarity is not larger than the preset voice similarity, the process is ended.
S206: and generating an ambient sound playing indication.
For example, the user may preset a threshold of 90%, compare the maximum voice similarity obtained in S204 with the threshold, and if the maximum voice similarity is smaller than 90%, the earphone will not generate the environmental sound playing instruction, and the earphone will not play the external environmental sound; and if the maximum voice similarity is greater than or equal to 90%, controlling the earphone to generate an environment sound playing instruction, and controlling the microphone to collect the environment sound by the earphone according to the environment sound playing instruction.
In the playing method of the headphone provided by this embodiment, the user can switch the working mode of the headphone to the recording mode, and obtain the third environmental sound collected by the microphone, performing voice recognition on the third environmental sound, storing the recognition result in a voice information base, controlling a microphone to collect the second environmental sound, and performing voice recognition on the second environmental sound to obtain current voice information, comparing the current voice information with the voice information in the information base to obtain the maximum voice similarity, and judging whether the maximum voice similarity is greater than the preset voice similarity, if yes, controlling the earphone to generate an ambient sound playing indication, so that when a user needs to listen to the sound in the environment during wearing the head-wearing active noise reduction earphone, the earphone can be easily and conveniently generated to play the indication without taking off the earphone, and the external environment sound is played and played.
The structure of the headphone provided in the embodiment of the present invention is described below with reference to fig. 4 and fig. 5, fig. 4 is a schematic structural diagram of the headphone provided in the embodiment of the present invention, fig. 5 is a schematic diagram of a shift position of a toggle switch of the headphone provided in the embodiment of the present invention, as shown in fig. 4, the headphone includes two ear shields 801, at least one ear shield is provided with a microphone 802, as shown in fig. 5, the headphone is provided with a toggle switch 803, the toggle switch 803 has three shift positions, the three shift positions of the toggle switch 803 from left to right can respectively serve as functions of "turning off active noise reduction", "turning on active noise reduction", and "fast playing", and a person skilled in the art can think that the arrangement sequence of the shift positions with specific functions on the ear shields can be adjusted.
The toggle switch can be toggled to different positions, and when the toggle switch is toggled to a first preset position, the earphone is controlled to obtain an environmental sound playing indication; when the toggle switch is at a second preset position, the earphone is controlled to turn on the active noise reduction function; and when the toggle switch is at a third preset position, the earphone is controlled to close the active noise reduction function. Wherein, on the basis as above embodiment, first preset position corresponds fast playing function, when the user plays external environment sound through this earphone, can dial the toggle switch on the earmuff to fast playing gear, sends the environment sound broadcast and instructs for the earphone, after the earphone acquireed this environment sound broadcast and instruct, according to the environment sound broadcast instruction, control microphone gathers the environment sound, switches over earphone mode to environment sound play mode, and steerable earphone broadcast user's interesting environment sound.
The toggle switch can be arranged on two ear covers of the earphone, or only one ear cover. When only setting up on an ear muff, the user can be according to the wearing mode of oneself custom adjustment earphone, for example, if the user habit uses the left hand to go the operation, then can wear to the left ear with the ear muff that is provided with toggle switch on, otherwise, can wear to the right ear with the ear muff that is provided with toggle switch on, in a word to in the operation wears as the principle. The number of toggle switches is not specifically limited in this embodiment.
The headphone playing method provided by the present invention is described in detail below with reference to fig. 6. Fig. 6 is another schematic flow chart of a playing method of a headphone according to an embodiment of the present invention, and as shown in fig. 6, the playing method of the headphone according to the embodiment includes:
s501: judging whether the active noise reduction function of the headset is turned on, if so, executing S502, and if not, executing S503;
s502: closing the active noise reduction function of the headset;
s503: controlling a microphone to collect first environmental sound according to an environmental sound playing instruction;
the implementation manner of S503 is similar to that of S102, and this embodiment is not described here again.
Before the microphone is controlled to collect the environmental sound, the working mode of the earphone may be any one of the working modes of the active noise reduction function on mode, the active noise reduction function off mode, the environmental sound playing mode, the music playing mode and the like, whether the active noise reduction function of the earphone is on is judged, and if yes, the following operation of S502 is executed. If not, or after the step S502 is executed, step S503 is executed.
S504: caching the first environment sound into a cache;
when the user sends an instruction to control the earphone to play the first environmental sound, the earphone receives the instruction, and obtains the first environmental sound from the cache, and further controls the earphone to play the first environmental sound, that is, the following operation S505 is executed.
S505: acquiring first environment sound from the cache, and controlling the headset to play the first environment sound;
optionally, after the earphone plays the first ambient sound, the user may remove the first ambient sound from the buffer if the user feels that the first ambient sound is no longer useful; the user may choose to replay the first ambient sound, which is perceived as interesting or not heard when playing for the first time, and therefore, after the playing of the first ambient sound in S505 is completed, the following determination in S506 needs to be made.
S506: judging whether a first rebroadcasting instruction input by a user is received within a first preset time length, if so, executing S508, and if not, executing S507;
s507: deleting the first ambient sound from the cache;
s508: judging whether a second replay instruction input by a user is received within a second preset time length, if so, executing S509, and if not, executing S507;
when it is determined that the first playback instruction input by the user is received within the first preset time period, it may be determined whether the first environmental sound is a sound in which the user is interested, and it may be determined again within a second preset time period whether the second playback instruction input by the user is received, and if not, it is determined that the user does not need to play the first environmental sound again, and the operation of S507 may be performed; if a second replay instruction input by the user is received within a second preset time period, the first environmental sound is regarded as important information, and the first environmental sound can be stored in the memory and is listened to by the user repeatedly. The operation S509 is correspondingly performed.
S509: the first ambient sound is stored in a memory.
It should be noted that: the first preset time period may be a certain time interval after the first ambient sound is played by the earphone, and the time interval may be a program instruction preset by the user, for example, 10s, 15s or other longer time interval after the first ambient sound is played. The second preset duration is a certain time interval after the first environmental sound is repeatedly played for the first time, the second preset duration is smaller than the first preset duration, and after the first environmental sound is repeatedly played for the first time, the degree of the user's interest in the first environmental sound is easily determined, so that the second preset duration can be set to be 2s, 5s or other shorter time intervals.
Optionally, the replay instruction may be sent to the headset after the user performs a related operation on the terminal connected to the headset, or may be sent to the headset after the headset has played the first ambient sound, a voice prompt is sent to the user whether to listen repeatedly, if the user replies yes, the replay instruction input by the user is considered to be received, if the user replies no, the replay instruction input by the user is considered not to be received, optionally, while the voice prompt whether to listen repeatedly is sent to the user, an inquiry window whether to replay is popped up on a terminal interface connected to the headset, and the user may send the instruction whether to replay through clicking on the window.
The playing method of the headset provided by the embodiment comprises the steps of closing the active noise reduction function of the headset, controlling the microphone to collect first environment sound, caching the first environment sound into the cache, acquiring the first environment sound from the cache and playing the first environment sound, judging whether a rebroadcast instruction input by a user is received or not after playing, and carrying out corresponding processing on the first environment sound in the cache, so that the environment sound in the cache can be properly processed, the headset can better serve a user, the user can easily and conveniently listen to sound in the environment without picking up the headset in the process of wearing the headset, and the user experience is improved.
Fig. 7 is a schematic structural diagram of a playing apparatus of a headphone according to another embodiment of the present invention, and as shown in fig. 7, the playing apparatus 10 of the headphone includes:
the obtaining module 11 is configured to obtain an ambient sound playing instruction, where the ambient sound playing instruction is used to instruct the headphone to play an external ambient sound;
the environment sound acquisition module 12 is configured to control the microphone to acquire a first environment sound according to the environment sound playing instruction;
the ambient sound playing module 13 is configured to switch the working mode of the headset to an ambient sound playing mode, and control the headset to play the first ambient sound.
The playing apparatus of the headphone provided in this embodiment can correspondingly perform the steps of the playing method of the headphone provided in the foregoing embodiment, and the implementation principle and the technical effect are similar, and are not described herein again.
Fig. 8 is another schematic structural diagram of a playing apparatus of a headphone according to an embodiment of the present invention, and based on the foregoing embodiment, as shown in fig. 8, the apparatus 10 further includes:
the determining module 14 is configured to determine whether the maximum voice similarity is greater than a preset voice similarity, and if so, generate an ambient sound playing instruction.
The acquisition module 11 is specifically configured to control the microphone to acquire a second environmental sound, and perform voice recognition on the second environmental sound to obtain current voice information;
the obtaining module 11 is further configured to determine voice similarity between the current voice information and each pre-stored voice information in the voice information base, and obtain a maximum voice similarity;
further, the obtaining module 11 is further configured to switch the working mode of the headset to a recording mode before determining the voice similarity between the current voice information and each pre-stored voice information in the voice information base, and obtain a third environmental sound collected by the microphone;
the storage module 15 is used for performing voice recognition on the third environment sound and storing a voice recognition result to a voice information base;
specifically, the obtaining module 11 is further specifically configured to obtain an ambient sound playing instruction when it is detected that the toggle switch is toggled to the first preset position;
when the toggle switch is in the second preset position, the active noise reduction function of the headset is turned on, and when the toggle switch is in the third preset position, the active noise reduction function of the headset is turned off.
The determining module 14 is further configured to determine whether the active noise reduction function of the headset is turned on, and if so, turn off the active noise reduction function of the headset.
Further, the apparatus 10 further includes a buffering module 16, configured to buffer the first ambient sound into a buffer after the microphone is controlled to collect the first ambient sound.
On the basis of the foregoing embodiment, the ambient sound playing module 13 is further specifically configured to obtain the first ambient sound from the buffer, and control the headset to play the first ambient sound.
Further, the determining module 14 is further configured to determine whether a first replay instruction input by the user is received within a first preset time after the first environmental sound is played. If not, deleting the first environment sound from the cache; if yes, judging whether a second replay instruction input by a user is received within a second preset time length, if not, deleting the first environment sound from the buffer, if yes, storing the first environment sound into the memory, and the first preset time length is longer than the second preset time length.
The playing apparatus of the headphone provided in this embodiment is used to implement the technical solutions of the above method embodiments, and the implementation principle and the technical effects are similar, and are not described herein again. Through the play device of the headphone provided by the embodiment, when a user wears the headphone and actively falls the noise, the user needs to listen to the sound in the environment, and the user can easily and conveniently acquire the environmental sound without taking off the headphone.
Fig. 9 is another schematic structural diagram of a headset according to an embodiment of the present invention, and referring to fig. 9, a terminal device 80 according to the embodiment includes: at least one memory 81 and a processor 82.
The memory 81 is used for storing program instructions, and the storage objects thereof include software and modules.
The processor 82 is configured to read the program instructions in the memory 81, and execute the playing method of the headset provided in any of the above embodiments according to the program instructions in the memory 81.
The terminal may also include an input/output interface 83.
The input/output interface 83 may include a separate output interface and input interface, or may be an integrated interface that integrates input and output. The output interface is used for outputting data, the input interface is used for acquiring input data, the output data is a general name output in the method embodiment, and the input data is a general name input in the method embodiment.
The embodiment of the present invention further provides a computer-readable storage medium, where computer instructions are stored on the computer-readable storage medium, and when the computer instructions are executed by a processor, the method for playing a headphone shown in any of the above embodiments is performed.
The present invention also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the terminal may read the execution instruction from the readable storage medium, and the execution of the execution instruction by the at least one processor causes the terminal to implement the playing method of the headset provided in the various embodiments described above.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the foregoing embodiments of the network device or the terminal device, it should be understood that the Processor may be a Central Processing Unit (CPU), or may be another general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor, or in a combination of the hardware and software modules in the processor.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. A method for playing a headphone, the headphone comprising two ear cups, at least one ear cup having a microphone disposed thereon, the method comprising:
acquiring an ambient sound playing instruction, wherein the ambient sound playing instruction is used for instructing the headset to play external ambient sound;
controlling the microphone to collect first environment sound according to the environment sound playing instruction;
switching the working mode of the headset to an ambient sound playing mode, and controlling the headset to play the first ambient sound;
the acquiring of the environmental sound playing indication comprises:
controlling the microphone to collect second environment sound, and performing voice recognition on the second environment sound to obtain current voice information, wherein the sound with higher audio frequency in the second environment sound is screened as the current voice information;
determining the voice similarity between the current voice information and each pre-stored voice information in a voice information base, and acquiring the maximum voice similarity;
judging whether the maximum voice similarity is larger than a preset voice similarity or not, and if so, generating the environment sound playing indication;
before determining the voice similarity between the current voice information and each pre-stored voice information in the voice information base, the method further includes:
switching the working mode of the headset to a recording mode, and acquiring third environment sound acquired by the microphone;
performing voice recognition on the third environment sound, and storing a voice recognition result to the voice information base;
after the controlling the microphone to collect the first ambient sound, the method further comprises:
caching the first environment sound into a cache;
the controlling the headset to play the first ambient sound comprises:
acquiring the first environment sound from the cache, and controlling the headset to play the first environment sound;
after the first environmental sound is played, judging whether a first replay instruction input by a user is received within a first preset time length;
if not, deleting the first environment sound from the cache;
if yes, judging whether a second replay instruction input by a user is received within a second preset time length, if not, deleting the first environment sound from the cache, if yes, storing the first environment sound into a memory, and the first preset time length is longer than the second preset time length.
2. The method of claim 1, wherein a toggle switch is further disposed on the headset, and the obtaining the ambient sound playing indication comprises:
when the fact that the toggle switch is toggled to a first preset position is detected, the ambient sound playing indication is obtained;
when the toggle switch is in the second preset position, the active noise reduction function of the headset is turned on, and when the toggle switch is in the third preset position, the active noise reduction function of the headset is turned off.
3. The method according to claim 1, wherein before controlling the microphone to collect the first ambient sound according to the ambient sound playing indication, further comprising:
judging whether the active noise reduction function of the headset is opened or not;
if so, the active noise reduction function of the headset is closed.
4. A playback device for a headphone, the headphone comprising two ear cups, at least one ear cup having a microphone disposed thereon, the device comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an ambient sound playing instruction which is used for instructing the headset to play external ambient sound;
the environment sound acquisition module: the microphone is controlled to collect first environment sound according to the environment sound playing instruction;
the environment sound playing module is used for switching the working mode of the headset to an environment sound playing mode and controlling the headset to play the first environment sound;
the acquisition module is further configured to control a microphone to acquire a second environmental sound, perform voice recognition on the second environmental sound, and obtain current voice information, wherein a sound with a higher audio frequency in the second environmental sound is screened as the current voice information;
the acquisition module is further used for determining the voice similarity between the current voice information and each pre-stored voice information in the voice information base and acquiring the maximum voice similarity;
the device also comprises a judging module, a voice playing module and a voice playing module, wherein the judging module is used for judging whether the maximum voice similarity is greater than the preset voice similarity or not, and if so, generating an environmental sound playing prompt;
the acquisition module is further configured to switch a working mode of the headset to a recording mode before determining voice similarity between the current voice information and each pre-stored voice information in a voice information base, and acquire a third environmental sound acquired by the microphone;
the device also comprises a storage module, a voice recognition module and a voice information base, wherein the storage module is used for carrying out voice recognition on the third environment sound and storing a voice recognition result to the voice information base;
the device further comprises a caching module, which is used for caching the first environment sound into a cache after the microphone is controlled to collect the first environment sound;
the ambient sound playing module is specifically configured to obtain the first ambient sound from the cache, and control the headset to play the first ambient sound;
the judging module is further configured to judge whether a first replay instruction input by a user is received within a first preset time after the first environmental sound is played; if not, deleting the first environment sound from the cache; if yes, judging whether a second replay instruction input by a user is received within a second preset time length, if not, deleting the first environment sound from the cache, if yes, storing the first environment sound into a memory, and the first preset time length is longer than the second preset time length.
5. A headset, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the processor to perform the method of any of claims 1 to 3.
6. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the method of any one of claims 1-3.
CN201711450014.3A 2017-12-27 2017-12-27 Playing method and device of headset Active CN108156550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711450014.3A CN108156550B (en) 2017-12-27 2017-12-27 Playing method and device of headset

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711450014.3A CN108156550B (en) 2017-12-27 2017-12-27 Playing method and device of headset

Publications (2)

Publication Number Publication Date
CN108156550A CN108156550A (en) 2018-06-12
CN108156550B true CN108156550B (en) 2020-03-31

Family

ID=62463418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711450014.3A Active CN108156550B (en) 2017-12-27 2017-12-27 Playing method and device of headset

Country Status (1)

Country Link
CN (1) CN108156550B (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151635A (en) * 2018-08-15 2019-01-04 恒玄科技(上海)有限公司 Realize the automatic switchover system and method that active noise reduction and the outer sound of ear are picked up
CN109147820B (en) * 2018-08-30 2021-09-10 深圳市元征科技股份有限公司 Vehicle-mounted sound control method and device, electronic equipment and storage medium
WO2020051769A1 (en) * 2018-09-11 2020-03-19 深圳市汇顶科技股份有限公司 Active noise cancelling method and headset
CN109788383A (en) * 2018-11-23 2019-05-21 长沙弘诚傲视电子科技有限公司 A kind of earphone of autonomous selection ambient sound
CN110503975B (en) * 2019-08-02 2022-02-01 广州长嘉电子有限公司 Smart television voice enhancement control method and system based on multi-microphone noise reduction
CN110753285A (en) * 2019-10-24 2020-02-04 歌尔股份有限公司 Method, device and equipment for processing sound signal of noise reduction earphone and storage medium
CN110809219B (en) * 2019-11-26 2021-06-01 广州酷狗计算机科技有限公司 Method, device and equipment for playing audio and storage medium
CN111464902A (en) * 2020-03-31 2020-07-28 联想(北京)有限公司 Information processing method, information processing device, earphone and storage medium
CN111491236A (en) * 2020-04-23 2020-08-04 歌尔科技有限公司 Active noise reduction earphone, awakening method and device thereof and readable storage medium
CN111683317B (en) * 2020-05-28 2022-04-08 江苏紫米电子技术有限公司 Prompting method and device applied to earphone, terminal and storage medium
CN112770214B (en) * 2021-01-28 2022-11-11 歌尔科技有限公司 Earphone control method and device and earphone
CN115811681A (en) * 2021-09-15 2023-03-17 中兴通讯股份有限公司 Earphone working mode control method, device, terminal and medium
CN117751585A (en) * 2022-06-20 2024-03-22 北京小米移动软件有限公司 Control method and device of intelligent earphone, electronic equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167317A (en) * 2011-12-19 2013-06-19 上海市闸北区信息化服务中心 Online video collection broadcasting system and collection broadcasting method
CN104618829A (en) * 2014-12-29 2015-05-13 歌尔声学股份有限公司 Adjusting method of earphone environmental sound and earphone
CN105635254A (en) * 2015-12-23 2016-06-01 小米科技有限责任公司 Method and device for downloading multimedia resource
CN105657185A (en) * 2016-02-29 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Method and device for controlling mobile terminal
CN105759948A (en) * 2014-12-18 2016-07-13 联想(北京)有限公司 Information processing method and electronic device
CN106162412A (en) * 2016-08-31 2016-11-23 乐视控股(北京)有限公司 A kind of method of sound collection and earphone
CN106856580A (en) * 2016-12-21 2017-06-16 歌尔科技有限公司 A kind of method of bluetooth earphone and its monitoring condition sound
CN106937001A (en) * 2017-04-20 2017-07-07 维沃移动通信有限公司 A kind of audio store method and mobile terminal
CN107105367A (en) * 2017-05-24 2017-08-29 维沃移动通信有限公司 A kind of acoustic signal processing method and terminal
CN107147795A (en) * 2017-05-24 2017-09-08 上海与德科技有限公司 A kind of reminding method and mobile terminal
CN107426413A (en) * 2017-06-14 2017-12-01 深圳天珑无线科技有限公司 Method that volume automatically adjusts, the device and electronic equipment with store function

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167317A (en) * 2011-12-19 2013-06-19 上海市闸北区信息化服务中心 Online video collection broadcasting system and collection broadcasting method
CN105759948A (en) * 2014-12-18 2016-07-13 联想(北京)有限公司 Information processing method and electronic device
CN104618829A (en) * 2014-12-29 2015-05-13 歌尔声学股份有限公司 Adjusting method of earphone environmental sound and earphone
CN105635254A (en) * 2015-12-23 2016-06-01 小米科技有限责任公司 Method and device for downloading multimedia resource
CN105657185A (en) * 2016-02-29 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Method and device for controlling mobile terminal
CN106162412A (en) * 2016-08-31 2016-11-23 乐视控股(北京)有限公司 A kind of method of sound collection and earphone
CN106856580A (en) * 2016-12-21 2017-06-16 歌尔科技有限公司 A kind of method of bluetooth earphone and its monitoring condition sound
CN106937001A (en) * 2017-04-20 2017-07-07 维沃移动通信有限公司 A kind of audio store method and mobile terminal
CN107105367A (en) * 2017-05-24 2017-08-29 维沃移动通信有限公司 A kind of acoustic signal processing method and terminal
CN107147795A (en) * 2017-05-24 2017-09-08 上海与德科技有限公司 A kind of reminding method and mobile terminal
CN107426413A (en) * 2017-06-14 2017-12-01 深圳天珑无线科技有限公司 Method that volume automatically adjusts, the device and electronic equipment with store function

Also Published As

Publication number Publication date
CN108156550A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
CN108156550B (en) Playing method and device of headset
JP6600634B2 (en) System and method for user-controllable auditory environment customization
JP7167910B2 (en) Information processing device, information processing method, and program
CN112770214B (en) Earphone control method and device and earphone
CN108141696A (en) The system and method adjusted for space audio
CN110602594A (en) Earphone device with specific environment sound reminding mode
CN106170108B (en) Earphone device with decibel reminding mode
US10510361B2 (en) Audio processing apparatus that outputs, among sounds surrounding user, sound to be provided to user
CN106210960A (en) There is the Headphone device of local call situation affirmation mode
CN106095382A (en) Method for controlling volume and user terminal
CN110602675A (en) Earphone pair translation method and device, earphone pair and translation system
JP6268033B2 (en) Mobile device
US20220225029A1 (en) Systems and methods for broadcasting audio
JP6404709B2 (en) Sound output device and sound reproduction method in sound output device
CN107357549B (en) Processing method and wearable electronic equipment
US20220103952A1 (en) Hearing aid comprising a record and replay function
US11081136B2 (en) Information processing apparatus, information processing system, and program
US20220122630A1 (en) Real-time augmented hearing platform
JP2007187748A (en) Sound selective processing device
CN115209298A (en) Audio playing method, device, earphone and storage medium
CN114710730A (en) Volume prompting method and device, earphone and storage medium
CN110753285A (en) Method, device and equipment for processing sound signal of noise reduction earphone and storage medium
JP6927331B2 (en) Information processing equipment, information processing methods, and programs
CN103873687A (en) Information processing method and electronic equipment
CN117956332A (en) Earphone mode switching method, earphone and computer readable storage medium

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