[go: up one dir, main page]

CN114710730A - Volume prompting method, device, earphone and storage medium - Google Patents

Volume prompting method, device, earphone and storage medium Download PDF

Info

Publication number
CN114710730A
CN114710730A CN202210475382.8A CN202210475382A CN114710730A CN 114710730 A CN114710730 A CN 114710730A CN 202210475382 A CN202210475382 A CN 202210475382A CN 114710730 A CN114710730 A CN 114710730A
Authority
CN
China
Prior art keywords
volume
value
earphone
wearer
prompt information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210475382.8A
Other languages
Chinese (zh)
Other versions
CN114710730B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210475382.8A priority Critical patent/CN114710730B/en
Publication of CN114710730A publication Critical patent/CN114710730A/en
Application granted granted Critical
Publication of CN114710730B publication Critical patent/CN114710730B/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/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/03Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters
    • G10L25/21Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters the extracted parameters being power information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

本申请公开了一种音量提示方法、装置、耳机及存储介质,涉及耳机技术领域。该方法应用于耳机,包括:获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值;若所述第一音量值小于第一预设值,输出音量提示信息,所述音量提示信息用于提示佩戴者进行讲话时控制讲话音量小于第二预设值。如此,在当前环境为较为安静的环境时,耳机可以通过音量提示信息来提示佩戴者以较小的音量进行讲话,避免了因耳机的隔音性导致佩戴者无法判断自己说话的音量大小,在较为安静的环境中无意识的说话音量过大,进而避免影响当前环境中的其他人等问题的发生。

Figure 202210475382

The present application discloses a volume prompting method, a device, an earphone and a storage medium, and relates to the technical field of earphones. The method is applied to an earphone, and includes: acquiring the volume value of the ambient sound of the current environment where the earphone is located, as a first volume value; if the first volume value is less than a first preset value, outputting volume prompt information, so that the The volume prompt information is used to prompt the wearer to control the speech volume to be less than the second preset value when speaking. In this way, when the current environment is a relatively quiet environment, the headset can prompt the wearer to speak at a lower volume through the volume prompt information, avoiding the wearer's inability to judge the volume of his speech due to the sound insulation of the headset. Unintentional speaking volume in a quiet environment is too loud, thereby avoiding problems such as affecting other people in the current environment.

Figure 202210475382

Description

音量提示方法、装置、耳机及存储介质Volume prompting method, device, earphone and storage medium

技术领域technical field

本申请涉及耳机技术领域,尤其涉及一种音量提示方法、装置、耳机及存储介质。The present application relates to the technical field of earphones, and in particular, to a volume prompting method, device, earphone and storage medium.

背景技术Background technique

随着终端技术的快速发展,人们在日常生活中对智能终端的使用越来越频繁,尤其是可以作为智能手表、智能手机以及电脑等设备配件的耳机。由于耳机可以隔开周围环境的声响,因此,人们在公共场合都喜欢佩戴着耳机,并通过耳机进行听音乐、通话、语音、视频、影视播放等多种活动。With the rapid development of terminal technology, people use smart terminals more and more frequently in their daily life, especially earphones that can be used as accessories for devices such as smart watches, smart phones, and computers. Because earphones can isolate the sound of the surrounding environment, people like to wear earphones in public places, and use earphones to listen to music, call, voice, video, and video playback and other activities.

但是,用户在佩戴耳机的情况下,由于耳机的隔音效果较好,导致用户无法客观地获知自身说话的音量大小,进而可能导致用户在较为安静的公共场所,例如图书馆或会议室,说话声音非常大,影响公共场所中的其他用户。However, when the user wears headphones, due to the good sound insulation effect of the headphones, the user cannot objectively know the volume of his speech, which may cause the user to speak in a relatively quiet public place, such as a library or a conference room. Very large, affecting other users in public places.

发明内容SUMMARY OF THE INVENTION

本申请提出了一种音量提示方法、装置、耳机及存储介质,以避免在较为安静的环境中的说话音量过大。The present application proposes a volume prompting method, device, earphone and storage medium to avoid excessive speaking volume in a relatively quiet environment.

第一方面,本申请实施例提供了一种音量提示方法,应用于耳机,所述方法包括:获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值;若所述第一音量值小于第一预设值,输出音量提示信息,所述音量提示信息用于提示佩戴者进行讲话时控制讲话音量小于第二预设值。In a first aspect, an embodiment of the present application provides a volume prompting method, which is applied to an earphone. The method includes: acquiring a volume value of an ambient sound of a current environment where the earphone is located, as a first volume value; if the The first volume value is smaller than the first preset value, and volume prompt information is output, and the volume prompt information is used to prompt the wearer to control the speaking volume to be less than the second preset value when speaking.

第二方面,本申请实施例提供了一种音量提示装置,应用于耳机,所述装置包括:音量获取模块以及音量提示模块。音量获取模块,用于获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值;音量提示模块,用于若所述第一音量值小于第一预设值,输出音量提示信息,所述音量提示信息用于提示佩戴者进行讲话时控制讲话音量小于第二预设值。In a second aspect, an embodiment of the present application provides a volume prompting device, which is applied to an earphone, and the device includes: a volume acquiring module and a volume prompting module. The volume acquisition module is used to acquire the volume value of the ambient sound of the current environment where the earphone is located, as the first volume value; the volume prompt module is used to output the volume if the first volume value is less than the first preset value Prompt information, the volume prompt information is used to prompt the wearer to control the speaking volume to be less than the second preset value when speaking.

第三方面,本申请实施例提供了一种耳机,包括:一个或多个处理器;存储器;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。In a third aspect, embodiments of the present application provide an earphone, including: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to Executed by the one or more processors, the one or more programs are configured to perform the above-described methods.

第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the foregoing method.

本申请提供的方案中,获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值;若所述第一音量值小于第一预设值,输出音量提示信息,所述音量提示信息用于提示佩戴者进行讲话时控制讲话音量小于第二预设值。如此,在当前环境为较为安静的环境时,耳机可以通过音量提示信息来提示佩戴者以较小的音量进行讲话,避免了因耳机的隔音性导致佩戴者无法判断自己说话的音量大小,在较为安静的环境中无意识的说话音量过大,进而避免影响当前环境中的其他人等问题的发生。In the solution provided by the present application, the volume value of the ambient sound of the current environment where the earphone is located is obtained as the first volume value; if the first volume value is less than the first preset value, volume prompt information is output, and the The volume prompt information is used to prompt the wearer to control the speaking volume to be less than the second preset value when speaking. In this way, when the current environment is a relatively quiet environment, the headset can prompt the wearer to speak at a lower volume through the volume prompt information, avoiding the wearer's inability to judge the volume of his speech due to the sound insulation of the headset. Unintentional speaking volume in a quiet environment is too loud to avoid problems such as affecting other people in the current environment.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1示出了本申请一实施例提供的音量提示方法的应用场景的示意图。FIG. 1 shows a schematic diagram of an application scenario of a volume prompting method provided by an embodiment of the present application.

图2示出了本申请一实施例提供的音量提示方法的流程示意图。FIG. 2 shows a schematic flowchart of a volume prompting method provided by an embodiment of the present application.

图3示出了本申请一实施例提供的耳机上的麦克风的结构示意图。FIG. 3 shows a schematic structural diagram of a microphone on an earphone provided by an embodiment of the present application.

图4示出了本申请另一实施例提供的音量提示方法的流程示意图。FIG. 4 shows a schematic flowchart of a volume prompting method provided by another embodiment of the present application.

图5示出了图4中步骤S320在一些实施方式中的子步骤示意图。FIG. 5 shows a schematic diagram of sub-steps of step S320 in FIG. 4 in some embodiments.

图6示出了本申请又一实施例提供的音量提示方法的流程示意图。FIG. 6 shows a schematic flowchart of a volume prompting method provided by another embodiment of the present application.

图7示出了本申请再一实施例提供的音量提示方法的流程示意图。FIG. 7 shows a schematic flowchart of a volume prompting method provided by still another embodiment of the present application.

图8示出了本申请又再一实施例提供的音量提示方法的流程示意图。FIG. 8 shows a schematic flowchart of a volume prompting method provided by still another embodiment of the present application.

图9是根据本申请一实施例提供的一种音量提示装置的框图。FIG. 9 is a block diagram of a volume prompting device provided according to an embodiment of the present application.

图10是本申请实施例的用于执行根据本申请实施例的音量提示方法的耳机的框图。FIG. 10 is a block diagram of an earphone for performing the volume prompting method according to the embodiment of the present application according to the embodiment of the present application.

图11是本申请实施例的用于保存或者携带实现根据本申请实施例的音量提示方法的程序代码的存储单元。FIG. 11 is a storage unit for storing or carrying a program code for implementing the volume prompting method according to the embodiment of the present application according to the embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.

随着终端技术的快速发展,人们在日常生活中对智能终端的使用越来越频繁,尤其是可以作为智能手表、智能手机以及电脑等设备配件的耳机,由于其小巧而富有便捷性,很多人都喜欢随时佩戴着耳机。当有通话时,用户也能不拿出手机,很方便的通过耳机手势快速进行电话的接听。并且,耳机可以隔开周围环境的声响,例如,无线降噪耳机具有较好地隔音性,因此,人们在公共场合都喜欢佩戴着耳机,通过耳机进行听音乐、通话、语音、视频、影视播放等多种活动。With the rapid development of terminal technology, people use smart terminals more and more frequently in their daily life, especially earphones that can be used as accessories for smart watches, smart phones, computers and other equipment. Due to their small size and convenience, many people They like to wear headphones all the time. When there is a call, the user can quickly answer the call through the earphone gesture without taking out the mobile phone. In addition, headphones can isolate the sound of the surrounding environment. For example, wireless noise-cancelling headphones have good sound insulation. Therefore, people like to wear headphones in public places to listen to music, call, voice, video, and video playback through headphones. and many other activities.

但是,用户在佩戴耳机的情况下,由于耳机的隔音效果较好,导致用户无法客观地获知自身说话的音量大小,进而可能导致用户在较为安静的公共场所,例如图书馆或会议室,说话声音非常大,影响公共场所中的其他用户However, when the user wears headphones, due to the good sound insulation effect of the headphones, the user cannot objectively know the volume of his speech, which may cause the user to speak in a relatively quiet public place, such as a library or a conference room. Very large, affecting other users in public places

针对上述问题,发明人提出一种音量提示方法、装置、耳机及存储介质,获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值;若第一音量值小于第一预设值,输出音量提示信息,以提示佩戴者进行讲话时控制讲话音量小于第二预设值。下面对本申请实施例提供的音量提示方法进行详细描述。In view of the above problems, the inventor proposes a volume prompting method, device, earphone and storage medium, and obtains the volume value of the ambient sound of the current environment where the earphone is located, as the first volume value; if the first volume value is smaller than the first volume value The preset value, output volume prompt information to remind the wearer to control the speaking volume to be lower than the second preset value when speaking. The volume prompting method provided by the embodiments of the present application will be described in detail below.

