[go: up one dir, main page]

CN106331356B - A volume control method and terminal - Google Patents

A volume control method and terminal Download PDF

Info

Publication number
CN106331356B
CN106331356B CN201610754978.6A CN201610754978A CN106331356B CN 106331356 B CN106331356 B CN 106331356B CN 201610754978 A CN201610754978 A CN 201610754978A CN 106331356 B CN106331356 B CN 106331356B
Authority
CN
China
Prior art keywords
gain value
channel
right channel
left channel
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610754978.6A
Other languages
Chinese (zh)
Other versions
CN106331356A (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 CN201610754978.6A priority Critical patent/CN106331356B/en
Publication of CN106331356A publication Critical patent/CN106331356A/en
Application granted granted Critical
Publication of CN106331356B publication Critical patent/CN106331356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Stereophonic System (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例公开了一种音量控制方法及终端,其中,该音量控制方法可以包括:输出用于提示用户自定义左声道和/或右声道的增益数值的提示消息;并接收用户针对该提示消息输入的左声道和/或右声道的增益数值,可以以接收的左声道和/或右声道的增益数值输出音频数据。可见,本发明实施例可以使用户分别自定义左声道及右声道的增益数值,使得左声道及右声道可以具有不同的音量,改善了用户的使用体验。

The embodiment of the present invention discloses a volume control method and terminal, wherein the volume control method may include: outputting a prompt message for prompting a user to customize the gain value of the left channel and/or the right channel; and receiving the gain value of the left channel and/or the right channel input by the user in response to the prompt message, and outputting audio data with the received gain value of the left channel and/or the right channel. It can be seen that the embodiment of the present invention allows the user to customize the gain value of the left channel and the right channel respectively, so that the left channel and the right channel can have different volumes, thereby improving the user experience.

Description

一种音量控制方法及终端A volume control method and terminal

技术领域technical field

本发明涉及计算机技术领域,尤其涉及一种音量控制方法及终端。The present invention relates to the technical field of computers, and in particular, to a volume control method and a terminal.

背景技术Background technique

随着手机、平板及其他便携式设备的逐渐普及,人们随时随地都可以通过这些设备观看视频、听音乐、打电话等,为了避免对周围人的打扰,多使用耳机插入这些设备的耳机输出接口进行观看或收听。然而,在实践中发现,对于单耳有听力障碍的用户来说,这些设备在不同声道上固定的输出增益,影响了用户的收听体验。With the increasing popularity of mobile phones, tablets and other portable devices, people can watch videos, listen to music, make calls, etc. through these devices anytime, anywhere. watch or listen. However, it has been found in practice that, for users with hearing impairment in one ear, the fixed output gain of these devices on different channels affects the user's listening experience.

发明内容SUMMARY OF THE INVENTION

本发明实施例公开了一种音量控制方法及终端,能够改善用户的收听体验。Embodiments of the present invention disclose a volume control method and a terminal, which can improve a user's listening experience.

本发明实施例可以输出用于提示用户自定义左声道和/或右声道的增益数值的提示消息;并接收用户针对该提示消息输入的左声道和/或右声道的增益数值,可以以接收的左声道和/或右声道的增益数值输出音频数据。可见,本发明实施例可以使用户分别自定义左声道及右声道的增益数值,使得左声道及右声道可以具有不同的音量,改善了用户的使用体验。This embodiment of the present invention can output a prompt message for prompting the user to customize the gain value of the left channel and/or the right channel; and receive the gain value of the left channel and/or the right channel input by the user for the prompt message, Audio data may be output with the received gain values for the left and/or right channels. It can be seen that the embodiment of the present invention enables the user to customize the gain values of the left channel and the right channel respectively, so that the left channel and the right channel can have different volumes, which improves the user experience.

附图说明Description of drawings

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

图1是本发明实施例公开的一种音量控制方法的流程示意图;1 is a schematic flowchart of a volume control method disclosed in an embodiment of the present invention;

图2是本发明实施例公开的另一种音量控制方法的流程示意图;2 is a schematic flowchart of another volume control method disclosed in an embodiment of the present invention;

图3是本发明实施例公开的又一种音量控制方法的流程示意图;3 is a schematic flowchart of another volume control method disclosed in an embodiment of the present invention;

图4是本发明实施例公开的一种终端的结构示意图;4 is a schematic structural diagram of a terminal disclosed in an embodiment of the present invention;

图5是本发明实施例公开的另一种终端的结构示意图。FIG. 5 is a schematic structural diagram of another terminal disclosed in an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本发明实施例公开了一种音量控制方法及终端。Embodiments of the present invention disclose a volume control method and a terminal.

请参阅图1,图1是本发明实施例公开的一种音量控制方法的流程示意图。图1所示的音量控制方法可以包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a volume control method disclosed in an embodiment of the present invention. The volume control method shown in FIG. 1 may include the following steps:

S101、终端输出用于提示用户自定义左声道和/或右声道的增益数值的提示消息;S101. The terminal outputs a prompt message for prompting the user to customize the gain value of the left channel and/or the right channel;

S102、终端接收用户针对该提示消息输入的左声道和/或右声道的增益数值;S102, the terminal receives the gain value of the left channel and/or the right channel input by the user for the prompt message;

S103、终端以接收的左声道和/或右声道的增益数值输出音频数据。S103. The terminal outputs audio data with the received gain value of the left channel and/or the right channel.

本发明实施例中,终端可以为手机、平板电脑以及便携式设备等具有耳机输出接口的设备。声道是指声音在播放是在不同空间位置回放的相互独立的音频信号,目前,耳机多为双声道,即左声道和右声道。In the embodiment of the present invention, the terminal may be a device having an earphone output interface, such as a mobile phone, a tablet computer, and a portable device. Channels refer to independent audio signals that are played back at different spatial positions during playback. At present, headphones are mostly two-channel, that is, left and right channels.

本发明实施例中,该提示消息可以为语音消息,也可以为文字消息,其中,该提示消息可以以菜单栏的形式显示在终端的显示屏上,该菜单栏可以包括左声道和/或右声道可调节的增益数值范围,一般为-18dB至+18dB;还可以包括允许用户输入左声道和/或右声道的增益数值的编辑框,本发明实施例不做限定。In this embodiment of the present invention, the prompt message may be a voice message or a text message, wherein the prompt message may be displayed on the display screen of the terminal in the form of a menu bar, and the menu bar may include the left channel and/or The adjustable gain value range of the right channel is generally -18dB to +18dB; it may also include an edit box allowing the user to input the gain value of the left channel and/or the right channel, which is not limited in this embodiment of the present invention.

本发明实施例中,音频数据可以包括音乐文件的播放数据、语音通话数据等。In this embodiment of the present invention, the audio data may include playback data of a music file, voice call data, and the like.

可见,图1所示的音量控制方法可以输出用于提示用户自定义左声道和/或右声道的增益数值的提示消息,以及接收用户针对所述提示消息输入的左声道和/或右声道的增益数值,以用户输入的左声道和/或右声道的增益数值输出音频数据,使得左声道及右声道可以具有不同的音量,改善了用户的使用体验。It can be seen that the volume control method shown in FIG. 1 can output a prompt message for prompting the user to customize the gain value of the left channel and/or the right channel, and receive the left channel and/or the left channel and/or the user input for the prompt message. For the gain value of the right channel, the audio data is output with the gain value of the left channel and/or the right channel input by the user, so that the left channel and the right channel can have different volumes, which improves the user experience.

请参阅图2,图2是本发明实施例公开的另一种音量控制方法的流程示意图,如图2所示,该音量控制方法可以包括以下步骤:Please refer to FIG. 2, which is a schematic flowchart of another volume control method disclosed in an embodiment of the present invention. As shown in FIG. 2, the volume control method may include the following steps:

S201、终端检测其是否进入耳机模式;若进入耳机模式,则执行步骤S202否则,结束本流程。S201 , the terminal detects whether it enters the earphone mode; if it enters the earphone mode, step S202 is performed; otherwise, the process ends.

S202、终端输出用于提示用户自定义左声道和/或右声道的增益数值的提示消息;S202, the terminal outputs a prompt message for prompting the user to customize the gain value of the left channel and/or the right channel;

其中,终端还可以输出左声道和/或右声道的默认增益数值,或者,所述提示消息包括左声道和/或右声道的默认增益数值。The terminal may also output the default gain value of the left channel and/or the right channel, or the prompt message includes the default gain value of the left channel and/or the right channel.

S203、终端接收用户针对该提示消息输入的左声道和/或右声道的增益数值;S203, the terminal receives the gain value of the left channel and/or the right channel input by the user for the prompt message;

S204、终端将左声道和/或右声道的增益数值写入本端底层的XML文件中;S204, the terminal writes the gain value of the left channel and/or the right channel into the XML file of the bottom layer of the local end;

其中,可扩展标记语言(XML,Extensible Markup Language)文件是被用来传输或存储数据的,将用户自定义的左声道和/或右声道的增益数值写入本端底层的XML文件中,使得终端可以借助软件灵活改变左声道和/或右声道的增益数值,而不必采用改变电路阻值的方式改变左声道和/或右声道的增益数值,降低了操作难度。Among them, the Extensible Markup Language (XML, Extensible Markup Language) file is used to transmit or store data, and the user-defined gain value of the left channel and/or the right channel is written into the XML file at the bottom of the local end , so that the terminal can flexibly change the gain value of the left channel and/or the right channel with the help of software, without changing the gain value of the left channel and/or the right channel by changing the circuit resistance, which reduces the difficulty of operation.

S205、终端以接收的左声道和/或右声道的增益数值输出音频数据。S205. The terminal outputs audio data with the received gain value of the left channel and/or the right channel.

本发明实施例中,终端将左声道和/或右声道的增益数值写入本端底层的XML文件中,修改寄存器中左声道和/或右声道的增益,从而实时调整左声道和/或右声道的音量,由于对左声道和/或右声道的音量调节可以自定义不同的增益数值,因此,若用户双耳听力不同时,本发明实施例可以改善用户的使用体验。In the embodiment of the present invention, the terminal writes the gain value of the left channel and/or the right channel into the XML file of the bottom layer of the local end, and modifies the gain of the left channel and/or the right channel in the register, thereby adjusting the left channel in real time. Since the volume adjustment of the left channel and/or the right channel can customize different gain values, if the user’s binaural hearing is different, the embodiment of the present invention can improve the user’s Use experience.

请参阅图3,图3是本发明实施例公开的又一种音量控制方法的流程示意图,如图3所示,该音量控制方法可以包括以下步骤:Please refer to FIG. 3. FIG. 3 is a schematic flowchart of another volume control method disclosed in an embodiment of the present invention. As shown in FIG. 3, the volume control method may include the following steps:

S301、终端检测是否接收到音量调节指令;若检测出接收到音量调节指令,则执行步骤S302,否则结束本流程。S301. The terminal detects whether a volume adjustment instruction is received; if it is detected that a volume adjustment instruction is received, step S302 is performed, otherwise, the process ends.

S302、终端输出用于提示用户自定义左声道和/或右声道的增益数值的提示消息;S302, the terminal outputs a prompt message for prompting the user to customize the gain value of the left channel and/or the right channel;

其中,终端还可以输出左声道和/或右声道的默认增益数值,或者,所述提示消息包括左声道和/或右声道的默认增益数值。The terminal may also output the default gain value of the left channel and/or the right channel, or the prompt message includes the default gain value of the left channel and/or the right channel.

S303、终端接收用户针对该提示消息输入的左声道和/或右声道的增益数值;S303, the terminal receives the gain value of the left channel and/or the right channel input by the user for the prompt message;

S304、终端将左声道和/或右声道的增益数值写入本端底层的XML文件中;S304, the terminal writes the gain value of the left channel and/or the right channel into the XML file of the bottom layer of the local end;

S305、终端以接收的左声道和/或右声道的增益数值输出音频数据。S305. The terminal outputs audio data with the received gain value of the left channel and/or the right channel.

可选地,图1至图3所述的音量控制方法中,终端以接收的左声道和/或右声道的增益数值输出音频数据之后,可以隐藏之前输出的用于提示用户自定义左声道和/或右声道的增益数值的提示消息。例如,可以在接收到用户针对该提示消息的确定指令时,隐藏该提示消息。Optionally, in the volume control method described in Fig. 1 to Fig. 3, after the terminal outputs the audio data with the gain value of the left channel and/or the right channel received, it can hide the previously output for prompting the user to customize the left channel. A message indicating the gain value of the channel and/or the right channel. For example, the prompt message may be hidden when the user's determination instruction for the prompt message is received.

请参阅图4,图4是本发明实施例公开的一种终端,如图4所示,该终端可以包括以下模块:Please refer to FIG. 4. FIG. 4 is a terminal disclosed in an embodiment of the present invention. As shown in FIG. 4, the terminal may include the following modules:

输出模块401,用于输出用于提示用户自定义左声道和/或右声道的增益数值的提示消息;An output module 401, configured to output a prompt message for prompting the user to customize the gain value of the left channel and/or the right channel;

接收模块402,用于接收用户针对所述输出模块输出的提示消息输入的左声道和/或右声道的增益数值;A receiving module 402, configured to receive the gain value of the left channel and/or the right channel input by the user for the prompt message output by the output module;

该输出模块401,还用于以接收模块402接收的左声道和/或右声道的增益数值输出音频数据。The output module 401 is further configured to output audio data with the gain value of the left channel and/or the right channel received by the receiving module 402 .

作为一种可选的实施方式,该终端还可以包括:As an optional implementation manner, the terminal may further include:

第一检测模块403,用于检测是否进入耳机模式,若检测到进入耳机模式,则触发输出模块401输出用于提示用户自定义左声道和/或右声道的增益数值的提示消息。The first detection module 403 is used to detect whether the headphone mode is entered. If the headphone mode is detected, the output module 401 is triggered to output a prompt message for prompting the user to customize the gain value of the left channel and/or the right channel.

作为另一种可选的实施方式,该终端还可以包括:As another optional implementation manner, the terminal may further include:

第二检测模块404,用于检测是否接收到音量调节指令,若检测出接收到音量调节指令,则触发输出模块401输出用于提示用户自定义左声道和/或右声道的增益数值的提示消息。The second detection module 404 is used to detect whether a volume adjustment instruction is received, and if it is detected that the volume adjustment instruction is received, the output module 401 is triggered to output a value for prompting the user to customize the gain value of the left channel and/or the right channel Prompt message.

可选地,终端也可以同时具有第一检测模块403和第二检测模块404,可以在检测到进入耳机模式,或者接收到音量调节指令时,输出用于提示用户自定义左声道和/或右声道的增益数值的提示消息。Optionally, the terminal may also have a first detection module 403 and a second detection module 404, and when it is detected that the headphone mode is entered, or a volume adjustment instruction is received, the output is used to prompt the user to customize the left channel and/or A prompt message for the gain value of the right channel.

本发明实施例中,输出模块401,还用于在接收模块402接收到用户针对提示消息输入的左声道和/或右声道的增益数值之前,输出左声道和/或右声道的默认增益数值。In this embodiment of the present invention, the output module 401 is further configured to output the left channel and/or right channel gain value before the receiving module 402 receives the gain value of the left channel and/or the right channel input by the user for the prompt message. Default gain value.

本发明实施例中,该终端还可以包括:In this embodiment of the present invention, the terminal may further include:

写入模块405,用于在接收用户针对该提示消息输入的左声道和/或右声道的增益数值之后,以及以左声道和/或右声道的增益数值输出音频数据之前,将接收模块接收的左声道和/或右声道的增益数值写入本端底层的可扩展标记语言XML文件中。Write module 405 is used to receive after the gain value of the left channel and/or the right channel input by the user for this prompt message, and before outputting audio data with the gain value of the left channel and/or the right channel, The gain value of the left channel and/or the right channel received by the receiving module is written into the extensible markup language XML file at the bottom layer of the local end.

终端将左声道和/或右声道的增益数值写入本端底层的XML文件中,修改寄存器中左声道和/或右声道的增益,从而实时调整左声道和/或右声道的音量,由于对左声道和/或右声道的音量调节可以自定义不同的增益数值,因此,若用户双耳听力不同时,本发明实施例可以改善用户的使用体验。The terminal writes the gain value of the left channel and/or the right channel into the XML file at the bottom layer of the terminal, and modifies the gain of the left channel and/or the right channel in the register, thereby adjusting the left channel and/or the right channel in real time. Since the volume adjustment of the left channel and/or the right channel can customize different gain values, if the user's binaural hearing is different, the embodiment of the present invention can improve the user's use experience.

可选地,图4所述的终端以接收的左声道和/或右声道的增益数值输出音频数据之后,可以隐藏之前输出的用于提示用户自定义左声道和/或右声道的增益数值的提示消息。例如,可以在接收到用户针对该提示消息的确定指令时,隐藏该提示消息。Optionally, after the terminal described in Fig. 4 outputs the audio data with the gain value of the left channel and/or the right channel of reception, the previously outputted audio data for prompting the user to define the left channel and/or the right channel can be hidden. A prompt message for the gain value of . For example, the prompt message may be hidden when the user's determination instruction for the prompt message is received.

请参阅图5,图5是本发明实施例公开的另一种终端的结构示意图,如图5所示,该终端可以包括:至少一个处理器501,例如CPU,用户接口502,存储器503,至少一个通信总线504。其中,通信总线504用于实现这些组件之间的通信连接。存储器503可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器503可选的还可以是至少一个位于远离前述处理器501的存储装置。其中,处理器501可以结合图4所描述的终端,存储器503中存储一组程序代码,处理器501调用存储器503中存储的程序代码,用于执行以下操作:Please refer to FIG. 5. FIG. 5 is a schematic structural diagram of another terminal disclosed in an embodiment of the present invention. As shown in FIG. 5, the terminal may include: at least one processor 501, such as a CPU, a user interface 502, a memory 503, at least one A communication bus 504 . Among them, the communication bus 504 is used to realize the communication connection between these components. The memory 503 may be a high-speed RAM memory, or a non-volatile memory, such as at least one disk memory. Optionally, the memory 503 may also be at least one storage device located away from the aforementioned processor 501 . Wherein, the processor 501 can be combined with the terminal described in FIG. 4, a group of program codes are stored in the memory 503, and the processor 501 calls the program codes stored in the memory 503 to perform the following operations:

输出用于提示用户自定义左声道和/或右声道的增益数值的提示消息;Output a prompt message for prompting the user to customize the gain value of the left channel and/or the right channel;

接收用户针对所述提示消息输入的左声道和/或右声道的增益数值;receiving the gain value of the left channel and/or the right channel input by the user for the prompt message;

以所述左声道和/或右声道的增益数值输出音频数据。Audio data is output with the gain value of the left channel and/or right channel.

本发明实施例中,处理器501调用存储器503中的程序代码,还可以执行以下步骤:In this embodiment of the present invention, the processor 501 calls the program code in the memory 503, and may also perform the following steps:

检测是否进入耳机模式;Detect whether to enter the headset mode;

若检测到进入耳机模式,则执行所述输出用于提示用户自定义左声道和/或右声道的增益数值的提示消息的步骤。If it is detected that the headphone mode is entered, the step of outputting a prompt message for prompting the user to customize the gain value of the left channel and/or the right channel is performed.

本发明实施例中,处理器501调用存储器503中的程序代码,还可以执行以下步骤:In this embodiment of the present invention, the processor 501 calls the program code in the memory 503, and may also perform the following steps:

检测是否接收到音量调节指令;Detect whether a volume adjustment command is received;

若检测出接收到音量调节指令,则执行所述输出用于提示用户自定义左声道和/或右声道的增益数值的提示消息的步骤。If it is detected that the volume adjustment instruction is received, the step of outputting a prompt message for prompting the user to customize the gain value of the left channel and/or the right channel is performed.

本发明实施例中,处理器501调用存储器503中的程序代码,所述接收用户针对所述提示消息输入的左声道和/或右声道的增益数值之前,还可以执行以下步骤:In this embodiment of the present invention, the processor 501 calls the program code in the memory 503, and before receiving the gain value of the left channel and/or the right channel input by the user for the prompt message, the following steps may also be performed:

输出所述左声道和/或所述右声道的默认增益数值。Default gain values for the left channel and/or the right channel are output.

本发明实施例中,处理器501调用存储器503中的程序代码,所述接收用户针对所述提示消息输入的左声道和/或右声道的增益数值之后,以及以所述左声道和/或右声道的增益数值输出音频数据之前,还可以执行以下步骤:In this embodiment of the present invention, the processor 501 invokes the program code in the memory 503, after receiving the gain value of the left channel and/or the right channel input by the user for the prompt message, and using the left channel and/or the gain value of the right channel / or the gain value of the right channel before outputting audio data, you can also perform the following steps:

将所述左声道和/或右声道的增益数值写入本端底层的可扩展标记语言XML文件中。Write the gain value of the left channel and/or the right channel into the extensible markup language XML file at the bottom layer of the local end.

其中,可扩展标记语言(XML,Extensible Markup Language)文件是被用来传输或存储数据的,将用户自定义的左声道和/或右声道的增益数值写入本端底层的XML文件中,使得处理器501可以灵活调整左声道和/或右声道的增益数值,而不必采用改变电路阻值的方式改变左声道和/或右声道的增益数值,降低了操作难度。Among them, the Extensible Markup Language (XML, Extensible Markup Language) file is used to transmit or store data, and the user-defined gain value of the left channel and/or the right channel is written into the XML file at the bottom of the local end , so that the processor 501 can flexibly adjust the gain value of the left channel and/or the right channel without changing the gain value of the left channel and/or the right channel by changing the circuit resistance, which reduces the difficulty of operation.

可选地,图4和图5所述的终端以接收的左声道和/或右声道的增益数值输出音频数据之后,可以隐藏之前输出的用于提示用户自定义左声道和/或右声道的增益数值的提示消息。例如,可以在接收到用户针对该提示消息的确定指令时,隐藏该提示消息。Optionally, after the terminal described in Fig. 4 and Fig. 5 outputs the audio data with the gain value of the left channel and/or the right channel of reception, the previously output can be hidden for prompting the user to define the left channel and/or A prompt message for the gain value of the right channel. For example, the prompt message may be hidden when the user's determination instruction for the prompt message is received.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random AccessMemory,RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), magnetic disk or optical disk, etc.

以上对本发明实施例公开的一种音量控制方法及终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A volume control method and a terminal disclosed in the embodiments of the present invention are described above in detail. The principles and implementations of the present invention are described with specific examples in this paper. The descriptions of the above embodiments are only used to help understand the present invention. method and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. Invention limitations.

Claims (8)

1. A method of volume control, comprising:
outputting a prompt message for prompting a user to play back the gain values of the left channel and/or the right channel of the audio signals which are independent of each other and are played back at different spatial positions when the user-defined earphone plays the sound;
receiving a left channel and/or right channel gain value input by a user aiming at the prompt message;
writing the gain value of the left channel and/or the right channel into an extensible markup language (XML) file of a bottom layer of a home terminal to respectively modify the gain of the left channel and/or the right channel in a register, wherein the XML file is used for transmitting or storing data, and the gain value of the left channel and/or the right channel is written into the XML file of the bottom layer of the home terminal to replace the change mode of a circuit resistance value to adjust the gain value of the left channel and/or the right channel;
and audio data is output according to the gain value of the left channel and/or the right channel and is output from the left channel and/or the right channel corresponding to the earphone, and the prompt message prompting the user to customize the gain value of the left channel and/or the right channel is hidden when a determination instruction of the user for the prompt message is received.
2. The method of claim 1, further comprising:
detecting whether to enter an earphone mode;
and if the earphone mode is detected to be entered, executing the step of outputting a prompt message for prompting the user to self-define the gain value of the left channel and/or the right channel.
3. The method of claim 1, further comprising:
detecting whether a volume adjusting instruction is received;
and if the received volume adjusting instruction is detected, executing the step of outputting a prompt message for prompting the user to define the gain value of the left channel and/or the right channel by user definition.
4. The method according to any one of claims 1 to 3, wherein before receiving the left channel and/or right channel gain value input by the user for the prompt message, the method further comprises:
outputting a default gain value for the left channel and/or the right channel.
5. A terminal, comprising:
the output module is used for outputting prompt messages for prompting the user to play back the gain values of the left channel and/or the right channel of the audio signals which are independent of each other and are played back at different spatial positions when the user-defined earphone plays the sound;
the receiving module is used for receiving the gain value of the left channel and/or the right channel input by the user aiming at the prompt message output by the output module;
the writing module is used for writing the gain value of the left channel and/or the right channel into an extensible markup language (XML) file of a bottom layer of a local terminal to respectively modify the gain of the left channel and/or the right channel in a register, wherein the XML file is used for transmitting or storing data, and the gain value of the left channel and/or the right channel is written into the XML file of the bottom layer of the local terminal to replace the change mode of a circuit resistance value to adjust the gain value of the left channel and/or the right channel;
the output module is further configured to output audio data according to the gain value of the left channel and/or the right channel received by the receiving module and output the audio data from the left channel and/or the right channel corresponding to the earphone, and hide the prompt message prompting the user to customize the gain value of the left channel and/or the right channel when receiving a determination instruction for the prompt message from the user.
6. The terminal of claim 5, further comprising:
and the first detection module is used for detecting whether to enter an earphone mode, and if the earphone mode is detected to enter, executing the step of outputting a prompt message for prompting a user to define the gain value of the left channel and/or the right channel by user definition.
7. The terminal of claim 5, further comprising:
and the second detection module is used for detecting whether a volume adjustment instruction is received or not, and if the volume adjustment instruction is detected to be received, executing the step of outputting a prompt message for prompting a user to define the gain value of the left channel and/or the right channel by user definition.
8. The terminal according to any one of claims 5 to 7, wherein the output module is further configured to output a default gain value of the left channel and/or the right channel before the receiving the gain value of the left channel and/or the right channel input by the user for the prompt message.
CN201610754978.6A 2016-08-29 2016-08-29 A volume control method and terminal Active CN106331356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610754978.6A CN106331356B (en) 2016-08-29 2016-08-29 A volume control method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610754978.6A CN106331356B (en) 2016-08-29 2016-08-29 A volume control method and terminal

Publications (2)

Publication Number Publication Date
CN106331356A CN106331356A (en) 2017-01-11
CN106331356B true CN106331356B (en) 2019-12-31

Family

ID=57788485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610754978.6A Active CN106331356B (en) 2016-08-29 2016-08-29 A volume control method and terminal

Country Status (1)

Country Link
CN (1) CN106331356B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111190568A (en) * 2019-12-30 2020-05-22 上海摩软通讯技术有限公司 Volume adjusting method and device
CN113411707A (en) * 2021-06-17 2021-09-17 歌尔智能科技有限公司 Auxiliary listening earphone, control method, device and system thereof, and readable medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267222A (en) * 2007-03-13 2008-09-17 智多微电子(上海)有限公司 Device for controlling multi-channel sound signal volume adjustment in mobile device sound mixing device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325216B (en) * 2011-06-29 2015-07-15 惠州Tcl移动通信有限公司 Mobile communication equipment and volume control method thereof
CN103258548B (en) * 2012-02-15 2017-09-19 富泰华工业(深圳)有限公司 Audio playback device and control method thereof
CN105812980A (en) * 2016-04-21 2016-07-27 歌尔声学股份有限公司 Earphone

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101267222A (en) * 2007-03-13 2008-09-17 智多微电子(上海)有限公司 Device for controlling multi-channel sound signal volume adjustment in mobile device sound mixing device

Also Published As

Publication number Publication date
CN106331356A (en) 2017-01-11

Similar Documents

Publication Publication Date Title
CN109445740B (en) Audio playback method, device, electronic device and storage medium
CN107509153B (en) Detection method and device of sound playing device, storage medium and terminal
KR101731714B1 (en) Method and headset for improving sound quality
CN107562405B (en) Audio playback control method, device, storage medium and mobile terminal
WO2017032030A1 (en) Volume adjusting method and user terminal
US9277320B1 (en) Managing and using headset profiles for different headsets
KR20110054609A (en) Remote control method and apparatus of a Bluetooth device
CN103078997A (en) Mobile terminal volume setting method, system and mobile terminal
CN106354471A (en) Method and device for audio play control and electronic device
WO2020252973A1 (en) Wireless earphone noise reduction method and system, wireless earphone and storage medium
CN110784804B (en) Wireless earphone noise reduction calibration method and device, earphone box and storage medium
CN105741862A (en) Method and device for recording audios through mobile terminal and mobile terminal
CN107371102A (en) Audio playback volume control method, device, storage medium and mobile terminal
CN104113816A (en) Electronic device and earphone detection method
CN105741863B (en) The method and apparatus and mobile terminal that a kind of audio frequency of mobile terminal plays
CN112840678B (en) Stereo playing method, device, storage medium and electronic equipment
CN107404587B (en) Audio playing control method, audio playing control device and mobile terminal
CN106331356B (en) A volume control method and terminal
CN111190568A (en) Volume adjusting method and device
CN113852780B (en) Audio data processing method and electronic equipment
CN107205095A (en) Voice information playback method, device and terminal
CN113660599B (en) Speaker control method, device, mobile terminal and storage medium
CN114420158A (en) Model training method and device, target frequency response information determination method and device
CN107566595A (en) Volume control method, device and storage medium of mobile terminal and mobile terminal
WO2017185602A1 (en) Earphone mode switching method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant