CN115580803A - Earphone control method, intelligent earphone and storage medium - Google Patents
Earphone control method, intelligent earphone and storage medium Download PDFInfo
- Publication number
- CN115580803A CN115580803A CN202211271093.2A CN202211271093A CN115580803A CN 115580803 A CN115580803 A CN 115580803A CN 202211271093 A CN202211271093 A CN 202211271093A CN 115580803 A CN115580803 A CN 115580803A
- Authority
- CN
- China
- Prior art keywords
- storage area
- state
- earphone
- waveform
- user
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1083—Reduction of ambient noise
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2201/00—Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
- H04R2201/10—Details 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)
- Headphones And Earphones (AREA)
Abstract
Description
技术领域technical field
本申请涉及耳机控制领域,尤其是涉及一种耳机控制方法、智能耳机及存储介质。The present application relates to the field of earphone control, in particular to an earphone control method, a smart earphone and a storage medium.
背景技术Background technique
耳机是一对转换单元,用于接收来自媒体播放器或接收器所发出的电讯号,并利用贴近耳朵的扬声器将其转化成可以听到的音波。目前耳机分为有线耳机和无线耳机,有线耳机指使用电线进行连接的耳机,无线耳机又称蓝牙耳机,指使用蓝牙替代有线进行音频传输的耳机。现有的无线耳机除了具有无线功能外,还具有降噪功能,即无线耳机可通过降噪功能过滤环境噪声。Headphones are a pair of conversion units that receive electrical signals from a media player or receiver and convert them into audible sound waves using speakers close to the ears. At present, earphones are divided into wired earphones and wireless earphones. Wired earphones refer to earphones connected by wires. Wireless earphones, also known as Bluetooth earphones, refer to earphones that use Bluetooth instead of wired for audio transmission. In addition to the wireless function, the existing wireless earphones also have a noise reduction function, that is, the wireless earphones can filter environmental noise through the noise reduction function.
由于无线耳机的便携性,目前无线耳机应用于各种生活或工作场合,用户仅需将手机与无线耳机的蓝牙匹配,便可通过无线耳机收听音乐或播放影视背景音等。Due to the portability of wireless earphones, wireless earphones are currently used in various living or working occasions. Users only need to match the mobile phone with the Bluetooth of the wireless earphones, and then they can listen to music or play video background sounds through the wireless earphones.
申请人认为随着无线耳机的广泛使用,当用户佩戴具有降噪功能的无线耳机播放较大音量的音乐时,用户往往难以听到环境音,会造成他人在寻求用户帮助或与用户谈话时,需使用动作告知用户,用户才意识到并摘下耳机与他人进行正常谈话,降低用户对无线耳机的使用体验感。The applicant believes that with the widespread use of wireless earphones, when a user wears a wireless earphone with a noise reduction function and plays music at a higher volume, it is often difficult for the user to hear the ambient sound, which will cause others to seek help or talk to the user. It is necessary to use actions to inform the user, so that the user realizes and takes off the headset to have a normal conversation with others, which reduces the user's sense of experience with wireless headsets.
申请内容application content
为了有效提高用户对无线耳机的使用体验感,本申请提供一种耳机控制方法、智能耳机及存储介质。In order to effectively improve a user's experience of using a wireless earphone, the present application provides an earphone control method, an intelligent earphone, and a storage medium.
第一方面,本申请提供的一种耳机控制方法采用如下的技术方案:In the first aspect, an earphone control method provided by the present application adopts the following technical solution:
一种耳机控制方法,包括:A method for controlling an earphone, comprising:
获取耳机的佩戴状态;所述佩戴状态包括入耳状态和未入耳状态;Obtain the wearing state of the earphone; the wearing state includes an in-ear state and an unearthed state;
若所述佩戴状态为所述入耳状态,获取耳机的当前音量;If the wearing state is the in-ear state, obtain the current volume of the earphone;
实时获取环境音,并存储;Acquire ambient sound in real time and store it;
判断所述环境音中是否存在关键字;Judging whether there are keywords in the environmental sound;
若存在关键字,降低所述当前音量至预设的缓冲音量。If there is a keyword, reduce the current volume to a preset buffer volume.
通过采用上述技术方案,当环境音中出现关键字时,表明此时存在他人与用户交谈的情况,此时降低当前音量至缓冲音量,用于提示用户有人与自己交谈,需及时注意;除此之外降低音量有利于使环境音进入耳机的效果增强,进一步有利于用户知晓有人与自己交谈的情况,有效提高用户对无线耳机的使用体验感。By adopting the above-mentioned technical solution, when keywords appear in the ambient sound, it indicates that there are other people talking to the user at this time. At this time, the current volume is reduced to the buffer volume, which is used to remind the user that someone is talking to him, and he needs to pay attention in time; in addition In addition, reducing the volume is beneficial to enhance the effect of ambient sound entering the earphones, which further helps users know when someone is talking to them, and effectively improves the user's experience in using wireless earphones.
可选的,所述实时获取环境音,并存储,包括:Optionally, the real-time acquisition of ambient sound and storage includes:
实时获取环境音,并存储于预设的总存储区;Acquire ambient sound in real time and store it in the preset total storage area;
判断所述总存储区是否存在空闲内存;judging whether there is free memory in the total storage area;
若所述总存储区不存在空闲内存,清空所述总存储区,并重新存储。If there is no free memory in the total storage area, clear the total storage area and store again.
通过采用上述技术方案,总存储区用于存储环境音,当总存储区的内存满后,即清空总存储区以便于对环境音进行重新存储,有效防止由于总存储区内存满造成环境音无法存储,进而造成用户使用不便的问题。By adopting the above technical scheme, the total storage area is used to store the environmental sound. When the memory in the total storage area is full, the total storage area will be cleared to facilitate the re-storage of the environmental sound, effectively preventing the environmental sound from being unable to storage, thereby causing inconvenience to users.
可选的,在所述降低所述当前音量至预设的缓冲音量之后,包括:Optionally, after reducing the current volume to the preset buffer volume, the method includes:
在所述总存储区中截取包括所述关键字的预设时间段的音频波形;intercepting audio waveforms of a preset time period including the keyword in the total storage area;
将所述音频波形通过所述耳机进行播放。Play the audio waveform through the earphone.
通过采用上述技术方案,包括关键字的音频波形通过总存储区内存储的环境音进行截取,将截取后的音频波形通过耳机进行播放,便于用户通过音频波形便可获知他人与自己的谈话内容,从而有效提高用户对无线耳机的使用体验感。By adopting the above technical solution, the audio waveform including the keyword is intercepted through the ambient sound stored in the total storage area, and the intercepted audio waveform is played through the earphone, so that the user can know the content of the conversation between others and himself through the audio waveform. Thereby effectively improving the user's experience in using the wireless headset.
可选的,所述实时获取环境音,并存储,还包括:Optionally, the acquiring and storing the ambient sound in real time also includes:
实时获取环境音,并存储于预设的主存储区;Acquire ambient sound in real time and store it in the preset main storage area;
判断所述主存储区是否存在空闲内存;judging whether there is free memory in the main storage area;
若所述主存储区不存在空闲内存,将所述主存储区存储的所有环境音储存于预设的备用存储区,使所述主存储区重新存储新环境音。If there is no free memory in the main storage area, all the environmental sounds stored in the main storage area are stored in a preset spare storage area, so that the main storage area stores new environmental sounds again.
通过采用上述技术方案,主存储区用于存储实时获取的环境音,备用存储区用于当主存储区的内存满后,存储主存储区的环境音,主存储区即可重新实时获取环境音,主存储区和备用存储区的设置有效的提高对环境音的存储效率。By adopting the above technical solution, the main storage area is used to store the environmental sound obtained in real time, and the backup storage area is used to store the environmental sound in the main storage area when the memory in the main storage area is full, and the main storage area can obtain the environmental sound again in real time. The setting of the main storage area and the backup storage area can effectively improve the storage efficiency of the ambient sound.
可选的,在所述降低所述当前音量至预设的缓冲音量之后,包括:Optionally, after reducing the current volume to the preset buffer volume, the method includes:
判断所述备用存储区中是否存在关键字;judging whether keywords exist in the backup storage area;
若存在关键字,在所述备用存储区中截取包括所述关键字的预设时间段的音频波形;If there is a keyword, intercepting the audio waveform of the preset time period including the keyword in the spare storage area;
将所述音频波形通过所述耳机进行播放,并在所述备用存储区的内存满后清空所述备用存储区;Playing the audio waveform through the earphone, and emptying the backup storage area when the memory in the backup storage area is full;
若所述备用存储区中不存在关键字,在所述备用存储区的内存满后清空所述备用存储区。If there is no keyword in the backup storage area, the backup storage area is cleared after the memory in the backup storage area is full.
通过采用上述技术方案,由于备用存储区存储的环境音非实时获取,故当环境音存在关键字时,关键字所在的音频波形在主存储区内,故需对备用存储区是否存在关键字进行进一步判断;包括关键字的音频波形通过备用存储区内存储的环境音进行截取,将截取后的音频波形通过耳机进行播放,便于用户通过音频波形便可获知他人与自己的谈话内容,从而有效提高用户对无线耳机的使用体验感;在备用存储区存在关键字时,即截取包括关键字的音频波形进行播放,若备用存储区内存满后即清空备用存储区,以便于当主存储区内存满后存储主存储区的环境音,并再次对关键字进行判断,有利于提高耳机的存储效率。By adopting the above-mentioned technical scheme, since the ambient sound stored in the backup storage area is not obtained in real time, when there is a keyword in the ambient sound, the audio waveform where the keyword is located is in the main storage area, so it is necessary to check whether there is a keyword in the backup storage area. Further judgment; the audio waveform including the keyword is intercepted through the ambient sound stored in the spare storage area, and the intercepted audio waveform is played through the earphone, so that the user can know the content of the conversation between others and himself through the audio waveform, thereby effectively improving The user's experience of using the wireless headset; when there are keywords in the backup storage area, the audio waveform including the keyword is intercepted and played. If the backup storage area is full, the backup storage area is cleared, so that when the main storage area is full Storing the ambient sound in the main storage area and judging the keywords again is beneficial to improve the storage efficiency of the earphone.
可选的,所述音频波形包括首波形、过程波形和尾波形;Optionally, the audio waveform includes a first waveform, a process waveform and a tail waveform;
在所述将所述音频波形通过所述耳机进行播放之前,包括:Before playing the audio waveform through the earphone, it includes:
获取预设的提示音;Obtain the preset prompt tone;
将所述提示音与所述音频波形的所述首波形拼接,得到拼接波形;Splicing the prompt tone with the first waveform of the audio waveform to obtain a spliced waveform;
将所述拼接波形通过所述耳机进行播放。Play the spliced waveform through the earphone.
通过采用上述技术方案,在播放音频波形前,将提示音与音频波形拼接得到拼接波形,即用户听到的内容包括提示音与谈话内容,有利于为用户提供一个缓冲提示音,进一步有效增加用户使用无线耳机的使用体验感。By adopting the above technical solution, before playing the audio waveform, the prompt sound and the audio waveform are spliced to obtain a spliced waveform, that is, the content heard by the user includes the prompt sound and the conversation content, which is beneficial to provide the user with a buffer prompt sound and further effectively increase the number of users. The experience of using wireless headphones.
可选的,在所述降低所述当前音量至预设的缓冲音量之前,包括:Optionally, before reducing the current volume to the preset buffer volume, the method includes:
获取所述耳机的噪声控制状态;所述噪声控制状态包括通透状态和降噪状态;Obtaining the noise control state of the earphone; the noise control state includes a transparent state and a noise reduction state;
判断所述噪声控制状态是否为降噪状态;judging whether the noise control state is a noise reduction state;
若所述噪声控制状态是降噪状态,将所述降噪状态调整至所述通透状态,并执行下一步;If the noise control state is a noise reduction state, adjusting the noise reduction state to the transparent state, and performing the next step;
若所述噪声控制状态是清透状态,执行下一步。If the noise control state is a clear state, go to the next step.
通过采用上述技术方案,在存在他人与用户谈话时,将降噪状态调整为通透状态,有利于使环境音进入耳机的效果增强,进一步有利于用户知晓有人与自己交谈的情况,有效提高用户对无线耳机的使用体验感。By adopting the above technical solution, when there are other people talking to the user, the noise reduction state is adjusted to a transparent state, which is conducive to enhancing the effect of ambient sound entering the earphone, further helping the user to know that someone is talking to him, and effectively improving the user experience. The experience of using wireless headphones.
可选的,在所述将所述拼接波形通过所述耳机进行播放之后,还包括:Optionally, after playing the spliced waveform through the earphone, it also includes:
判断所述佩戴状态是否从所述未入耳状态至所述入耳状态;judging whether the wearing state is from the non-in-ear state to the in-ear state;
若所述佩戴状态从所述未入耳状态至所述入耳状态,将所述噪声控制状态由所述清透状态调换至所述降噪状态。If the wearing state is from the non-ear state to the ear state, the noise control state is switched from the clear state to the noise reduction state.
通过采用上述技术方案,在将拼接波形通过耳机进行播放后,耳机佩戴状态从未入耳状态至入耳状态,表明用户交谈完毕并重新戴上耳机,此时将噪声控制状态从通透状态调换至降噪状态,有利于进一步提升用户对无线耳机的使用体验感。By adopting the above technical solution, after the spliced waveform is played through the earphone, the wearing state of the earphone is from the non-in-ear state to the in-ear state, indicating that the user has finished talking and puts on the earphone again. At this time, the noise control state is changed from the transparent state to the reduced state. The noise state is conducive to further improving the user's experience in using wireless headphones.
第二方面,本申请提供的一种智能耳机采用如下的技术方案:In the second aspect, a smart earphone provided by this application adopts the following technical solution:
一种智能耳机,包括存储器、处理器及存储在存储器中并能够在处理器上运行的计算机程序,所述处理器加载并执行计算机程序时,采用了上述的耳机控制方法。An intelligent earphone includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor. When the processor loads and executes the computer program, the above earphone control method is adopted.
通过采用上述技术方案,通过将上述的耳机控制方法生成计算机程序,并存储于存储器中,以被处理器加载并执行,从而,根据存储器及处理器制作智能终端,方便使用。By adopting the above technical solution, the above-mentioned headphone control method generates a computer program and stores it in the memory so as to be loaded and executed by the processor, thereby making an intelligent terminal based on the memory and the processor, which is convenient to use.
第三方面,本申请提供的一种计算机可读存储介质采用如下的技术方案:In the third aspect, a computer-readable storage medium provided by the present application adopts the following technical solution:
一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器加载并执行时,采用了上述的耳机控制方法。A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is loaded and executed by a processor, the above-mentioned headphone control method is adopted.
通过采用上述技术方案,通过将上述的耳机控制方法生成计算机程序,并存储于计算机可读存储介质中,以被处理器加载并执行,通过计算机可读存储介质,方便计算机程序的可读及存储。By adopting the above-mentioned technical solution, by generating a computer program from the above-mentioned headphone control method, and storing it in a computer-readable storage medium, so as to be loaded and executed by a processor, the computer-readable storage medium facilitates the readability and storage of the computer program .
综上所述,本申请具有以下至少一种有益技术效果:In summary, the present application has at least one of the following beneficial technical effects:
1.当环境音中出现关键字时,表明此时存在他人与用户交谈的情况,此时降低当前音量至缓冲音量,用于提示用户有人与自己交谈,需及时注意;除此之外降低音量有利于使环境音进入耳机的效果增强,进一步有利于用户知晓有人与自己交谈的情况,有效提高用户对无线耳机的使用体验感。1. When keywords appear in the ambient sound, it indicates that there are other people talking to the user at this time. At this time, the current volume is lowered to the buffer volume, which is used to remind the user that someone is talking to him, and he needs to pay attention in time; in addition, lowering the volume is beneficial The effect of making the ambient sound enter the earphone is enhanced, which further helps the user know that someone is talking to him, and effectively improves the user's experience of using the wireless earphone.
2.包括关键字的音频波形通过总存储区内存储的环境音进行截取,将截取后的音频波形通过耳机进行播放,便于用户通过音频波形便可获知他人与自己的谈话内容,从而有效提高用户对无线耳机的使用体验感。2. The audio waveform including keywords is intercepted through the ambient sound stored in the total storage area, and the intercepted audio waveform is played through the earphone, so that users can know the content of the conversation between others and themselves through the audio waveform, thereby effectively improving the user's awareness of wireless The experience of using headphones.
3.在播放音频波形前,将提示音与音频波形拼接得到拼接波形,即用户听到的内容包括提示音与谈话内容,有利于为用户提供一个缓冲提示音,进一步有效增加用户使用无线耳机的使用体验感。3. Before playing the audio waveform, splicing the prompt tone and the audio waveform to obtain a spliced waveform, that is, what the user hears includes the prompt tone and the conversation content, which is beneficial to provide the user with a buffer prompt tone, and further effectively enhance the user experience of using the wireless headset feel.
附图说明Description of drawings
图1是本申请实施例一种耳机控制方法的其中一种实施方式的流程示意图。Fig. 1 is a schematic flowchart of an implementation manner of an earphone control method according to an embodiment of the present application.
图2是本申请实施例一种耳机控制方法的其中一种实施方式的流程示意图。Fig. 2 is a schematic flowchart of an implementation manner of a method for controlling an earphone according to an embodiment of the present application.
图3是本申请实施例一种耳机控制方法的其中一种实施方式的流程示意图。Fig. 3 is a schematic flowchart of an implementation manner of a method for controlling an earphone according to an embodiment of the present application.
图4是本申请实施例一种耳机控制方法的其中一种实施方式的流程示意图。Fig. 4 is a schematic flowchart of an implementation manner of a method for controlling an earphone according to an embodiment of the present application.
图5是本申请实施例一种耳机控制方法的其中一种实施方式的流程示意图。Fig. 5 is a schematic flowchart of an implementation manner of a method for controlling an earphone according to an embodiment of the present application.
图6是本申请实施例一种耳机控制方法的其中一种实施方式的流程示意图。Fig. 6 is a schematic flowchart of an implementation manner of a method for controlling an earphone according to an embodiment of the present application.
图7是本申请实施例一种耳机控制方法的其中一种实施方式的流程示意图。Fig. 7 is a schematic flowchart of an implementation manner of a method for controlling an earphone according to an embodiment of the present application.
图8是本申请实施例一种耳机控制方法的其中一种实施方式的流程示意图。Fig. 8 is a schematic flowchart of an implementation manner of a method for controlling an earphone according to an embodiment of the present application.
具体实施方式detailed description
以下结合附图1至8对本申请作进一步详细说明。The present application will be described in further detail below in conjunction with accompanying drawings 1 to 8 .
本申请实施例公开一种耳机控制方法。The embodiment of the present application discloses a method for controlling an earphone.
参照图1,一种耳机控制方法包括如下步骤:With reference to Fig. 1, a kind of earphone control method comprises the following steps:
S101、获取耳机的佩戴状态;佩戴状态包括入耳状态和未入耳状态。S101. Obtain the wearing state of the earphone; the wearing state includes an in-ear state and an out-of-ear state.
本实施例中,耳机的佩戴状态可通过在靠近耳机柄和靠近音频输出接口的位置设置距离检测传感器的方式进行判断。具体的,当耳机的播放输出接口距离用户的耳朵的距离大于预设的距离阈值时,即可判断耳机的佩戴状态为未入耳状态,当耳机的播放输出接口距离用户的耳朵的距离不大于距离阈值时,判断耳机的佩戴状态为入耳状态,由于此技术已被广泛使用于无线耳机,故在此不再赘述。In this embodiment, the wearing state of the earphone can be judged by setting a distance detection sensor near the earphone stem and near the audio output interface. Specifically, when the distance between the playback output interface of the earphone and the user's ear is greater than the preset distance threshold, it can be determined that the wearing state of the earphone is not in the ear; when the distance between the playback output interface of the earphone and the user's ear is not greater than the distance When the threshold is reached, it is judged that the wearing state of the earphone is in-ear state. Since this technology has been widely used in wireless earphones, it will not be repeated here.
S102、若佩戴状态为入耳状态,获取耳机的当前音量。S102. If the wearing state is the in-ear state, acquire the current volume of the earphone.
若佩戴状态为入耳状态,表明此时用户可能正在进行收听音乐或其他声音等行为,此时获取耳机的当前音量。具体的,耳机的发声原理为音频放大输出电路输出的音频交流信号,通过耳机里的音圈,音圈里的交流电流与耳机内的磁钢之间相互作用,产生上下振动力,并带动粘贴在音圈上的振动膜振动,空气也随之产生振动,即可发出声音。耳机的音量随信号电流的大小改变而改变,故可通过控制信号电流的大小控制耳机的音量。耳机当前音量即可通过获取信号电流的大小得到。If the wearing state is in-ear state, it indicates that the user may be listening to music or other sounds at this time. At this time, the current volume of the earphone is obtained. Specifically, the sounding principle of the earphone is that the audio AC signal output by the audio amplifier output circuit passes through the voice coil in the earphone, and the AC current in the voice coil interacts with the magnetic steel in the earphone to generate up and down vibration force and drive the paste The vibrating membrane on the voice coil vibrates, and the air vibrates accordingly to produce sound. The volume of the earphone changes with the magnitude of the signal current, so the volume of the earphone can be controlled by controlling the magnitude of the signal current. The current volume of the earphone can be obtained by obtaining the magnitude of the signal current.
S103、实时获取环境音,并存储。S103. Acquire and store the ambient sound in real time.
当前执行主体可基于耳机获取环境音,亦可直接获取环境音并存储,在基于耳机获取环境音时,耳机需预设有麦克风,耳机通过麦克风接收的声音直接通过无线通信的方式传输至当前执行主体。具体的,当前执行主体获取环境音后,即存储于预设的存储区内,以便于后续对关键字的提取。The current execution subject can obtain the ambient sound based on the earphone, or directly acquire the ambient sound and store it. When acquiring the ambient sound based on the earphone, the earphone needs to be preset with a microphone, and the sound received by the earphone through the microphone is directly transmitted to the current execution through wireless communication. main body. Specifically, after the current execution subject acquires the environmental sound, it is stored in a preset storage area, so as to facilitate subsequent keyword extraction.
S104、判断环境音中是否存在关键字。S104. Determine whether there is a keyword in the environmental sound.
本实施例中,关键字为预设,本实施例中,当前执行主体为具有语音识别功能的智能终端,例如手机、平板或电脑等。即当他人与用户谈话时,触发关键字,当前执行主体即响应。In this embodiment, the keyword is preset. In this embodiment, the current execution subject is an intelligent terminal with a voice recognition function, such as a mobile phone, a tablet, or a computer. That is, when someone talks to the user, the keyword is triggered, and the current execution subject responds.
S105、若存在关键字,降低当前音量至预设的缓冲音量。S105. If there is a keyword, reduce the current volume to a preset buffer volume.
关键字本实施例中设置为用户的姓名,即当他人想与用户交谈并触发关键字时,当前执行主体即降低当前音量至预设的缓冲音量,以便于提示用户存在有人与之交谈的情况。The keyword is set to the user’s name in this embodiment, that is, when someone else wants to talk to the user and triggers the keyword, the current execution subject will lower the current volume to the preset buffer volume, so as to remind the user that someone is talking to him .
本实施例的实施原理为:当环境音中出现关键字时,表明此时存在他人与用户交谈的情况,此时降低当前音量至缓冲音量,用于提示用户有人与自己交谈,需及时注意;除此之外降低音量有利于使环境音进入耳机的效果增强,进一步有利于用户知晓有人与自己交谈的情况,有效提高用户对无线耳机的使用体验感。The implementation principle of this embodiment is: when a keyword appears in the ambient sound, it indicates that there are other people talking to the user at this time, and at this time, the current volume is reduced to the buffer volume, which is used to remind the user that someone is talking to him, and he needs to pay attention in time; In addition, lowering the volume is conducive to enhancing the effect of ambient sound entering the earphones, further helping users to know when someone is talking to them, and effectively improving the user's experience in using wireless earphones.
在图1所示实施例的步骤S103中,实时获取的环境音可存储于耳机预设的存储区内。具体通过图2所示实施例进行详细说明。In step S103 of the embodiment shown in FIG. 1 , the ambient sound acquired in real time may be stored in a preset storage area of the earphone. Specifically, it will be described in detail through the embodiment shown in FIG. 2 .
参照图2,实时获取环境音,并存储,包括如下步骤:Referring to Figure 2, the environmental sound is obtained in real time and stored, including the following steps:
S201、实时获取环境音,并存储于预设的总存储区。S201. Acquire ambient sound in real time, and store it in a preset general storage area.
总存储区指用于存储环境音的存储空间,在第一实施例中,总存储区为云存储;在第二实施例中,总存储区为物理存储。当前执行主体将实时获取的环境音存储于总存储区内。The total storage area refers to the storage space for storing environmental sounds. In the first embodiment, the total storage area is cloud storage; in the second embodiment, the total storage area is physical storage. The current execution subject stores the environmental sound acquired in real time in the general storage area.
S202、判断总存储区是否存在空闲内存。S202. Determine whether free memory exists in the total storage area.
S203、若总存储区不存在空闲内存,清空总存储区,并重新存储。S203. If there is no free memory in the total storage area, clear the total storage area and store it again.
若总存储区不存在空闲内存,则表明总存储区的内存已满,此时即清空总存储区,以便于重新存储实时获取的环境音。If there is no free memory in the total storage area, it indicates that the memory in the total storage area is full. At this time, the total storage area is cleared so as to re-store the ambient sound acquired in real time.
若总存储区存在空闲内存,则继续存储。If there is free memory in the total storage area, continue to store.
本实施方式提供的耳机控制方法,总存储区用于存储环境音,当总存储区的内存满后,即清空总存储区以便于对环境音进行重新存储,有效防止由于总存储区内存满造成环境音无法存储,进而造成用户使用不便的问题。In the earphone control method provided in this embodiment, the total storage area is used to store the ambient sound. When the memory in the total storage area is full, the total storage area is cleared so as to re-store the environmental sound, which effectively prevents the Ambient sound cannot be stored, which causes inconvenience for users.
在图1所示实施方式的步骤S105后,可在耳机的总存储区内截取包括关键字的音频波形并播放,以提升用户的使用体验感。具体通过图3所示实施方式进行详细说明。After step S105 in the embodiment shown in FIG. 1 , audio waveforms including keywords can be intercepted in the general storage area of the earphone and played, so as to improve the user experience. Specifically, it will be described in detail through the embodiment shown in FIG. 3 .
参照图3,在降低当前音量至预设的缓冲音量之后,包括如下步骤:Referring to Figure 3, after reducing the current volume to the preset buffer volume, the following steps are included:
S301、在总存储区中截取包括关键字的预设时间段的音频波形。S301. Intercept audio waveforms of a preset time period including keywords in a general storage area.
在当前执行主体将实时获取的环境音存储于总存储区时,当前执行主体即基于实时获取的环境音判断是否存在关键词对应的波形,若存在,则截取包括关键字的音频波形。具体的在截取音频波形时,可将关键字置于波形中间亦可在出现关键字时即进行截取。例如当将关键字置于波形中间时,设预设时间段为20秒,则截取关键字前10秒的音频和关键字后10秒的音频波形。When the current execution subject stores the real-time acquired environmental sound in the general storage area, the current execution subject judges whether there is a waveform corresponding to the keyword based on the real-time acquired environmental sound, and if so, intercepts the audio waveform including the keyword. Specifically, when intercepting the audio waveform, the keyword can be placed in the middle of the waveform or can be intercepted when the keyword appears. For example, when a keyword is placed in the middle of the waveform, the preset time period is set to 20 seconds, then the audio waveform of 10 seconds before the keyword and the audio waveform of 10 seconds after the keyword are intercepted.
S302、将音频波形通过耳机进行播放。S302. Play the audio waveform through the earphone.
当前执行主体截取音频波形后,即通过耳机进行播放。After the current execution subject intercepts the audio waveform, it plays it through the earphone.
本实施方式提供的耳机控制方法,包括关键字的音频波形通过总存储区内存储的环境音进行截取,将截取后的音频波形通过耳机进行播放,便于用户通过音频波形便可获知他人与自己的谈话内容,从而有效提高用户对无线耳机的使用体验感。The earphone control method provided in this embodiment includes intercepting the audio waveform of the keyword through the ambient sound stored in the total storage area, and playing the intercepted audio waveform through the earphone, so that the user can know the relationship between others and himself through the audio waveform. Conversation content, thereby effectively improving the user's sense of experience with the wireless headset.
在图1所示实施方式的步骤S103中,为了提高耳机存储环境音的存储效率,耳机可预设有两个存储区。具体通过图4所示实施方式进行详细说明。In step S103 of the embodiment shown in FIG. 1 , in order to improve the storage efficiency of the earphone for storing ambient sound, the earphone may be preset with two storage areas. Specifically, it will be described in detail through the embodiment shown in FIG. 4 .
参照图4,实时获取环境音,并存储,还包括如下步骤:Referring to Fig. 4, obtaining the ambient sound in real time and storing it also includes the following steps:
S401、实时获取环境音,并存储于预设的主存储区。S401. Acquire ambient sound in real time, and store it in a preset main storage area.
与步骤S201同理,主存储区指用于存储环境音的存储空间,且主存储区可为云存储亦可为物理存储。当前执行主体将实时获取的环境音存储于主存储区内。Similar to step S201, the main storage area refers to a storage space for storing ambient sounds, and the main storage area may be cloud storage or physical storage. The current execution body stores the ambient sound acquired in real time in the main storage area.
S402、判断主存储区是否存在空闲内存。S402. Determine whether there is free memory in the main storage area.
S403、若主存储区不存在空闲内存,将主存储区存储的所有环境音储存于预设的备用存储区,使主存储区重新存储新环境音。S403. If there is no free memory in the main storage area, store all the environmental sounds stored in the main storage area in a preset spare storage area, so that the main storage area stores new environmental sounds again.
若主存储区不存在空闲内存,表明主存储区已满,此时将主存储区的所有环境音存储于备用存储区内,与主存储区同理,备用存储区可为云存储亦可为物理存储。需要说明的是,备用存储区的内存大于主存储区的内存。If there is no free memory in the main storage area, it means that the main storage area is full. At this time, all the ambient sounds in the main storage area will be stored in the backup storage area. The same as the main storage area, the backup storage area can be either cloud storage or physical storage. It should be noted that the memory of the backup storage area is larger than the memory of the main storage area.
主存储区用于实时存储环境音,备用存储区用于当主存储区的内存满后存储主存储区存储的环境音,以便于主存储区重新实时获取环境音。The main storage area is used to store the environmental sound in real time, and the backup storage area is used to store the environmental sound stored in the main storage area when the memory in the main storage area is full, so that the main storage area can acquire the environmental sound again in real time.
本实施方式提供的耳机控制方法,主存储区用于存储实时获取的环境音,备用存储区用于当主存储区的内存满后,存储主存储区的环境音,主存储区即可重新实时获取环境音,主存储区和备用存储区的设置有效的提高对环境音的存储效率。In the earphone control method provided in this embodiment, the main storage area is used to store the ambient sound obtained in real time, and the backup storage area is used to store the ambient sound in the main storage area when the memory in the main storage area is full, and the main storage area can be re-acquired in real time. Environmental sound, the setting of the main storage area and the backup storage area can effectively improve the storage efficiency of the environmental sound.
在图1所示实施方式的步骤S105后,可在备用存储区内截取包括关键字的音频波形,并播放,以提高用户的使用体验感。具体通过图5所示实施方式进行详细说明。After step S105 of the embodiment shown in FIG. 1 , audio waveforms including keywords may be intercepted in the spare storage area and played, so as to improve user experience. Specifically, it will be described in detail through the embodiment shown in FIG. 5 .
参照图5,在降低当前音量至预设的缓冲音量之后,包括如下步骤:Referring to Figure 5, after reducing the current volume to the preset buffer volume, the following steps are included:
S501、判断备用存储区中是否存在关键字。S501. Determine whether a keyword exists in the backup storage area.
由于备用存储区存储的环境音非实时获取,故当环境音存在关键字时,关键字所在的音频波形在主存储区内,此时主存储区内包括关键字的环境音可能还未存储于备用存储区内,此时备用存储区内存储的可能为之前主存储区内的环境音,故需对备用存储区是否存在关键字进行进一步判断。Since the ambient sound stored in the backup storage area is not obtained in real time, when there is a keyword in the environmental sound, the audio waveform where the keyword is located is in the main storage area. At this time, the environmental sound including the keyword in the main storage area may not be stored in the main storage area. In the backup storage area, what is stored in the backup storage area at this time may be the environmental sound in the previous main storage area, so it is necessary to further judge whether there is a keyword in the backup storage area.
S502、若存在关键字,在备用存储区中截取包括关键字的预设时间段的音频波形。S502. If the keyword exists, intercept the audio waveform of the preset time period including the keyword in the spare storage area.
若备用存储区存在关键字,则与步骤S301同理,当前执行主体基于备用存储区内存储的环境音判断是否存在关键词对应的波形,若存在,则截取包括关键字的音频波形。具体的在截取音频波形时,可将关键字置于波形中间亦可在出现关键字时即进行截取。例如当将关键字置于波形中间时,设预设时间段为20秒,则截取关键字前10秒的音频和关键字后10秒的音频波形。If there is a keyword in the backup storage area, similar to step S301, the current execution subject judges whether there is a waveform corresponding to the keyword based on the environmental sound stored in the backup storage area, and if so, intercepts the audio waveform including the keyword. Specifically, when intercepting the audio waveform, the keyword can be placed in the middle of the waveform or can be intercepted when the keyword appears. For example, when a keyword is placed in the middle of the waveform, the preset time period is set to 20 seconds, then the audio waveform of 10 seconds before the keyword and the audio waveform of 10 seconds after the keyword are intercepted.
S503、将音频波形通过耳机进行播放,并在备用存储区的内存满后清空备用存储区。S503. Play the audio waveform through the earphone, and clear the backup storage area after the memory in the backup storage area is full.
当前执行主体将截取后的音频波形通过耳机进行播放。当备用存储区的内存满后,当前执行主体即清空备用存储区内存储的环境音,以便于当主存储区内存满后备用存储区存储主存储区的环境音。The current execution subject will play the intercepted audio waveform through the earphone. When the memory in the backup storage area is full, the current execution subject clears the ambient sound stored in the backup storage area, so that when the main storage area is full, the backup storage area stores the ambient sound in the main storage area.
S504、若备用存储区中不存在关键字,在备用存储区的内存满后清空备用存储区。S504. If there is no keyword in the backup storage area, empty the backup storage area after the memory in the backup storage area is full.
若备用存储区中不存在关键字,当前执行主体即清空备用存储区内存储的环境音。If there is no keyword in the backup storage area, the current execution subject clears the ambient sound stored in the backup storage area.
本实施例中,预设有主存储区和备用存储区,与总存储区不同,主存储区和备用存储区的设置可进一步提高存储效率。In this embodiment, a main storage area and a backup storage area are preset. Different from the total storage area, the setting of the main storage area and the backup storage area can further improve storage efficiency.
本实施方式提供的耳机控制方法,由于备用存储区存储的环境音非实时获取,故当环境音存在关键字时,关键字所在的音频波形在主存储区内,故需对备用存储区是否存在关键字进行进一步判断;包括关键字的音频波形通过备用存储区内存储的环境音进行截取,将截取后的音频波形通过耳机进行播放,便于用户通过音频波形便可获知他人与自己的谈话内容,从而有效提高用户对无线耳机的使用体验感;在备用存储区存在关键字时,即截取包括关键字的音频波形进行播放,若备用存储区内存满后即清空备用存储区,以便于当主存储区内存满后存储主存储区的环境音,并再次对关键字进行判断,有利于提高耳机的存储效率。In the earphone control method provided by this embodiment, since the ambient sound stored in the backup storage area is not acquired in real time, when there is a keyword in the ambient sound, the audio waveform where the keyword is located is in the main storage area, so it is necessary to check whether the backup storage area exists. Keywords are further judged; the audio waveform including keywords is intercepted through the ambient sound stored in the backup storage area, and the intercepted audio waveform is played through the earphone, so that users can learn the content of the conversation between others and themselves through the audio waveform. Thereby effectively improving the user's experience of using the wireless headset; when there are keywords in the backup storage area, the audio waveform including the keyword is intercepted and played, and if the backup storage area is full, the backup storage area is cleared so that it can be used as the main storage area After the memory is full, the ambient sound in the main storage area is stored, and the keyword is judged again, which is beneficial to improve the storage efficiency of the earphone.
在图5所示实施方式的步骤S503前,为提高用户对音频的适应性,可首先发出提示音后发出音频波形。具体通过图6所示实施方式进行详细说明。Before step S503 in the embodiment shown in FIG. 5 , in order to improve the user's adaptability to audio, the prompt tone may be issued first and then the audio waveform may be issued. Specifically, it will be described in detail through the embodiment shown in FIG. 6 .
参照图6,音频波形包括首波形、过程波形和尾波形;Referring to Fig. 6, the audio waveform includes a first waveform, a process waveform and a tail waveform;
在将音频波形通过耳机进行播放之前,包括如下步骤:Before playing the audio waveform through the earphone, the following steps are included:
S601、获取预设的提示音。S601. Obtain a preset prompt tone.
提示音指用于在播放音频波形之前对用户进行提示的声音,以便于用户更加及时知晓存在他人与自己谈话的情况,具体的提示音可以为一段语音亦可以为一段音乐,在此不做限制。Prompt tone refers to the sound used to prompt the user before playing the audio waveform, so that the user can know in a timely manner that there are other people talking to him. The specific prompt tone can be a piece of voice or a piece of music, and there is no limitation here .
S602、将提示音与音频波形的首波形拼接,得到拼接波形。S602. Splice the prompt tone and the first waveform of the audio waveform to obtain a spliced waveform.
在截取音频波形后,当前执行主体即将提示音的波形与音频波形进行拼接,得到拼接波形。需要说明的是,本实施例中提示音的音量大小需小于或等于缓冲音量。After the audio waveform is intercepted, the current execution subject is about to splice the waveform of the prompt tone and the audio waveform to obtain the spliced waveform. It should be noted that in this embodiment, the volume of the prompt tone must be smaller than or equal to the buffer volume.
S603、将拼接波形通过耳机进行播放。S603. Play the spliced waveform through the earphone.
当前执行主体获取拼接波形后,即通过耳机进行播放。After the current execution subject obtains the spliced waveform, it will play it through the earphone.
本实施方式提供的耳机控制方法,在播放音频波形前,将提示音与音频波形拼接得到拼接波形,即用户听到的内容包括提示音与谈话内容,有利于为用户提供一个缓冲提示音,进一步有效增加用户使用无线耳机的使用体验感。In the earphone control method provided by this embodiment, before playing the audio waveform, the prompt sound and the audio waveform are spliced to obtain a spliced waveform, that is, the content heard by the user includes the prompt sound and the conversation content, which is beneficial to provide the user with a buffer prompt sound, further Effectively increase the user experience of using the wireless headset.
在图1所示实施方式降低当前音量至预设的缓冲音量的步骤之前,可首先判断用户正在使用的无线耳机是否为降噪状态,若为降噪状态,则可通过将降噪状态调整至清透状态以便于进一步提示用户存在有人与之交谈的情况。具体通过图7所示实施方式进行详细说明。Before the step of reducing the current volume to the preset buffer volume in the embodiment shown in Fig. 1, it can first be judged whether the wireless earphone that the user is using is in the noise reduction state, if it is in the noise reduction state, then it can be adjusted by adjusting the noise reduction state to Clear state to further alert the user that someone is talking to them. Specifically, it will be described in detail through the embodiment shown in FIG. 7 .
参照图7,在降低当前音量至预设的缓冲音量之前,包括如下步骤:Referring to Figure 7, before reducing the current volume to the preset buffer volume, the following steps are included:
S701、获取耳机的噪声控制状态;噪声控制状态包括通透状态和降噪状态。S701. Obtain the noise control state of the earphone; the noise control state includes a transparency state and a noise reduction state.
通透状态相比于降噪状态更容易听到人声,且减小对外界声音阻隔的作用。由于具体实施中,无线耳机中的降噪状态和通透状态已被广泛使用,故在此不再赘述。Compared with the noise reduction state, the transparent state is easier to hear the human voice, and reduces the effect of blocking external sound. Since the noise reduction state and the transparent state in wireless earphones have been widely used in specific implementation, details will not be repeated here.
S702、判断噪声控制状态是否为降噪状态。S702. Determine whether the noise control state is the noise reduction state.
S703、若噪声控制状态是降噪状态,将降噪状态调整至通透状态,并执行降低当前音量至预设的缓冲音量的步骤。S703. If the noise control state is the noise reduction state, adjust the noise reduction state to the transparent state, and perform the step of reducing the current volume to the preset buffer volume.
若噪声控制状态为降噪状态,则当存在他人与用户谈话的情况时,当前执行主体即将降噪状态调整至通透状态,以便于用户更清楚地听清环境音,进而有利于用户知晓有人与自己交谈的情况。If the noise control state is the noise reduction state, when someone else is talking to the user, the current execution subject will adjust the noise reduction state to the transparent state, so that the user can hear the ambient sound more clearly, which in turn helps the user know that there are people Talk to yourself about the situation.
S704、若噪声控制状态是清透状态,执行降低当前音量至预设的缓冲音量的步骤。S704. If the noise control state is a clear state, perform a step of reducing the current volume to a preset buffer volume.
若噪声控制状态为清透状态,此时降低当前音量至预设的缓冲音量。If the noise control status is clear, reduce the current volume to the preset buffer volume.
本实施方式提供的耳机控制方法,在存在他人与用户谈话时,将降噪状态调整为通透状态,有利于使环境音进入耳机的效果增强,进一步有利于用户知晓有人与自己交谈的情况,有效提高用户对无线耳机的使用体验感。The headset control method provided in this embodiment adjusts the noise reduction state to a transparent state when there are other people talking to the user, which is beneficial to enhance the effect of ambient sound entering the headset, and further helps the user to know that someone is talking to him. Effectively improve the user's sense of experience in using the wireless headset.
在图6所示实施方式的步骤S603后,可首先判断用户对无线耳机的佩戴状态,而后基于佩戴状态恢复用户之前佩戴无线耳机时的状态,以便于进一步有效增加用户对无线耳机的使用体验感。具体通过图8所示实施方式进行详细说明。After step S603 of the embodiment shown in FIG. 6 , the user’s wearing state of the wireless headset can be judged first, and then based on the wearing state, the user’s previous state of wearing the wireless headset can be restored, so as to further effectively increase the user’s experience in using the wireless headset. . Specifically, it will be described in detail through the embodiment shown in FIG. 8 .
参照图8,在将拼接波形通过耳机进行播放之后,还包括如下步骤:Referring to Figure 8, after the spliced waveform is played through the earphone, the following steps are also included:
S801、判断佩戴状态是否从未入耳状态至入耳状态。S801. Determine whether the wearing state is from the non-in-ear state to the in-ear state.
在将拼接波形通过耳机进行播放后,耳机佩戴状态从未入耳状态至入耳状态,表明用户交谈完毕并重新戴上耳机。After the spliced waveform is played through the earphones, the wearing state of the earphones changes from the non-in-ear state to the in-ear state, indicating that the user finishes talking and puts on the earphones again.
S802、若佩戴状态从未入耳状态至入耳状态,将噪声控制状态由清透状态调换至降噪状态。S802. If the wearing state is from the non-in-ear state to the in-ear state, switch the noise control state from the clear state to the noise reduction state.
当用户交谈完毕并重新戴上耳机时,即将耳机的噪声控制状态调节为之前的噪声控制状态,即当前执行主体在调整耳机的噪声控制状态前,首先记忆用户当时的噪声控制状态,即可在用户交谈完毕并重新戴上耳机时,即将耳机的噪声控制状态调节为之前的噪声控制状态。When the user finishes talking and puts on the headset again, the noise control state of the headset is adjusted to the previous noise control state, that is, before the current execution subject adjusts the noise control state of the headset, it first remembers the user's noise control state at that time, and then When the user finishes talking and puts on the earphone again, the noise control state of the earphone is adjusted to the previous noise control state.
本实施方式提供的耳机控制方法,在将拼接波形通过耳机进行播放后,耳机佩戴状态从未入耳状态至入耳状态,表明用户交谈完毕并重新戴上耳机,此时将噪声控制状态从通透状态调换至降噪状态,有利于进一步提升用户对无线耳机的使用体验感。In the earphone control method provided by this embodiment, after the spliced waveform is played through the earphone, the wearing state of the earphone is changed from the earphone wearing state to the earphone state, which indicates that the user finishes talking and puts on the earphone again. At this time, the noise control state is changed from the transparent state Switching to the noise reduction state will help further enhance the user's experience in using wireless headphones.
本申请实施例还公开一种智能耳机,包括存储器、处理器以及存储在存储器中并能够在处理器上运行的计算机程序,其中,处理器执行计算机程序时,采用了上述实施例中的耳机控制方法。The embodiment of the present application also discloses a smart earphone, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor. method.
其中,智能耳机可以采用台式电脑、笔记本电脑或者云端服务器等计算机设备,并且,智能耳机包括但不限于处理器以及存储器,例如,智能耳机还可以包括输入输出设备、网络接入设备以及总线等。Among them, the smart earphones can use computer equipment such as desktop computers, notebook computers, or cloud servers, and the smart earphones include but are not limited to processors and memories. For example, the smart earphones can also include input and output devices, network access devices, and buses.
其中,处理器可以采用中央处理单元(CPU),当然,根据实际的使用情况,也可以采用其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等,通用处理器可以采用微处理器或者任何常规的处理器等,本申请对此不做限制。Among them, the processor can use a central processing unit (CPU), of course, according to the actual use, it can also use other general processors, digital signal processors (DSP), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays ( FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., general-purpose processors can be microprocessors or any conventional processors, etc., and this application does not limit this.
其中,存储器可以为智能耳机的内部存储单元,例如,智能耳机的硬盘或者内存,也可以为智能耳机的外部存储设备,例如,智能耳机上配备的插接式硬盘、智能存储卡(SMC)、安全数字卡(SD)或者闪存卡(FC)等,并且,存储器还可以为智能耳机的内部存储单元与外部存储设备的组合,存储器用于存储计算机程序以及智能耳机所需的其他程序和数据,存储器还可以用于暂时地存储已经输出或者将要输出的数据,本申请对此不做限制。Wherein, the memory may be an internal storage unit of the smart earphone, for example, a hard disk or memory of the smart earphone, or an external storage device of the smart earphone, for example, a plug-in hard disk, a smart memory card (SMC), Secure digital card (SD) or flash memory card (FC), etc., and the memory can also be a combination of the internal storage unit of the smart earphone and an external storage device, and the memory is used to store computer programs and other programs and data required by the smart earphone. The memory can also be used to temporarily store outputted or to-be-outputted data, which is not limited in the present application.
其中,通过本智能耳机,将上述实施例中的耳机控制方法存储于智能耳机的存储器中,并且,被加载并执行于智能耳机的处理器上,方便使用。Wherein, through this smart headset, the headset control method in the above embodiments is stored in the memory of the smart headset, and loaded and executed on the processor of the smart headset, which is convenient for use.
本申请实施例还公开一种计算机可读存储介质,并且,计算机可读存储介质存储有计算机程序,其中,计算机程序被处理器执行时,采用了上述实施例中的耳机控制方法。The embodiment of the present application also discloses a computer-readable storage medium, and the computer-readable storage medium stores a computer program, wherein, when the computer program is executed by a processor, the headphone control method in the foregoing embodiment is adopted.
其中,计算机程序可以存储于计算机可读介质中,计算机程序包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间件形式等,计算机可读介质包括能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM)、随机存取存储器(RAM)、电载波信号、电信信号以及软件分发介质等,需要说明的是,计算机可读介质包括但不限于上述元器件。Among them, the computer program can be stored in a computer-readable medium, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some middleware, etc. Any entity or device carrying computer program code, recording medium, USB flash drive, removable hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM), random-access memory (RAM), electrical carrier signal, telecommunication signal and software It should be noted that the computer-readable medium includes but is not limited to the above components.
其中,通过本计算机可读存储介质,将上述实施例中的耳机控制方法存储于计算机可读存储介质中,并且,被加载并执行于处理器上,以方便上述方法的存储及应用。Wherein, the headphone control method in the above embodiments is stored in the computer-readable storage medium through the computer-readable storage medium, and loaded and executed on the processor, so as to facilitate the storage and application of the above-mentioned method.
以上均为本申请的较佳实施例,并非依此限制本申请的保护范围,故:凡依本申请的结构、形状、原理所做的等效变化,均应涵盖于本申请的保护范围之内。All of the above are preferred embodiments of the application, and are not intended to limit the protection scope of the application. Therefore, all equivalent changes made according to the structure, shape, and principle of the application should be covered by the protection scope of the application. Inside.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211271093.2A CN115580803A (en) | 2022-10-17 | 2022-10-17 | Earphone control method, intelligent earphone and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211271093.2A CN115580803A (en) | 2022-10-17 | 2022-10-17 | Earphone control method, intelligent earphone and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115580803A true CN115580803A (en) | 2023-01-06 |
Family
ID=84584539
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211271093.2A Pending CN115580803A (en) | 2022-10-17 | 2022-10-17 | Earphone control method, intelligent earphone and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115580803A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105225662A (en) * | 2015-08-24 | 2016-01-06 | 深圳市冠旭电子有限公司 | Smart bluetooth earphone plays method and the smart bluetooth earphone of external voice automatically |
| CN107564523A (en) * | 2017-09-28 | 2018-01-09 | 歌尔科技有限公司 | A kind of earphone receiving method, apparatus and earphone |
| CN107613420A (en) * | 2017-10-20 | 2018-01-19 | 王媛玥 | Earpiece volume automatic control system |
| CN108777827A (en) * | 2018-06-14 | 2018-11-09 | Oppo广东移动通信有限公司 | Wireless headset, method for regulation of sound volume and Related product |
| US10321222B1 (en) * | 2018-01-03 | 2019-06-11 | Boe Technology Group Co., Ltd. | Earphone, earphone control method and device |
| CN114979896A (en) * | 2021-02-26 | 2022-08-30 | 深圳市万普拉斯科技有限公司 | A volume control method, device and bluetooth headset |
-
2022
- 2022-10-17 CN CN202211271093.2A patent/CN115580803A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105225662A (en) * | 2015-08-24 | 2016-01-06 | 深圳市冠旭电子有限公司 | Smart bluetooth earphone plays method and the smart bluetooth earphone of external voice automatically |
| CN107564523A (en) * | 2017-09-28 | 2018-01-09 | 歌尔科技有限公司 | A kind of earphone receiving method, apparatus and earphone |
| CN107613420A (en) * | 2017-10-20 | 2018-01-19 | 王媛玥 | Earpiece volume automatic control system |
| US10321222B1 (en) * | 2018-01-03 | 2019-06-11 | Boe Technology Group Co., Ltd. | Earphone, earphone control method and device |
| CN108777827A (en) * | 2018-06-14 | 2018-11-09 | Oppo广东移动通信有限公司 | Wireless headset, method for regulation of sound volume and Related product |
| CN114979896A (en) * | 2021-02-26 | 2022-08-30 | 深圳市万普拉斯科技有限公司 | A volume control method, device and bluetooth headset |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107920298B (en) | A kind of earphone, headset control method and device | |
| CN107580113B (en) | Prompting method, prompting device, storage medium and terminal | |
| JP6419222B2 (en) | Method and headset for improving sound quality | |
| US20080158000A1 (en) | Autodetect of user presence using a sensor | |
| WO2021185077A1 (en) | Audio processing method, apparatus and system | |
| CN108391205A (en) | Left and right acoustic channels switching method and apparatus, readable storage medium storing program for executing, terminal | |
| CN102333157A (en) | Mobile terminal and conversation voice recording method and device used for mobile terminal | |
| CN1972524B (en) | Method and device for reproducing music files | |
| CN111770404A (en) | Recording method, device, electronic device and readable storage medium | |
| CN103106060A (en) | Computer volume adjustment method | |
| CN114245271A (en) | Audio signal processing method and electronic device | |
| CN106131751B (en) | Audio processing method and audio output device | |
| WO2022227655A1 (en) | Sound playing method and apparatus, and electronic device and readable storage medium | |
| CN107371102A (en) | Audio playback volume control method, device, storage medium and mobile terminal | |
| CN114710730B (en) | Volume prompt method, device, earphone and storage medium | |
| CN106412188A (en) | A reminder method and device | |
| KR102133004B1 (en) | Method and device that automatically adjust the volume depending on the situation | |
| CN205160755U (en) | Headphone structure device, earphone and wearable equipment | |
| CN116546126B (en) | Noise suppression method and electronic equipment | |
| CN107404587B (en) | Audio playing control method, audio playing control device and mobile terminal | |
| CN103853646A (en) | Called prompting system and method | |
| CN111324331A (en) | Interactive message prompting method and device, electronic device and storage medium | |
| CN112804608B (en) | Use method, system, host and storage medium of TWS earphone with hearing aid function | |
| CN115580803A (en) | Earphone control method, intelligent earphone and storage medium | |
| CN114629987A (en) | Method and related device for realizing ear return of Bluetooth headset |
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 |