请参阅图1,图1为本申请一实施例提供的一种音量提示方法的应用场景的示意图。其中,该应用场景中包括耳机101以及与耳机连接的电子设备102。其中,耳机101可以是各种类型的耳机,例如:有线耳机或无线耳机等;电子设备102也可以是各种可以与耳机101建立通信连接的设备,例如:智能手机、笔记本电脑、平板电脑或台式电脑等,本实施例对此不作限制。可以理解地,耳机101可以基于有线或无线连接的方式与电子设备102建立通信连接,并基于该通信连接交互音频数据和/或其他类型的数据。Please refer to FIG. 1 , which is a schematic diagram of an application scenario of a volume prompting method provided by an embodiment of the present application. The application scenario includes an earphone 101 and an electronic device 102 connected to the earphone. The earphone 101 can be various types of earphones, such as wired earphones or wireless earphones, etc.; the electronic device 102 can also be various devices that can establish a communication connection with the earphone 101 , such as a smart phone, a notebook computer, a tablet computer or A desktop computer, etc., is not limited in this embodiment. It can be understood that the headset 101 can establish a communication connection with the electronic device 102 based on a wired or wireless connection, and exchange audio data and/or other types of data based on the communication connection.

在一些实施方式中,耳机101可以获取自身所处的当前环境的环境音的音量值,作为第一音量值;若第一音量值小于第一预设值,输出音量提示信息,以提示佩戴者进行讲话时控制讲话音量小于第二预设值。示例性地,以图1的应用场景为例,佩戴者处于图书馆,耳机101可以获取图书馆内的环境音的音量值,作为第一音量值,若第一音量值小于第一预设值,表征该图书馆较为安静,进而输出音量提示信息,以提示该佩戴者进行讲话时控制讲话音量小于第二预设值。In some embodiments, the earphone 101 can obtain the volume value of the ambient sound of the current environment in which it is located, as the first volume value; if the first volume value is less than the first preset value, output volume prompt information to remind the wearer When speaking, the speaking volume is controlled to be smaller than the second preset value. Exemplarily, taking the application scenario of FIG. 1 as an example, the wearer is in the library, and the earphone 101 can obtain the volume value of the ambient sound in the library as the first volume value, if the first volume value is less than the first preset value. , indicating that the library is relatively quiet, and then output volume prompt information to prompt the wearer to control the speech volume to be lower than the second preset value when speaking.

请参照图2,图2为本申请一实施例提供的一种音量提示方法的流程示意图,应用于耳机。下面将结合图2对本申请实施例提供的音量提示方法进行详细阐述。该音量提示方法可以包括以下步骤:Please refer to FIG. 2 , which is a schematic flowchart of a volume prompting method provided by an embodiment of the present application, which is applied to an earphone. The volume prompting method provided by the embodiment of the present application will be described in detail below with reference to FIG. 2 . The volume prompting method may include the following steps:

步骤S210:获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值。Step S210: Obtain the volume value of the ambient sound of the current environment where the earphone is located, as the first volume value.

在本实施例中,环境音可以包括风噪声、脚步声、人说话声、动物鸣叫声、汽车鸣笛声、警报器蜂鸣声、跑动声以及汽车行驶声等声音中的一种或多种声音。In this embodiment, the ambient sound may include one or more of wind noise, footstep sound, human voice, animal chirping, car whistle, siren buzzer, running sound, and car driving sound. kind of sound.

可以理解地,为了避免耳机的佩戴者在佩戴耳机的状态下,因无法客观地获知自身发出声音的音量大小,而导致在十分安静的公共场所无意识地说话过大等问题的发生,因此可以获取耳机所处的当前环境的环境音的音量值,以根据获取的音量值确定是否提示用户。Understandably, in order to prevent the wearer of the earphone from being able to objectively know the volume of the sound he emits while wearing the earphone, which leads to the occurrence of unconsciously speaking too loudly in a very quiet public place, it is possible to obtain the The volume value of the ambient sound of the current environment where the headset is located, so as to determine whether to prompt the user according to the acquired volume value.

在一些实施方式中,耳机可以在检测到自身处于佩戴状态时,通过获取耳机所处的当前环境的环境音的音量值,作为第一音量值,来确定当前环境是否为安静的场所,以便后续基于该环境音的第一音量值,来确定是否要提示佩戴者进行说话的音量不要过大。In some embodiments, the earphone can determine whether the current environment is a quiet place by acquiring the volume value of the ambient sound of the current environment where the earphone is located when it is detected that it is in the wearing state, as the first volume value, so as to facilitate subsequent Based on the first volume value of the ambient sound, it is determined whether to prompt the wearer to speak at a volume that is not too loud.

在一种可能的实施方式中,耳机的数量可以是多个,例如,左耳佩戴的耳机以及右耳佩戴的耳机,可以理解地,当用户的左耳以及右耳均佩戴上对应的耳机时,此时两个耳机同时带来的隔音效果较好,佩戴者可能无法听到自身发出的声音以及环境音,或者听到自身发出的声音音量较小;但是,当用户仅有左耳或者右耳佩戴上对应的耳机时,佩戴者可以较为清楚地听到周围环境的声音以及自身发出的声音。基于此,当耳机包括左耳耳机以及右耳耳机时,任一耳机可以获取到所有耳机的当前状态,若左耳耳机以及右耳耳机的当前状态均处于佩戴状态下,再获取耳机所处的当前环境的环境音的音量值,作为第一音量值;若左耳耳机以及右耳耳机中的任一耳机的当前状态处于非佩戴状态,则可以不对耳机所处的当前环境的环境音的音量值进行检测。如此,仅在左耳耳机和右耳耳机均处于佩戴状态的情况下,才检测环境音的音量值,在用户仅佩戴了左耳耳机或右耳耳机时,不检测环境音的音量值,也就是说,仅在用户无法客观获知到环境音和自身所发出声音的音量大小的情况下,耳机才去获取环境音的音量值,可以避免耳机的用于处理音频信号相关的计算资源的无谓消耗。In a possible implementation manner, the number of earphones may be multiple, for example, earphones worn on the left ear and earphones worn on the right ear. It can be understood that when the corresponding earphones are worn on both the left ear and the right ear of the user At this time, the sound insulation effect brought by the two headphones at the same time is better, and the wearer may not be able to hear the sound made by himself and the ambient sound, or the volume of the sound made by himself is low; however, when the user only has the left ear or the right ear When wearing the corresponding earphones in the ears, the wearer can hear the sounds of the surrounding environment and the sounds made by himself more clearly. Based on this, when the earphones include a left earphone and a right earphone, any earphone can obtain the current state of all earphones. The volume value of the ambient sound of the current environment is used as the first volume value; if the current state of any one of the left earphone and the right earphone is in the non-wearing state, the volume of the ambient sound of the current environment where the earphone is located may not be set. value is checked. In this way, the volume value of the ambient sound is detected only when both the left earphone and the right earphone are worn. When the user only wears the left earphone or the right earphone, the volume value of the ambient sound is not detected. That is to say, only when the user cannot objectively know the volume of the ambient sound and the sound produced by the headset, the headset can obtain the volume value of the ambient sound, which can avoid the unnecessary consumption of the computing resources related to the processing of the audio signal by the headset. .

在一些实施方式中,请参阅图3,耳机101可以包括第一麦克风1011以及第二麦克风1012。获取所述第一麦克风1011实时采集的音频信号,作为第一实时音频信号,可以理解地,在耳机101处于佩戴状态时,第一麦克风1011的为更接近于佩戴者的嘴部,因此,第一实时音频信号中主要是佩戴者发出的音频信号,仅包含有少部分的环境音的音频信号。获取所述第二麦克风1012实时采集的音频信号,作为第二实时音频信号,可以理解地,在耳机101处于佩戴状态时,第二麦克风1012远离佩戴者的嘴部,并且其朝向是对外的,因此,第二实时音频信号主要包含的是环境音的音频信号,仅包含有少量的佩戴者发出的音频信号;进一步地,从第二实时音频信号中提取环境音的音频信号更为准确,因此可以基于所述第一实时音频信号,对所述第二实时音频信号进行滤波处理,得到所述耳机所处的当前环境的环境音的环境音频信号,具体的,首先,可以针对第一实时音频信号中的人嘴方向的音频信号进行增强处理,并结合降噪算法,提取出第一实时音频信号中纯净的人声音频信号;再根据该人声音频信号的信噪比,对第二实时音频信号进行滤波处理,过滤掉第二实施音频信号中的人声音频信号,得到当前环境的环境音的环境音频信号,最后,获取所述环境音频信号的音量值,作为第一音量值。In some embodiments, referring to FIG. 3 , the headset 101 may include a first microphone 1011 and a second microphone 1012 . Acquire the audio signal collected by the first microphone 1011 in real time as the first real-time audio signal. It can be understood that when the headset 101 is in the wearing state, the first microphone 1011 is closer to the wearer's mouth. A real-time audio signal is mainly the audio signal sent by the wearer, and contains only a small part of the audio signal of ambient sound. Acquiring the audio signal collected in real time by the second microphone 1012 as the second real-time audio signal, it can be understood that when the headset 101 is in the wearing state, the second microphone 1012 is far away from the wearer's mouth, and its orientation is outward, Therefore, the second real-time audio signal mainly contains the audio signal of ambient sound, and only includes a small amount of audio signals sent by the wearer; further, it is more accurate to extract the audio signal of ambient sound from the second real-time audio signal, so The second real-time audio signal may be filtered based on the first real-time audio signal to obtain the ambient audio signal of the ambient sound of the current environment where the headset is located. Specifically, first, the first real-time audio signal may be filtered. The audio signal in the direction of the human mouth in the signal is enhanced, and combined with the noise reduction algorithm, the pure human voice audio signal in the first real-time audio signal is extracted; The audio signal is filtered to filter out the human voice audio signal in the audio signal of the second implementation to obtain the ambient audio signal of the ambient sound of the current environment, and finally, obtain the volume value of the ambient audio signal as the first volume value.

步骤S220:若所述第一音量值小于第一预设值,输出音量提示信息,所述音量提示信息用于提示佩戴者进行讲话时控制讲话音量小于第二预设值。Step S220: If the first volume value is less than the first preset value, output volume prompt information, the volume prompt information is used to prompt the wearer to control the speaking volume to be less than the second preset value when speaking.

在本实施例中,在获取到耳机所处的当前环境的环境音的第一音量值之后,则可以判断第一音量值是否小于第一预设值,第一预设值可以理解为安静环境对应的最大分贝阈值;进一步地,若确定第一音量值小于第一预设值,表征耳机所处的当前环境是安静环境,因此,耳机可以输出音量提示信息,以提示耳机的佩戴者在进行讲话时控制讲话音量小于第二预设值,第二预设值可以理解为安静环境中不影响其他用户的最大分贝阈值,即在安静环境中用不超过第二预设值的声音说话,不会影响处于该安静环境中的其他用户。当然,在第一音量值不小于第一预设值时,表征耳机所处的当前环境并非为安静环境,即使用户大声说话,也对周围环境中的用户影响不大,此时则无需输出音量提示信息来提示用户小声说话。In this embodiment, after obtaining the first volume value of the ambient sound of the current environment where the earphone is located, it can be determined whether the first volume value is smaller than the first preset value, and the first preset value can be understood as a quiet environment The corresponding maximum decibel threshold; further, if it is determined that the first volume value is less than the first preset value, it indicates that the current environment where the headset is located is a quiet environment, so the headset can output volume prompt information to prompt the wearer of the headset to When speaking, control the speech volume to be less than the second preset value. The second preset value can be understood as the maximum decibel threshold that does not affect other users in a quiet environment. Other users in that quiet environment will be affected. Of course, when the first volume value is not less than the first preset value, it indicates that the current environment in which the earphone is located is not a quiet environment. Even if the user speaks loudly, it has little effect on the user in the surrounding environment. At this time, there is no need to output the volume. A prompt message to prompt the user to speak in a low voice.

其中,第一预设值以及第二预设值可以是预先设置的分贝值,可以是耳机出厂时设置的分贝值,也可以是用户根据实际需求调整设置的分贝值,本实施例对此不作限制。Wherein, the first preset value and the second preset value may be preset decibel values, may be the decibel values set by the earphone when they leave the factory, or may be the decibel values adjusted and set by the user according to actual needs, which are not made in this embodiment. limit.

可选地,第二预设值可以设置为小于第一预设值,例如,第一预设值为50分贝,第二预设值为40分贝,如此,可以保证耳机的佩戴者在佩戴耳机的情况下,进行讲话时的分贝值低于安静环境对应的最大分贝阈值,减少对安静环境中其他用户的影响。Optionally, the second preset value can be set to be smaller than the first preset value, for example, the first preset value is 50 decibels, and the second preset value is 40 decibels. In this way, it can be ensured that the wearer of the headset is wearing the headset. In the case of speaking, the decibel value when speaking is lower than the maximum decibel threshold corresponding to the quiet environment, reducing the impact on other users in the quiet environment.

可选地,第二预设值也可以设置为大于第一预设值,且第二预设值与第一预设值的差值在预设分贝阈值之内,例如,预设分贝阈值为5分贝,第一预设值为50分贝,第二预设值可以设置为50分贝-55分之间的任一分贝值,如此,提示耳机佩戴者在佩戴耳机的情况下,可以以稍大于安静环境对应的最大分贝阈值进行说话,避免了因佩戴者通话声音过小导致通话对方无法听清佩戴者的说话内容等问题的发生,同时对安静环境中的其他用户的影响也较小。Optionally, the second preset value can also be set to be greater than the first preset value, and the difference between the second preset value and the first preset value is within the preset decibel threshold, for example, the preset decibel threshold is 5 decibels, the first preset value is 50 decibels, and the second preset value can be set to any decibel value between 50 decibels and 55 decibels. In this way, the earphone wearer is reminded that when wearing the earphones, the The maximum decibel threshold corresponding to the quiet environment to speak, avoids the occurrence of problems such as the wearer's voice being too small to cause the other party to hear the wearer's speech, and has less impact on other users in the quiet environment.

在一些实施方式中,耳机输出前述音量提示信息,包括但不限于语音提示、震动提示以及控制其他与耳机相连接的设备进行提示等提示方式。例如,耳机可以通过播报“当前环境为安静环境,可以适当降低你的说话音量”的提示语音,对佩戴者进行语音提示。又例如,耳机可以以预设频率进行震动,通过震动提示用户在当前环境中可以适当降低的说话音量,其中,预设频率可以由用户根据自身喜好进行设置。再例如,发送控制指令至与耳机存在无线或有线连接的电子设备,该电子设备包括但不限于智能手机、智能手表以及电脑,由电子设备响应于该控制指令,以语音提示或文字提示等方式输出前述音量提示信息,以提示佩戴者在当前环境中可以适当降低的说话音量,如此,可以实现在不中断耳机的应用的同时完成对耳机的佩戴者的说话音量提示。In some embodiments, the headset outputs the aforementioned volume prompt information, including but not limited to voice prompts, vibration prompts, and prompting methods such as controlling other devices connected to the headset to give prompts. For example, the headset can give a voice prompt to the wearer by broadcasting a prompt voice that "the current environment is a quiet environment, you can appropriately reduce your speaking volume". For another example, the earphone may vibrate at a preset frequency, and the user may be prompted by the vibration to appropriately reduce the speaking volume in the current environment, wherein the preset frequency may be set by the user according to his/her own preference. For another example, send a control command to an electronic device that has a wireless or wired connection with the headset, including but not limited to smart phones, smart watches, and computers, and the electronic device responds to the control command with voice prompts or text prompts, etc. The aforementioned volume prompt information is output to prompt the wearer to appropriately reduce the speaking volume in the current environment. In this way, the voice volume prompt for the wearer of the headset can be accomplished without interrupting the application of the headset.

在一些实施方式中,该音量提示方法还可以应用于电子设备,该电子设备包括但不限于智能手机、智能电话手表、平板电脑、台式电脑以及笔记本电脑等设备。针对存在听力障碍的人,例如老年人或者听力较弱的人,由于自身原因无法获知自身说话的真实音量,无论身处何种环境下,说话音量均较大,若处于公共场所中,则可能会因为说话音量过大,而影响公共场所中的其他人。因此,电子设备也可以通过获取自身所处的当前环境的环境音的音量值,作为第一音量值;若第一音量值小于第一预设值,输出音量提示信息,音量提示信息用于提示电子设备的使用者进行讲话时控制讲话音量小于第二预设值。如此,则可以在安静环境下,提示电子设备的使用者(例如存在听力障碍的人)说话降低音量。当然,该音量提示方法可以被设置为电子设备中的一个音量提示功能,有电子设备的使用者确定是否开启该音量提示功能,电子设备仅在开启音量提示功能之后,才通过检测当前环境的环境音的音量值,来提示电子设备的使用者降低说话音量。如此,由电子设备的使用者确认是否开启该音量提示功能,使得使用更人性化,避免了提示不存在听力障碍的用户,造成该部分用户的使用体验降低等问题的发生。In some embodiments, the volume prompting method can also be applied to electronic devices, including but not limited to devices such as smart phones, smart phone watches, tablet computers, desktop computers, and notebook computers. For people with hearing impairment, such as the elderly or those with weak hearing, they cannot know the real volume of their speech due to their own reasons. No matter what environment they are in, their speaking volume is high. If they are in a public place, they may It will affect other people in public places by speaking too loudly. Therefore, the electronic device can also obtain the volume value of the ambient sound of the current environment where it is located as the first volume value; if the first volume value is less than the first preset value, output volume prompt information, and the volume prompt information is used to prompt When the user of the electronic device speaks, the speaking volume is controlled to be smaller than the second preset value. In this way, in a quiet environment, the user of the electronic device (for example, a person with hearing impairment) can be prompted to speak at a lower volume. Of course, the volume prompting method can be set as a volume prompting function in the electronic device. The user of the electronic device determines whether to enable the volume prompting function. The electronic device only detects the current environment after the volume prompting function is turned on. The volume value of the sound to prompt the user of the electronic device to reduce the speaking volume. In this way, the user of the electronic device confirms whether to turn on the volume prompting function, which makes the use more user-friendly, and avoids prompting users without hearing impairments and reducing the use experience of these users.

在本实施例中,耳机在检测到所处的当前环境的环境音的音量值低于第一预设至时,表征耳机当前处于较为安静的场所时,进而可以通过音量提示信息来提示佩戴者以较小的音量进行讲话,避免了因耳机的隔音性导致佩戴者无法判断自己说话的音量大小,在较为安静的场所中无意识说话音量过大,影响当前环境中的其他人等问题的发生,进一步促进了社会和谐,提升了人与人之间在社会环境中融洽度。In this embodiment, when the earphone detects that the volume value of the ambient sound in the current environment is lower than the first preset value, it indicates that the earphone is currently in a relatively quiet place, and the wearer can be prompted by volume prompt information. Talking at a lower volume avoids the wearer's inability to judge the volume of his speech due to the sound insulation of the headset, and the unconsciously speaking volume is too high in a quieter place, which affects other people in the current environment. It further promotes social harmony and enhances the harmony between people in the social environment.

请参照图4,图4为本申请另一实施例提供的一种音量提示方法的流程示意图,应用于耳机。下面将结合图4对本申请实施例提供的音量提示方法进行详细阐述。该音量提示方法可以包括以下步骤:Please refer to FIG. 4 , which is a schematic flowchart of a volume prompting method provided by another embodiment of the present application, which is applied to an earphone. The volume prompting method provided by the embodiment of the present application will be described in detail below with reference to FIG. 4 . The volume prompting method may include the following steps:

步骤S310:获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值。Step S310: Acquire the volume value of the ambient sound of the current environment where the earphone is located, as the first volume value.

在本实施例中,步骤S310中的具体实施方式可以参阅前述实施例中的内容,在此不再赘述。In this embodiment, for the specific implementation manner in step S310, reference may be made to the content in the foregoing embodiments, and details are not described herein again.

步骤S320:若所述第一音量值小于所述第一预设值,且检测到所述佩戴者发出的音频信号,输出所述音量提示信息。Step S320: If the first volume value is smaller than the first preset value and an audio signal sent by the wearer is detected, output the volume prompt information.

在本实施例中,在确定第一音量值小于第一预设值,即耳机确定自身当前处于安静环境时,还可以进一步检测耳机的佩戴者是否发出音频信号,当检测到佩戴者发出的音频信号,则确定佩戴者正在发出声音,进而输出音量提示信息,以提示佩戴者当前进行讲话时控制讲话音量小于第二预设值。In this embodiment, when it is determined that the first volume value is less than the first preset value, that is, when the earphone determines that it is currently in a quiet environment, it can further detect whether the wearer of the earphone sends an audio signal. signal, then it is determined that the wearer is making a sound, and then volume prompt information is output to prompt the wearer to control the speech volume to be lower than the second preset value when the wearer is currently speaking.

其中,检测到的佩戴者发出的音频信号包括讲话音频信号、吸气音频信号以及语气词音频信号中的一种或多种,讲话音频信号指佩戴者说话产生的音频信号,吸气音频信号指佩戴者准备说话之前因吸气导致空气振动而产生的音频信号,语气词音频信号包括但不限于“嗯”、“哦”、“噢”等语气词的音频信号。可以理解地,若检测到佩戴者发出讲话音频信号,表征佩戴者正在说话,此时输出音量提示信息,可以提示佩戴者降低说话音量;若检测到佩戴者发出的吸气音频信号或语气词音频信号,表征佩戴者即将要说话,此时输出音量提示信息,可以在用户正式说话之前,预先提示用户说话音量不要超过第二预设值,例如,在用户接听来电,准备说话之前,提示用户以第二预设值的音量接听电话,提前规避了对当前环境的其他用户的影响。Wherein, the detected audio signal sent by the wearer includes one or more of speech audio signal, inhalation audio signal and modal word audio signal, the speech audio signal refers to the audio signal generated by the wearer speaking, and the inhalation audio signal refers to the audio signal generated by the wearer. The audio signal generated by the air vibration caused by the inhalation before the wearer is ready to speak, the audio signal of the modal word includes but not limited to the audio signal of the modal particle such as "um", "oh", "oh". Understandably, if it is detected that the wearer sends a speech audio signal, it indicates that the wearer is speaking, and the volume prompt information is output at this time, which can prompt the wearer to reduce the speaking volume; The signal indicates that the wearer is about to speak. At this time, the volume prompt information is output. Before the user officially speaks, the user can be reminded in advance that the speaking volume should not exceed the second preset value. For example, before the user answers the call and prepares to speak, prompt the user to Answering a call with the volume of the second preset value avoids the impact on other users in the current environment in advance.

在一些实施方式中,可以是先判断第一音量值是否小于第一预设值,若确定第一音量值小于第一预设值,再检测当前环境中是否存在佩戴者发出的音频信号。也就是说,先检测当前环境是否为安静环境,若是安静环境,再检测佩戴者是否正在说话或者即将要说话,若检测到佩戴者正在说话或者即将要说话,在输出音量提示信息,提示用户当前的说话音量不要超过第二预设值。In some embodiments, it may be first determined whether the first volume value is less than the first preset value, and if it is determined that the first volume value is less than the first preset value, then it is detected whether there is an audio signal sent by the wearer in the current environment. That is to say, first detect whether the current environment is a quiet environment, if it is a quiet environment, and then detect whether the wearer is speaking or is about to speak, if it is detected that the wearer is speaking or is about to speak, output volume prompt information to remind the user of the current The speaking volume should not exceed the second preset value.

在另一些实施方式中,也可以是先检测当前环境中是否存在佩戴者发出的音频信号,若存在,进而再判断第一音量值是否小于第一预设值,若小于,最后再输出音量提示信息。也就是说,先检测到用户正在说话或者即将要说话时,再去检测所处的当前环境是否为安静环境,在确定为安静环境时,再提示用户以低于第二预设值的音量进行说话。In other embodiments, it is also possible to first detect whether there is an audio signal sent by the wearer in the current environment, and if so, then determine whether the first volume value is less than the first preset value, and if it is less than, finally output a volume prompt information. That is to say, when it is detected that the user is speaking or is about to speak, it is detected whether the current environment is a quiet environment, and when it is determined to be a quiet environment, the user is prompted to use a volume lower than the second preset value. say.

在又一些实施方式中,可以同时检测第一音量值是否小于第一预设值,以及当前环境中是否存在佩戴者发出的音频信号,若两者同时满足,则输出音量提示信息。如此,可以快速判断出当前环境是否为安静环境的同时,检测佩戴者是否正在说话或者即将要说话,以及时提示佩戴者在当前环境中以低于第二预设值的音量进行说话。In still other embodiments, it is possible to simultaneously detect whether the first volume value is less than the first preset value and whether there is an audio signal sent by the wearer in the current environment, and output volume prompt information if both are satisfied. In this way, it is possible to quickly determine whether the current environment is a quiet environment, detect whether the wearer is speaking or is about to speak, and promptly prompt the wearer to speak at a volume lower than the second preset value in the current environment.

在一些实施方式中,请参阅图5,步骤S320可以包括以下步骤:In some embodiments, referring to FIG. 5 , step S320 may include the following steps:

步骤S321:若所述第一音量值小于所述第一预设值,且检测到所述佩戴者发出的音频信号,获取所述佩戴者发出的音频信号的音量值,作为第二音量值。Step S321: If the first volume value is smaller than the first preset value, and an audio signal sent by the wearer is detected, obtain the volume value of the audio signal sent by the wearer as a second volume value.

步骤S322:若所述第二音量值大于第三预设值,输出所述音量提示信息。Step S322: If the second volume value is greater than a third preset value, output the volume prompt information.

在本实施例中,在检测到佩戴者发出的音频信号,确定佩戴者正在说话后,可以进一步获取佩戴者发出的音频信号的音量值,作为第二音量值;再判断第二音量值是否大于第三预设值,若大于第三预设值,表征佩戴者当前的说话音量过大,则可以输出音量提示信息,以提示佩戴者以低于第二预设值的音量进行讲话。其中,检测佩戴者发出的音频信号可以基于图3中第一麦克风1011采集的第一实时音频信号进行人声增强以及滤波得到的,具体实施当时可以参阅前述实施例中的内容,在此不再赘述;第三预设值是预先设置的分贝值,可以是耳机出厂时设置的分贝值,也可以是佩戴者根据不同场景的需求设置的分贝值,例如,针对图书馆的应用场景,将第三预设值设置为60分贝;又例如,针对高铁车厢内的应用场景,可以将第三预设值稍微设置高一些,如70分贝。可以理解地,第三预设值可以与第二预设值相同,也可以大于第二预设值。由此可见,若检测所处的当前环境为安静环境,且佩戴者正在说话时,仅在佩戴者说话音量过大时,提示佩戴者降低说话音量,避免佩戴者原本说话音量就低于第二预设值,对佩戴者进行无效提示,尽可能减少对佩戴者使用耳机进行通话或娱乐的影响。In this embodiment, after detecting the audio signal sent by the wearer and determining that the wearer is speaking, the volume value of the audio signal sent by the wearer can be further obtained as the second volume value; and then it is determined whether the second volume value is greater than If the third preset value is greater than the third preset value, it indicates that the wearer's current speaking volume is too loud, and volume prompt information can be output to prompt the wearer to speak at a volume lower than the second preset value. Wherein, the audio signal sent by the detected wearer can be obtained by performing vocal enhancement and filtering based on the first real-time audio signal collected by the first microphone 1011 in FIG. To repeat; the third preset value is the preset decibel value, which can be the decibel value set by the earphone when it leaves the factory, or the decibel value set by the wearer according to the needs of different scenarios. The third preset value is set to 60 decibels; for another example, for an application scenario in a high-speed rail car, the third preset value can be set slightly higher, such as 70 decibels. It can be understood that the third preset value may be the same as the second preset value, or may be greater than the second preset value. It can be seen that if the current environment detected is a quiet environment and the wearer is talking, the wearer will be prompted to reduce the speaking volume only when the wearer's speaking volume is too loud, so as to avoid the wearer's original speaking volume being lower than the second The preset value, prompts the wearer to be invalid, and minimizes the impact on the wearer's use of the headset for calls or entertainment.

示例性地,以第一预设值为50分贝,第三预设值为70分贝为例,耳机判断第一音量值是否大于50分贝,若不大于,且第二音量值大于70分贝,则输出音量提示信息;若第一音量值大于50分贝,则无需输出音量提示信息。Exemplarily, taking the first preset value of 50 decibels and the third preset value of 70 decibels as an example, the earphone determines whether the first volume value is greater than 50 decibels, if not, and the second volume value is greater than 70 decibels, then Output volume prompt information; if the first volume value is greater than 50 decibels, there is no need to output volume prompt information.

可选地,若第二音量值小于第三预设值,可以进一步检测第二音量值是否小于最低音量阈值,若小于,则可以输出音量增大提示信息,以提示用户以大于最低音量阈值且小于第二预设值的音量进行讲话,避免佩戴者怕影响周围用户说话过于小声,导致通过耳机进行通话存在交流障碍等问题的发生。Optionally, if the second volume value is less than the third preset value, it can be further detected whether the second volume value is less than the minimum volume threshold, and if it is less than the volume increase prompt information can be output to prompt the user to increase the volume to be greater than the minimum volume threshold and Talking at a volume lower than the second preset value avoids the wearer's fear of affecting the surrounding users to speak too softly, resulting in problems such as communication barriers when talking through the headset.

在本实施例中,耳机在检测到所处的当前环境的环境音的音量值低于第一预设至时,表征耳机当前处于较为安静的场所时,并确定佩戴者第二音量值大于第三预设值时,即佩戴者说话音量过大时,提示佩戴者降低说话音量,避免了因耳机的隔音性导致佩戴者无法判断自己说话的音量大小,在较为安静的场所中无意识说话音量过大,影响当前环境中的其他人等问题的发生;同时,也避免佩戴者原本说话音量就低于第二预设值,对佩戴者进行无效提示等问题的发生,尽可能减少对佩戴者使用耳机进行通话或娱乐的影响。In this embodiment, when the earphone detects that the volume value of the ambient sound in the current environment is lower than the first preset value, it indicates that the earphone is currently in a relatively quiet place, and it is determined that the wearer's second volume value is greater than the first When the three preset values are used, that is, when the wearer’s speaking volume is too high, the wearer is prompted to reduce the speaking volume, which prevents the wearer from being unable to judge the volume of his speech due to the sound insulation of the earphone, and the unconsciously speaking volume is too high in a relatively quiet place. large, affecting other people in the current environment and other problems; at the same time, it also avoids the occurrence of problems such as the wearer's original speaking volume is lower than the second preset value, invalid prompts for the wearer, and minimizes the use of the wearer. Headphones for calls or entertainment.

请参照图6,图6为本申请又一实施例提供的一种音量提示方法的流程示意图,应用于耳机。下面将结合图6对本申请实施例提供的音量提示方法进行详细阐述。该音量提示方法可以包括以下步骤:Please refer to FIG. 6. FIG. 6 is a schematic flowchart of a volume prompting method provided by another embodiment of the present application, which is applied to an earphone. The volume prompting method provided by the embodiment of the present application will be described in detail below with reference to FIG. 6 . The volume prompting method may include the following steps:

步骤S410:获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值。Step S410: Acquire the volume value of the ambient sound of the current environment where the earphone is located, as the first volume value.

在本实施例中,步骤S410中的具体实施方式可以参阅前述实施例中的内容,在此不再赘述。In this embodiment, for the specific implementation manner in step S410, reference may be made to the content in the foregoing embodiments, which will not be repeated here.

步骤S420:若所述第一音量值小于所述第一预设值,且所述耳机连接的电子设备的当前工作状态为预设工作状态中的任一工作状态,输出所述音量提示信息,所述预设工作状态至少包括来电状态以及拨号状态。Step S420: if the first volume value is less than the first preset value, and the current working state of the electronic device connected to the earphone is any working state in the preset working state, output the volume prompt information, The preset working state at least includes an incoming call state and a dialing state.

在本实施例中,耳机一般通过无线或者有线的通信方式与电子设备建立通信连接,耳机基于建立的通信连接作为该电子设备的配件使用,例如,耳机通过该通信连接接收并播放电子设备发送的音乐音频、视频音频以及通话音频等音频信号,耳机可以采集通话音频信号并反馈给电子设备。也就是说,耳机可以通过建立的通信连接与电子设备之间进行数据交互。其中,电子设备包括但不限于智能手机、智能手表、平板电脑、笔记本电脑以及台式电脑等设备;无线通信连接可以是蓝牙连接,也可以是其他的短距离无线通信连接,本实施例对此不作限制。In this embodiment, the headset generally establishes a communication connection with the electronic device through wireless or wired communication, and the headset is used as an accessory of the electronic device based on the established communication connection. For example, the headset receives and plays the data sent by the electronic device through the communication connection. For audio signals such as music audio, video audio, and call audio, the headset can collect the call audio signal and feed it back to the electronic device. That is to say, the headset can perform data interaction with the electronic device through the established communication connection. Among them, electronic devices include but are not limited to smart phones, smart watches, tablet computers, notebook computers, desktop computers and other devices; the wireless communication connection may be a Bluetooth connection or other short-distance wireless communication connection, which is not made in this embodiment. limit.

可以理解地,耳机在确定第一音量值小于第一预设值,即确定所处的当前环境为安静环境时,可以基于前述建立好的通信连接,获取与该耳机连接的电子设备的当前工作状态,基于当前工作状态确定佩戴者是否即将要说话或者正在说话。具体地,检测当前工作状态是否为预设工作状态中的任一工作状态,若是,则表征佩戴者当前是以耳机作为电子设备的通话配件,与其他设备即将进行通话或者正在进行通话,此时,再输出音量提示信息,提示佩戴者说话音量低于第二预设值。其中,预设工作状态可以是任一形式下的来电状态、拨号状态以及正在通话状态等,其中,来电状态用于表征电子设备当前接收到其他设备发送的通话请求,拨号状态用于表征该电子设备当前正在向其他设备发送通话请求,通话请求包括但不限于语音通话请求和视频通话请求,正在通话状态用于表征电子设备正在与其他设备进行通话,该通话包括但不限于语音通话和视频通话。例如,电子设备自带的通话形式下的来电状态、拨号状态以及正在通话状态,又例如,电子设备中的应用程序形式下的来电状态、拨号状态以及正在通话状态,本实例对此不作限制。如此,可以借助电子设备的当前工作状态,预先判断佩戴者是否即将要说话或者正在说话,进而预先提示用户说话音量不要超过第二预设值,提前规避了佩戴者说话音量过大导致对当前环境的其他用户的影响。It can be understood that when the earphone determines that the first volume value is less than the first preset value, that is, when the current environment in which it is located is determined to be a quiet environment, it can obtain the current work of the electronic device connected to the earphone based on the previously established communication connection. Status, which determines whether the wearer is about to speak or is speaking based on the current working status. Specifically, it is detected whether the current working state is any one of the preset working states, and if so, it means that the wearer currently uses the headset as a communication accessory of the electronic device, and is about to talk or is in the process of talking with other devices. , and then output volume prompt information to remind the wearer that the speaking volume is lower than the second preset value. The preset working state may be an incoming call state, a dialing state, a calling state, etc. in any form, wherein the incoming call state is used to represent that the electronic device currently receives a call request sent by other devices, and the dialed state is used to represent the electronic device. The device is currently sending a call request to other devices. The call request includes but is not limited to a voice call request and a video call request. The in-call status is used to indicate that the electronic device is in a call with other devices, and the call includes but is not limited to voice calls and video calls. . For example, the incoming call state, dialing state, and calling state in the call mode that comes with the electronic device, and for example, the incoming call state, dialing state, and calling state in the form of an application program in the electronic device, which are not limited in this example. In this way, it is possible to use the current working state of the electronic device to pre-determine whether the wearer is about to speak or is speaking, and further prompts the user in advance that the speaking volume should not exceed the second preset value, thereby avoiding the wearer's excessive speaking volume and causing the current environment. of other users.

在一些实施方式中,可以是先判断第一音量值是否小于第一预设值,若确定第一音量值小于第一预设值,再获取与该耳机连接的电子设备的当前工作状态,并检测当前工作状态是否为预设工作状态中的任一工作状态,若当前工作状态为预设工作状态中的任一工作状态,输出音量提示信息,提示佩戴者以较低的音量讲话。In some embodiments, it may be determined whether the first volume value is less than the first preset value first, and if it is determined that the first volume value is less than the first preset value, then obtain the current working state of the electronic device connected to the earphone, and Detect whether the current working state is any of the preset working states, and if the current working state is any of the preset working states, output volume prompt information to prompt the wearer to speak at a lower volume.

在另一些实施方式中,也可以是先获取与该耳机连接的电子设备的当前工作状态,并检测当前工作状态是否为预设工作状态中的任一工作状态,若当前工作状态为预设工作状态中的任一工作状态,再判断第一音量值是否小于第一预设值,若第一音量值小于第一预设值,输出音量提示信息,提示佩戴者以较低的音量讲话。In other embodiments, the current working state of the electronic device connected to the earphone may be obtained first, and it is detected whether the current working state is any one of the preset working states. If the current working state is the preset working state If the first volume value is less than the first preset value, output volume prompt information to prompt the wearer to speak at a lower volume.

在又一些实施方式中,可以同时检测第一音量值是否小于第一预设值,以及电子设备的当前工作状态是否为预设工作状态中的任一工作状态,若两者均满足,再输出音量提示信息,提示佩戴者以较低的音量讲话。In still other embodiments, it is possible to simultaneously detect whether the first volume value is smaller than the first preset value, and whether the current working state of the electronic device is any one of the preset working states, and if both are satisfied, output the Volume reminder message, prompting the wearer to speak at a lower volume.

在一些实施方式中,还可以确定第一音量值小于第一预设值,且耳机连接的电子设备的当前工作状态为预设工作状态中的任一工作状态,再进一步检测佩戴者是否发出音频信号,若检测到所述佩戴者发出的音频信号,获取所述佩戴者发出的音频信号的音量值,作为第二音量值,若第二音量值大于第三预设值,输出音量提示信息。如此,结合电子设备的当前工作状态以及佩戴者发出的音频信号的音量值两个条件,判断是否要输出音量提示信息,来提示佩戴者以较低的音量进行讲话,可以进一步提高音量提示的准确性。In some embodiments, it can also be determined that the first volume value is smaller than the first preset value, and the current working state of the electronic device connected to the earphone is any working state of the preset working states, and then it is further detected whether the wearer emits audio If the audio signal sent by the wearer is detected, the volume value of the audio signal sent by the wearer is obtained as the second volume value, and if the second volume value is greater than the third preset value, volume prompt information is output. In this way, combining the two conditions of the current working state of the electronic equipment and the volume value of the audio signal sent by the wearer, it is judged whether to output the volume prompt information to prompt the wearer to speak at a lower volume, which can further improve the accuracy of the volume prompt. sex.

在本实施例中,基于与耳机连接的电子设备的当前工作状态,预先判断佩戴者是否即将要说话或者正在说话,进而预先提示用户说话音量不要超过第二预设值,提前规避了佩戴者说话音量过大导致对当前环境的其他用户的影响。In this embodiment, based on the current working state of the electronic device connected to the earphone, it is pre-judged whether the wearer is about to speak or is speaking, and further prompts the user in advance that the speaking volume should not exceed the second preset value, thereby preventing the wearer from speaking in advance. Excessive volume causes effects on other users of the current environment.

请参照图7,图7为本申请再一实施例提供的一种音量提示方法的流程示意图,应用于耳机。下面将结合图7对本申请实施例提供的音量提示方法进行详细阐述。该音量提示方法可以包括以下步骤:Please refer to FIG. 7 . FIG. 7 is a schematic flowchart of a volume prompting method provided by yet another embodiment of the present application, which is applied to an earphone. The volume prompting method provided by the embodiment of the present application will be described in detail below with reference to FIG. 7 . The volume prompting method may include the following steps:

步骤S510:获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值。Step S510: Acquire the volume value of the ambient sound of the current environment where the earphone is located, as the first volume value.

在本实施例中,步骤S510中的具体实施方式可以参阅前述实施例中的内容,在此不再赘述。In this embodiment, for the specific implementation manner in step S510, reference may be made to the content in the foregoing embodiments, and details are not described herein again.

步骤S520:若所述第一音量值小于第一预设值,且所述耳机所处的当前位置对应的场景与预设场景相匹配,输出所述音量提示信息。Step S520: If the first volume value is less than a first preset value and the scene corresponding to the current position of the earphone matches the preset scene, output the volume prompt information.

在本实施例中,耳机在确定第一音量值小于第一预设值,即确定所处的当前环境为安静环境时,还可以通过定位技术,确定耳机所处的当前位置,以便基于当前位置判断当前环境是否为不适合大声说话的安静环境,例如,图书馆属于不适合大声说话的安静环境,但卧室属于可以大声说话的安静环境,因此,可以结合耳机所处的当前位置,来判断是否当前是否有必要对佩戴者输出音量提示信息。其中,定位技术包括但不限于全球定位系统(Global Positioning System,GPS)定位、基于移动运营网的基站的定位以及Wi-Fi定位等技术,具体使用何种定位技术可以根据不同的应用场景进行灵活调整。In this embodiment, when the earphone determines that the first volume value is less than the first preset value, that is, when the current environment in which it is located is determined to be a quiet environment, the current location of the earphone can also be determined by using a positioning technology, so that the current location of the earphone can be determined based on the current location. Determine whether the current environment is a quiet environment that is not suitable for speaking loudly. For example, the library is a quiet environment that is not suitable for speaking loudly, but the bedroom is a quiet environment that can speak loudly. Therefore, you can combine the current position of the headset to determine whether Whether it is currently necessary to output volume prompt information to the wearer. Among them, the positioning technology includes but is not limited to Global Positioning System (Global Positioning System, GPS) positioning, mobile operator network-based base station positioning, Wi-Fi positioning and other technologies. The specific positioning technology used can be flexibly based on different application scenarios. Adjustment.

可以理解地,由于耳机一般是作为电子设备的配件设备进行使用的,并且,耳机与电子设备是通过短距离无线通信方式或者有线通信方式建立通信连接的。因此,可以通过前述定位技术获取与耳机相连的电子设备的当前位置,作为该耳机所处的当前位置;再进一步获取当前位置对应的场景,并判断该场景是否与预设场景相匹配,若匹配,表征耳机所处的当前环境为不适合大声说话的安静环境(例如,图书馆),进而输出音量提示信息,提示用户当前以不超过第二预设值的音量进行讲话。若不匹配,表征耳机所处的当前环境为可以大声说话的安静环境(例如,卧室),进而不输出音量提示信息,即不影响当前佩戴者通过耳机正在进行的通话或娱乐活动。It can be understood that since the earphone is generally used as an accessory device of the electronic device, and the earphone and the electronic device establish a communication connection by means of short-distance wireless communication or wired communication. Therefore, the current position of the electronic device connected to the headset can be obtained through the aforementioned positioning technology as the current position of the headset; the scene corresponding to the current position is further obtained, and it is judged whether the scene matches the preset scene, and if so , indicating that the current environment in which the headset is located is a quiet environment (eg, a library) that is not suitable for speaking loudly, and then output volume prompt information to prompt the user to speak at a volume that does not exceed the second preset value. If it does not match, it indicates that the current environment in which the headset is located is a quiet environment (eg, a bedroom) that can speak loudly, and no volume prompt information is output, that is, it does not affect the current wearer's ongoing calls or entertainment activities through the headset.

在一些实施方式中,可以在确定第一音量值小于第一预设值,且耳机所处的当前位置对应的场景与预设场景相匹配时,再检测所处的当前环境中是否存在佩戴者发出的音频信号,若检测到佩戴者发出的音频信号,输出音量提示信息,具体实施方式可以参阅前述实施例中的内容,在此不再赘述。也就是说,在确定所处的当前环境为不适合大声说话的安静环境时,检测佩戴者正在发出声音时,才提示佩戴者以较低的音量进行讲话。In some embodiments, when it is determined that the first volume value is smaller than the first preset value and the scene corresponding to the current position of the earphone matches the preset scene, it may be further detected whether there is a wearer in the current environment. For the audio signal sent, if the audio signal sent by the wearer is detected, the volume prompt information is output. For the specific implementation, please refer to the content in the foregoing embodiment, and details are not repeated here. That is to say, when it is determined that the current environment is a quiet environment unsuitable for speaking loudly, and it is detected that the wearer is making a sound, the wearer is prompted to speak at a lower volume.

可以理解地,也可以在确定第一音量值小于第一预设值,且检测到佩戴者发出的音频信号后,再判断耳机所处的当前位置对应的场景与预设场景是否匹配,若匹配,则输出音量提示信息。也就是说,确定第一音量值是否小于第一预设值、判断耳机所处的当前位置对应的场景是否与预设场景相匹配,以及检测所处的当前环境中是否存在佩戴者发出的音频信号三个条件的执行顺序本实施例不作限制,可以按照先后顺序执行,也可以同时执行。It is understandable that after it is determined that the first volume value is less than the first preset value and the audio signal sent by the wearer is detected, it is also possible to determine whether the scene corresponding to the current position of the headset matches the preset scene, and if so, , then output volume prompt information. That is to say, determine whether the first volume value is smaller than the first preset value, determine whether the scene corresponding to the current position of the headset matches the preset scene, and detect whether there is audio from the wearer in the current environment. The execution order of the three conditions of the signal is not limited in this embodiment, and may be executed sequentially or simultaneously.

在另一些实施方式中,可以在确定第一音量值小于第一预设值,且耳机所处的当前位置对应的场景与预设场景相匹配时,再检测耳机连接的电子设备的当前工作状态是否预设工作状态中的任一工作状态,若是,输出音量提示信息,其中,检测当前工作状态的具体实施方式可以参阅前述实施例中的内容,本实施例对此不作限制。In other embodiments, when it is determined that the first volume value is smaller than the first preset value and the scene corresponding to the current position of the headset matches the preset scene, the current working state of the electronic device connected to the headset can be detected again. Whether any one of the working states is preset, and if so, output volume prompt information, wherein the specific implementation of detecting the current working state can refer to the content in the foregoing embodiment, which is not limited in this embodiment.

可以理解地,确定第一音量值是否小于第一预设值、判断耳机所处的当前位置对应的场景是否与预设场景相匹配,以及检测耳机连接的电子设备的当前工作状态是否预设工作状态中的任一工作状态三个条件的执行顺序本实施例不作限制,可以按照先后顺序执行,也可以同时执行。Understandably, determine whether the first volume value is smaller than the first preset value, determine whether the scene corresponding to the current position of the headset matches the preset scene, and detect whether the current working state of the electronic device connected to the headset is preset to work. The execution order of the three conditions of any working state in the state is not limited in this embodiment, and the execution may be performed sequentially or simultaneously.

由此可见,在本实施例中,在确定所处的当前环境为安静环境时,还可以结合定位技术,确定耳机所处的当前位置,基于当前位置判断当前环境是否为不适合大声说话的安静环境,并且,仅在当前环境是否为不适合大声说话的安静环境下,才提示佩戴者以低于第二预设值的音量进行讲话,实现了对佩戴者进行更为准确的音量提示,减少不必要音量提示。It can be seen that in this embodiment, when it is determined that the current environment is a quiet environment, the positioning technology can also be used to determine the current position of the headset, and based on the current position, it can be judged whether the current environment is quiet and unsuitable for speaking loudly. environment, and the wearer is prompted to speak at a volume lower than the second preset value only when the current environment is a quiet environment unsuitable for speaking loudly. Unnecessary volume prompts.

请参照图8,图8为本申请又再一实施例提供的一种音量提示方法的流程示意图,应用于耳机。下面将结合图7对本申请实施例提供的音量提示方法进行详细阐述。该音量提示方法可以包括以下步骤:Please refer to FIG. 8 , which is a schematic flowchart of a volume prompting method provided by yet another embodiment of the present application, which is applied to headphones. The volume prompting method provided by the embodiment of the present application will be described in detail below with reference to FIG. 7 . The volume prompting method may include the following steps:

步骤S610:获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值。Step S610: Obtain the volume value of the ambient sound of the current environment where the earphone is located, as the first volume value.

在本实施例中,步骤S610中的具体实施方式可以参阅前述实施例中的内容,在此不再赘述。In this embodiment, for the specific implementation manner of step S610, reference may be made to the content in the foregoing embodiments, and details are not described herein again.

步骤S620:若所述第一音量值小于所述第一预设值,且所述耳机连接的电子设备的当前屏幕状态处于亮屏状态,发送音量提示指令至所述电子设备,所述音量提示指令用于指示所述电子设备输出所述音量提示信息。Step S620: If the first volume value is less than the first preset value, and the current screen state of the electronic device connected to the earphone is in the bright screen state, send a volume prompt command to the electronic device, and the volume prompt The instruction is used to instruct the electronic device to output the volume prompt information.

在本实施例中,在确定要输出音量提示信息,以提示佩戴者的说话音量不要超过第二预设值时,可以获取与耳机连接的电子设备的当前屏幕状态,并基于当前屏幕状态,确定更为适配的音量提示信息的输出方式。In this embodiment, when it is determined that volume prompt information is to be output to remind the wearer that the speaking volume should not exceed the second preset value, the current screen state of the electronic device connected to the earphone can be obtained, and based on the current screen state, determine A more suitable output method for volume prompt information.

可选地,若所述第一音量值小于所述第一预设值,且耳机连接的电子设备的当前屏幕状态处于亮屏状态,表征与耳机连接的电子设备正在被佩戴者查看,因此,耳机可以发送音量提示指令至电子设备,对应地,电子设备响应于音量提示指令输出音量提示信息,例如,电子设备的屏幕上可以显示“当前环境为安静环境,可以适当降低你的说话音量”,当然,电子设备也可以进行震动提示,具体如何实现震动提示可以参阅前述实施例中的内容。如此,可以在不中断耳机的播放或采集音频信号的过程,就可以实现对佩戴者的音量提示。Optionally, if the first volume value is less than the first preset value, and the current screen state of the electronic device connected to the earphone is in the bright screen state, it indicates that the electronic device connected to the earphone is being viewed by the wearer, therefore, The headset can send a volume prompt instruction to the electronic device, and correspondingly, the electronic device outputs volume prompt information in response to the volume prompt instruction. For example, the screen of the electronic device can display "The current environment is a quiet environment, and you can appropriately reduce your speaking volume", Of course, the electronic device can also perform vibration prompting. For details on how to implement the vibration prompting, please refer to the content in the foregoing embodiments. In this way, the volume prompt to the wearer can be realized without interrupting the process of playing the earphone or collecting the audio signal.

其中,确定要输出音量提示信息不仅限于第一音量值小于第一预设值的条件,还可以是第一音量值小于第一预设值,且检测到佩戴者发出的音频信号的条件,还可以是第一音量值小于第一预设值,且耳机连接的电子设备的当前工作状态为预设工作状态中的任一工作状态的条件,前述实施例中用于确定是否输出音量提示信息的条件均可应用于本实施例,本实施例对此不作限制。Wherein, determining the volume prompt information to be output is not limited to the condition that the first volume value is less than the first preset value, but may also be the condition that the first volume value is less than the first preset value and the audio signal sent by the wearer is detected, and also It can be a condition that the first volume value is less than the first preset value, and the current working state of the electronic device connected to the earphone is any one of the preset working states. All conditions can be applied to this embodiment, which is not limited in this embodiment.

步骤S630:若所述第一音量值小于所述第一预设值,且所述耳机连接的电子设备的当前屏幕状态处于熄屏状态,输出所述音量提示信息。Step S630: If the first volume value is smaller than the first preset value and the current screen state of the electronic device connected to the earphone is in a screen-off state, output the volume prompt information.

可以理解地,当耳机连接的电子设备的当前屏幕状态处于熄屏状态,表征佩戴者当前并未查看电子设备,以电子设备是智能手机为例,当前佩戴者将与耳机相连的智能手机放置在衣服口袋或者背包内,此时,若仍通过控制电子设备输出音量提示信息,可能佩戴者也无法察觉,即无效提示。基于此,在确定要输出音量提示信息后,且耳机连接的电子设备的当前屏幕状态处于熄屏状态,则直接由耳机输出音量提示信息,如此,可以使得佩戴者可以及时接收到音量提示,避免音量提示信息无法被佩戴者察觉等情况的发生。Understandably, when the current screen state of the electronic device connected to the headset is off, it means that the wearer is not currently viewing the electronic device. Taking the electronic device as a smartphone as an example, the current wearer places the smartphone connected to the headset on the screen. In the clothes pocket or backpack, at this time, if the volume prompt information is still output through the control electronic device, the wearer may not be able to detect it, that is, the prompt is invalid. Based on this, after it is determined that the volume prompt information is to be output, and the current screen state of the electronic device connected to the headset is in the off-screen state, the volume prompt information is directly output from the headset. In this way, the wearer can receive the volume prompt in time to avoid The volume prompt information cannot be detected by the wearer, etc.

其中,确定要输出音量提示信息不仅限于第一音量值小于第一预设值的条件,还可以是第一音量值小于第一预设值,且检测到佩戴者发出的音频信号的条件,还可以是第一音量值小于第一预设值,且耳机连接的电子设备的当前工作状态为预设工作状态中的任一工作状态的条件,前述实施例中用于确定是否输出音量提示信息的条件均可应用于本实施例,本实施例对此不作限制。Wherein, determining the volume prompt information to be output is not limited to the condition that the first volume value is less than the first preset value, but may also be the condition that the first volume value is less than the first preset value and the audio signal sent by the wearer is detected, and also It can be a condition that the first volume value is less than the first preset value, and the current working state of the electronic device connected to the earphone is any one of the preset working states. All conditions can be applied to this embodiment, which is not limited in this embodiment.

在本实施例中,若确定第一音量值小于第一预设值时,即确定要输出音量提示信息时,可以进一步获取耳机连接的电子设备的当前屏幕状态,结合当前屏幕状态选择最为合适的输出方式,来输出音量提示信息,进而保证佩戴者可以及时获知到音量提示信息,进而控制自身说话音量不超过第二预设值。In this embodiment, if it is determined that the first volume value is less than the first preset value, that is, when it is determined that the volume prompt information is to be output, the current screen state of the electronic device connected to the earphone can be further obtained, and the most suitable one can be selected in combination with the current screen state. The output mode is used to output the volume prompt information, thereby ensuring that the wearer can obtain the volume prompt information in time, and then control the volume of his own speech not to exceed the second preset value.

请参照图9,其中示出了本申请一实施例提供的一种音量提示装置700的结构框图,应用于耳机。该装置700可以包括:音量获取模块710和音量提示模块720。Please refer to FIG. 9 , which shows a structural block diagram of a volume prompting device 700 provided by an embodiment of the present application, which is applied to an earphone. The apparatus 700 may include: a volume acquisition module 710 and a volume prompt module 720 .

音量获取模块710用于获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值。The volume acquisition module 710 is configured to acquire the volume value of the ambient sound of the current environment where the earphone is located, as the first volume value.

音量提示模块720用于若所述第一音量值小于第一预设值,输出音量提示信息,所述音量提示信息用于提示佩戴者进行讲话时控制讲话音量小于第二预设值。The volume prompt module 720 is configured to output volume prompt information if the first volume value is smaller than the first preset value, and the volume prompt information is used to prompt the wearer to control the speaking volume to be less than the second preset value when speaking.

在一些实施方式中,音量提示模块720可以具体用于若所述第一音量值小于所述第一预设值,且检测到所述佩戴者发出的音频信号,输出所述音量提示信息。In some embodiments, the volume prompt module 720 may be specifically configured to output the volume prompt information if the first volume value is smaller than the first preset value and an audio signal sent by the wearer is detected.

在该方式下,音量获取模块710还可以用于若所述第一音量值小于所述第一预设值,且检测到所述佩戴者发出的音频信号,获取所述佩戴者发出的音频信号的音量值,作为第二音量值。音量提示模块720可以用于若所述第二音量值大于第三预设值,输出所述音量提示信息。In this manner, the volume acquisition module 710 may also be configured to acquire the audio signal sent by the wearer if the first volume value is smaller than the first preset value and an audio signal sent by the wearer is detected The volume value of , as the second volume value. The volume prompt module 720 may be configured to output the volume prompt information if the second volume value is greater than a third preset value.

在另一些实施方式中,音量提示模块720可以具体用于若所述第一音量值小于所述第一预设值,且所述耳机连接的电子设备的当前工作状态为预设工作状态中的任一工作状态,输出所述音量提示信息,所述预设工作状态至少包括来电状态以及拨号状态。In other embodiments, the volume prompting module 720 may be specifically configured to, if the first volume value is less than the first preset value, and the current working state of the electronic device connected to the earphone is in the preset working state In any working state, the volume prompt information is output, and the preset working state at least includes an incoming call state and a dialing state.

在一些实施方式中,音量提示模块720可以用于若所述第一音量值小于第一预设值,且所述耳机所处的当前位置对应的场景与预设场景相匹配,输出所述音量提示信息。In some embodiments, the volume prompt module 720 may be configured to output the volume if the first volume value is less than a first preset value and the scene corresponding to the current position of the earphone matches the preset scene. prompt information.

在另一些实施方式中,音量提示模块720可以具体用于:若所述第一音量值小于所述第一预设值,且所述耳机连接的电子设备的当前屏幕状态处于亮屏状态,发送音量提示指令至所述电子设备,所述音量提示指令用于指示所述电子设备输出所述音量提示信息;若所述第一音量值小于所述第一预设值,且所述耳机连接的电子设备的当前屏幕状态处于熄屏状态,输出所述音量提示信息。In other embodiments, the volume prompting module 720 may be specifically configured to: if the first volume value is less than the first preset value, and the current screen state of the electronic device connected to the earphone is in the bright screen state, send A volume prompt command is sent to the electronic device, and the volume prompt command is used to instruct the electronic device to output the volume prompt information; if the first volume value is less than the first preset value, and the earphone is connected to the The current screen state of the electronic device is in a screen-off state, and the volume prompt information is output.

在另一些实施方式中,音量获取模块710可以具体用于:若所述耳机处于佩戴状态,获取所述耳机所处的当前环境的环境音的音量值,作为所述第一音量值。In other embodiments, the volume acquisition module 710 may be specifically configured to: if the earphone is in a wearing state, acquire the volume value of the ambient sound of the current environment where the earphone is located, as the first volume value.

在一些实施方式中,所述耳机包括第一麦克风以及第二麦克风;音量获取模块710可以具体用于:获取所述第一麦克风实时采集的音频信号,作为第一实时音频信号;获取所述第二麦克风实时采集的音频信号,作为第二实时音频信号;基于所述第一实时音频信号,对所述第二实时音频信号进行滤波处理,得到所述耳机所处的当前环境的环境音的环境音频信号;获取所述环境音频信号的音量值,作为第一音量值。In some embodiments, the headset includes a first microphone and a second microphone; the volume acquisition module 710 may be specifically configured to: acquire an audio signal collected in real time by the first microphone as a first real-time audio signal; acquire the first real-time audio signal; The audio signal collected in real time by the two microphones is used as the second real-time audio signal; based on the first real-time audio signal, the second real-time audio signal is filtered to obtain the environment of the current environment where the headset is located. Audio signal; obtain the volume value of the ambient audio signal as the first volume value.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and modules, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling.

另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.

综上所述,本申请实施例提供的方案中,获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值;若所述第一音量值小于第一预设值,输出音量提示信息,所述音量提示信息用于提示佩戴者进行讲话时控制讲话音量小于第二预设值。如此,在当前环境为较为安静的环境时,耳机可以通过音量提示信息来提示佩戴者以较小的音量进行讲话,避免了因耳机的隔音性导致佩戴者无法判断自己说话的音量大小,在较为安静的环境中无意识的说话音量过大,进而避免影响当前环境中的其他人等问题的发生。To sum up, in the solution provided by the embodiment of the present application, the volume value of the ambient sound of the current environment where the earphone is located is obtained as the first volume value; if the first volume value is less than the first preset value, Output volume prompt information, where the volume prompt information is used to prompt the wearer to control the speaking volume to be less than the second preset value when speaking. In this way, when the current environment is a relatively quiet environment, the headset can prompt the wearer to speak at a lower volume through the volume prompt information, avoiding the wearer's inability to judge the volume of his speech due to the sound insulation of the headset. Unintentional speaking volume in a quiet environment is too loud to avoid problems such as affecting other people in the current environment.

下面将结合图10对本申请提供的一种耳机进行说明。An earphone provided by the present application will be described below with reference to FIG. 10 .

参照图10,图10示出了本申请实施例提供的一种耳机800的结构框图,本申请实施例提供的上述方法可以由该耳机800执行。Referring to FIG. 10 , FIG. 10 shows a structural block diagram of an earphone 800 provided by an embodiment of the present application, and the foregoing method provided by an embodiment of the present application may be executed by the earphone 800 .

本申请实施例中的耳机800可以包括一个或多个如下部件:处理器801、存储器802、以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器802中并被配置为由一个或多个处理器801执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。The headset 800 in this embodiment of the present application may include one or more of the following components: a processor 801, a memory 802, and one or more application programs, wherein the one or more application programs may be stored in the memory 802 and configured as Executed by one or more processors 801, one or more programs are configured to perform the methods described in the foregoing method embodiments.

处理器801可以包括一个或者多个处理核。处理器801利用各种接口和线路连接整个电子设备800内的各个部分,通过运行或执行存储在存储器802内的指令、程序、代码集或指令集,以及调用存储在存储器802内的数据,执行电子设备800的各种功能和处理数据。可选地,处理器801可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器801可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以集成到处理器801中,单独通过一块通信芯片进行实现。Processor 801 may include one or more processing cores. The processor 801 uses various interfaces and lines to connect various parts of the entire electronic device 800, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 802, and calling the data stored in the memory 802. Various functions of the electronic device 800 and processing data. Optionally, the processor 801 may adopt at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA) implemented in hardware. The processor 801 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing of the display content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem can also be integrated into the processor 801 and implemented by a single communication chip.

存储器802可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器802可用于存储指令、程序、代码、代码集或指令集。存储器802可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储耳机800在使用中所创建的数据(比如上述的各种对应关系)等。The memory 802 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 802 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 802 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area may also store data created by the earphone 800 during use (such as the above-mentioned various correspondences), and the like.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and modules, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,所显示或讨论的模块相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In several embodiments provided in this application, the coupling or direct coupling or communication connection between the modules shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or modules may be electrical, mechanical or otherwise.

另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.

请参考图11,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质900中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 11 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 900 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.

计算机可读存储介质900可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质900包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质900具有执行上述方法中的任何方法步骤的程序代码910的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码910可以例如以适当形式进行压缩。The computer-readable storage medium 900 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium. Computer readable storage medium 900 has storage space for program code 910 to perform any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. Program code 910 may be compressed, for example, in a suitable form.

在一些实施例中,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述各方法实施例中的步骤。In some embodiments, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in the foregoing method embodiments.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (11)

1.一种音量提示方法,其特征在于,应用于耳机,所述方法包括:1. a volume prompting method, is characterized in that, is applied to earphone, described method comprises: 获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值;Obtain the volume value of the ambient sound of the current environment where the earphone is located, as the first volume value; 若所述第一音量值小于第一预设值,输出音量提示信息,所述音量提示信息用于提示佩戴者进行讲话时控制讲话音量小于第二预设值。If the first volume value is less than the first preset value, output volume prompt information, and the volume prompt information is used to prompt the wearer to control the speaking volume to be less than the second preset value when speaking. 2.根据权利要求1所述的方法,其特征在于,所述若所述第一音量值小于第一预设值,输出音量提示信息,包括:2. The method according to claim 1, wherein, if the first volume value is less than a first preset value, outputting volume prompt information, comprising: 若所述第一音量值小于所述第一预设值,且检测到所述佩戴者发出的音频信号,输出所述音量提示信息。If the first volume value is smaller than the first preset value and an audio signal sent by the wearer is detected, the volume prompt information is output. 3.根据权利要求2所述的方法,其特征在于,所述若所述第一音量值小于第一预设值,且检测到所述佩戴者发出的音频信号,输出所述音量提示信息,包括:3. The method according to claim 2, wherein if the first volume value is less than a first preset value and an audio signal sent by the wearer is detected, the volume prompt information is output, include: 若所述第一音量值小于所述第一预设值,且检测到所述佩戴者发出的音频信号,获取所述佩戴者发出的音频信号的音量值,作为第二音量值;If the first volume value is less than the first preset value, and an audio signal sent by the wearer is detected, acquiring the volume value of the audio signal sent by the wearer as a second volume value; 若所述第二音量值大于第三预设值,输出所述音量提示信息。If the second volume value is greater than the third preset value, output the volume prompt information. 4.根据权利要求1所述的方法,其特征在于,所述若所述第一音量值小于第一预设值,输出音量提示信息,包括:4. The method according to claim 1, wherein, if the first volume value is less than a first preset value, outputting volume prompt information, comprising: 若所述第一音量值小于所述第一预设值,且所述耳机连接的电子设备的当前工作状态为预设工作状态中的任一工作状态,输出所述音量提示信息,所述预设工作状态至少包括来电状态以及拨号状态。If the first volume value is smaller than the first preset value, and the current working state of the electronic device connected to the earphone is any one of the preset working states, the volume prompt information is output, and the preset working state is output. It is assumed that the working state at least includes the incoming call state and the dialing state. 5.根据权利要求1-4任一项所述的方法,其特征在于,所述若所述第一音量值小于第一预设值,输出音量提示信息,包括:5. The method according to any one of claims 1-4, wherein, if the first volume value is less than a first preset value, outputting volume prompt information, comprising: 若所述第一音量值小于第一预设值,且所述耳机所处的当前位置对应的场景与预设场景相匹配,输出所述音量提示信息。If the first volume value is smaller than the first preset value, and the scene corresponding to the current position of the earphone matches the preset scene, the volume prompt information is output. 6.根据权利要求1-4任一项所述的方法,其特征在于,所述若所述第一音量值小于第一预设值,输出音量提示信息,包括:6. The method according to any one of claims 1-4, wherein, if the first volume value is less than a first preset value, outputting volume prompt information, comprising: 若所述第一音量值小于所述第一预设值,且所述耳机连接的电子设备的当前屏幕状态处于亮屏状态,发送音量提示指令至所述电子设备,所述音量提示指令用于指示所述电子设备输出所述音量提示信息;If the first volume value is less than the first preset value, and the current screen state of the electronic device connected to the earphone is in the bright screen state, a volume prompt command is sent to the electronic device, and the volume prompt command is used to instructing the electronic device to output the volume prompt information; 若所述第一音量值小于所述第一预设值,且所述耳机连接的电子设备的当前屏幕状态处于熄屏状态,输出所述音量提示信息。If the first volume value is less than the first preset value, and the current screen state of the electronic device connected to the earphone is in a screen-off state, the volume prompt information is output. 7.根据权利要求1-4任一项所述的方法,其特征在于,所述获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值,包括:7. The method according to any one of claims 1-4, wherein the acquiring the volume value of the ambient sound of the current environment where the earphone is located, as the first volume value, comprises: 若所述耳机处于佩戴状态,获取所述耳机所处的当前环境的环境音的音量值,作为所述第一音量值。If the earphone is in the wearing state, the volume value of the ambient sound of the current environment where the earphone is located is obtained as the first volume value. 8.根据权利要求1-4任一项所述的方法,其特征在于,所述耳机包括第一麦克风以及第二麦克风;所述获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值,包括:8. The method according to any one of claims 1-4, wherein the earphone comprises a first microphone and a second microphone; the acquiring the volume value of the ambient sound of the current environment where the earphone is located, As the first volume value, include: 获取所述第一麦克风实时采集的音频信号,作为第一实时音频信号;acquiring the audio signal collected in real time by the first microphone as the first real-time audio signal; 获取所述第二麦克风实时采集的音频信号,作为第二实时音频信号;Acquiring the audio signal collected in real time by the second microphone as the second real-time audio signal; 基于所述第一实时音频信号,对所述第二实时音频信号进行滤波处理,得到所述耳机所处的当前环境的环境音的环境音频信号;Based on the first real-time audio signal, filtering processing is performed on the second real-time audio signal to obtain an ambient audio signal of the ambient sound of the current environment where the headset is located; 获取所述环境音频信号的音量值,作为第一音量值。Acquire the volume value of the ambient audio signal as the first volume value. 9.一种音量提示装置,其特征在于,应用于耳机,所述装置包括:9. A volume prompting device, characterized in that, applied to an earphone, the device comprising: 音量获取模块,用于获取所述耳机所处的当前环境的环境音的音量值,作为第一音量值;a volume acquisition module, configured to acquire the volume value of the ambient sound of the current environment where the earphone is located, as the first volume value; 音量提示模块,用于若所述第一音量值小于第一预设值,输出音量提示信息,所述音量提示信息用于提示佩戴者进行讲话时控制讲话音量小于第二预设值。The volume prompting module is configured to output volume prompt information if the first volume value is less than the first preset value, the volume prompt information is used to prompt the wearer to control the speaking volume to be less than the second preset value when speaking. 10.一种耳机,其特征在于,包括:10. An earphone, characterized in that, comprising: 一个或多个处理器;one or more processors; 存储器;memory; 一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行如权利要求1至8任一项所述的方法。one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs are configured to perform as claimed in the claims The method of any one of 1 to 8. 11.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1至8任一项所述的方法。11. A computer-readable storage medium, wherein a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the method according to any one of claims 1 to 8 .
CN202210475382.8A 2022-04-29 2022-04-29 Volume prompt method, device, earphone and storage medium Active CN114710730B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210475382.8A CN114710730B (en) 2022-04-29 2022-04-29 Volume prompt method, device, earphone and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210475382.8A CN114710730B (en) 2022-04-29 2022-04-29 Volume prompt method, device, earphone and storage medium

Publications (2)

Publication Number Publication Date
CN114710730A true CN114710730A (en) 2022-07-05
CN114710730B CN114710730B (en) 2025-02-07

Family

ID=82177299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210475382.8A Active CN114710730B (en) 2022-04-29 2022-04-29 Volume prompt method, device, earphone and storage medium

Country Status (1)

Country Link
CN (1) CN114710730B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580678A (en) * 2022-09-30 2023-01-06 联想(北京)有限公司 Data processing method, device and equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM320270U (en) * 2006-12-19 2007-10-01 Bo-Ling Li Peripheral device of sound transceiver
CN105120063A (en) * 2015-07-13 2015-12-02 联想(北京)有限公司 Volume prompting method of input voice and electronic device
CN106162413A (en) * 2016-09-07 2016-11-23 合肥中感微电子有限公司 The Headphone device of specific environment sound prompting pattern
CN111742538A (en) * 2018-01-23 2020-10-02 索尼公司 Reminding method and device and electronic equipment
US20210076134A1 (en) * 2019-09-11 2021-03-11 Sivantos Pte. Ltd. Method for operating a hearing device, and hearing device
CN113411715A (en) * 2021-07-05 2021-09-17 歌尔科技有限公司 Prompting method for speaking sound volume, earphone and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM320270U (en) * 2006-12-19 2007-10-01 Bo-Ling Li Peripheral device of sound transceiver
CN105120063A (en) * 2015-07-13 2015-12-02 联想(北京)有限公司 Volume prompting method of input voice and electronic device
CN106162413A (en) * 2016-09-07 2016-11-23 合肥中感微电子有限公司 The Headphone device of specific environment sound prompting pattern
CN111742538A (en) * 2018-01-23 2020-10-02 索尼公司 Reminding method and device and electronic equipment
US20210076134A1 (en) * 2019-09-11 2021-03-11 Sivantos Pte. Ltd. Method for operating a hearing device, and hearing device
CN112492495A (en) * 2019-09-11 2021-03-12 西万拓私人有限公司 Method for operating a hearing device and hearing device
CN113411715A (en) * 2021-07-05 2021-09-17 歌尔科技有限公司 Prompting method for speaking sound volume, earphone and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580678A (en) * 2022-09-30 2023-01-06 联想(北京)有限公司 Data processing method, device and equipment

Also Published As

Publication number Publication date
CN114710730B (en) 2025-02-07

Similar Documents

Publication Publication Date Title
US11696063B2 (en) Automatic active noise reduction (ANR) control to improve user interaction
JP6381153B2 (en) User terminal and method and apparatus for adjusting volume of terminal
CN106162413B (en) The Headphone device of specific environment sound prompting mode
CN107580113B (en) Prompting method, prompting device, storage medium and terminal
CN110493678B (en) Earphone control method and device, earphone and storage medium
CN111464905A (en) Hearing enhancement method and system based on intelligent wearable device and wearable device
CN110678921A (en) Dynamic text-to-speech responses from smart speakers
CN106210960B (en) Headphone device with local call situation affirmation mode
CN109005480A (en) Information processing method and related product
US11252497B2 (en) Headphones providing fully natural interfaces
CN113422866B (en) Volume adjusting method and device, storage medium and electronic equipment
CN113949956A (en) Noise reduction processing method and device, electronic equipment, earphone and storage medium
US20210090548A1 (en) Translation system
CN107621933B (en) Audio playing method and device and related medium product
CN108777827A (en) Wireless headset, method for regulation of sound volume and Related product
CN111742538A (en) Reminding method and device and electronic equipment
CN108923810A (en) Translation method and related equipment
CN114710730B (en) Volume prompt method, device, earphone and storage medium
CN115209298A (en) Audio playing method, device, earphone and storage medium
WO2022001170A1 (en) Call prompting method, call device, readable storage medium and system on chip
CN111314553B (en) Volume adjustment method, device, terminal and storage medium
CN110493681B (en) Headphone device with full natural user interface and control method thereof
CN109511040B (en) Whisper amplifying method and device and earphone
CN114360546A (en) Electronic device and wake-up method thereof
CN111324331A (en) Interactive message prompting method and device, electronic device and 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