CN106331356B - Volume control method and terminal - Google Patents

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
channel
gain value
right channel
user
left channel
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; CALCULATING OR 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 Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Environmental & Geological Engineering (AREA)
  • Stereophonic System (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention discloses a volume control method and a terminal, wherein the volume control method comprises the following steps: outputting a prompt message for prompting a user to customize the gain value of the left channel and/or the right channel; and receives the gain value of the left channel and/or the right channel input by the user for the prompt message, and may output audio data with the received gain value of the left channel and/or the right channel. Therefore, the embodiment of the invention can enable the user to respectively define the gain values of the left channel and the right channel, so that the left channel and the right channel can have different volumes, and the use experience of the user is improved.

Description

Volume control method and terminal
Technical Field
The invention relates to the technical field of computers, in particular to a volume control method and a terminal.
Background
With the increasing popularity of mobile phones, tablets and other portable devices, people can watch videos, listen to music, make calls and the like through the devices anytime and anywhere, and in order to avoid disturbing surrounding people, earphones are often used to be inserted into earphone output interfaces of the devices for watching or listening. However, in practice, it has been found that for a user with a single hearing impairment, the fixed output gain of these devices on different channels affects the listening experience of the user.
Disclosure of Invention
The embodiment of the invention discloses a volume control method and a terminal, which can improve the listening experience of a user.
The embodiment of the invention can output a prompt message for prompting the user to self-define the gain value of the left channel and/or the right channel; and receives the gain value of the left channel and/or the right channel input by the user for the prompt message, and may output audio data with the received gain value of the left channel and/or the right channel. Therefore, the embodiment of the invention can enable the user to respectively define the gain values of the left channel and the right channel, so that the left channel and the right channel can have different volumes, and the use experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a volume control method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another volume control method disclosed in the embodiment of the present invention;
FIG. 3 is a flow chart of another volume control method according to the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of another terminal disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a volume control method and a terminal.
Referring to fig. 1, fig. 1 is a flow chart illustrating a volume control method according to an embodiment of the present invention. The volume control method shown in fig. 1 may include the steps of:
s101, a terminal outputs a prompt message for prompting a user to customize a gain value of a left channel and/or a right channel;
s102, the terminal receives the gain value of the left channel and/or the right channel input by the user aiming at the prompt message;
and S103, the terminal outputs audio data according to the received gain values of the left channel and/or the right channel.
In the embodiment of the invention, the terminal can be a mobile phone, a tablet computer, a portable device and other devices with earphone output interfaces. The sound channel refers to the audio signals that are independent from each other and that are played back at different spatial positions, and at present, headphones mostly have two channels, i.e. a left channel and a right channel.
In the embodiment of the invention, the prompt message can be a voice message or a text message, wherein the prompt message can be displayed on a display screen of the terminal in the form of a menu bar, and the menu bar can comprise an adjustable gain value range of a left sound channel and/or a right sound channel, generally from-18 dB to +18 dB; an edit box may also be included to allow a user to input a gain value for the left channel and/or the right channel, which is not limited in the embodiments of the present invention.
In the embodiment of the present invention, the audio data may include playing data of a music file, voice call data, and the like.
It can be seen that the volume control method shown in fig. 1 may output a prompt message for prompting a user to customize a gain value of a left channel and/or a right channel, and receive a gain value of the left channel and/or the right channel input by the user for the prompt message, and output audio data according to 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 may have different volumes, which improves the user experience.
Referring to fig. 2, fig. 2 is a schematic flow chart of another volume control method according to an embodiment of the present invention, and as shown in fig. 2, the volume control method may include the following steps:
s201, the terminal detects whether the terminal enters an earphone mode; if the earphone mode is entered, step S202 is executed, otherwise, the process is ended.
S202, the terminal outputs a prompt message for prompting a user to self-define the gain value of the left channel and/or the right channel;
the terminal may further output a 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, the terminal receives the gain value of the left channel and/or the right channel input by the user aiming at the prompt message;
s204, the terminal writes the gain value of the left channel and/or the right channel into an XML file of the bottom layer of the terminal;
the Extensible Markup Language (XML) file is used for transmitting or storing 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 layer of the terminal, so that the terminal can flexibly change the gain value of the left channel and/or the right channel by means of software, the gain value of the left channel and/or the right channel does not need to be changed by changing the resistance value of a circuit, and the operation difficulty is reduced.
And S205, the terminal outputs the audio data according to the received gain value of the left channel and/or the right channel.
In the embodiment of the invention, 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, so that the volume of the left channel and/or the right channel is adjusted in real time.
Referring to fig. 3, fig. 3 is a schematic flow chart of another volume control method according to an embodiment of the present invention, and as shown in fig. 3, the volume control method may include the following steps:
s301, the terminal detects whether a volume adjusting instruction is received; if the volume adjustment instruction is detected to be received, step S302 is executed, otherwise, the process is ended.
S302, the terminal outputs a prompt message for prompting a user to self-define the gain value of the left channel and/or the right channel;
the terminal may further output a 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, the terminal receives the gain value of the left channel and/or the right channel input by the user aiming at the prompt message;
s304, the terminal writes the gain value of the left channel and/or the right channel into an XML file of the bottom layer of the terminal;
and S305, the terminal outputs the audio data according to the received gain value of the left channel and/or the right channel.
Alternatively, in the volume control method described in fig. 1 to 3, after the terminal outputs the audio data with the received gain value of the left channel and/or the right channel, a prompting message for prompting the user to customize the gain value of the left channel and/or the right channel, which is output before, may be hidden. For example, the prompting message may be hidden upon receiving a user-determined instruction for the prompting message.
Referring to fig. 4, fig. 4 is a terminal according to an embodiment of the present invention, and as shown in fig. 4, the terminal may include the following modules:
an output module 401, configured to output a prompt message for prompting a user to customize a gain value of a left channel and/or a right channel;
a receiving module 402, configured to receive a left channel and/or a right channel gain value input by a user for the prompt message output by the output module;
the output module 401 is further configured to output the 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, the terminal may further include:
the first detecting module 403 is configured to detect whether to enter the headphone mode, and if it is detected that the headphone mode is entered, trigger the output module 401 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, the terminal may further include:
a second detecting module 404, configured to detect whether a volume adjusting instruction is received, and if it is detected that the volume adjusting instruction is received, trigger the output module 401 to output a prompt message for prompting the user to customize the gain value of the left channel and/or the right channel.
Optionally, the terminal may also have the first detection module 403 and the second detection module 404, and may output a prompt message for prompting the user to customize the gain value of the left channel and/or the right channel when the earphone mode is detected to be entered, or when a volume adjustment instruction is received.
In this embodiment of the present invention, the output module 401 is further configured to output a default gain value of the left channel and/or the right channel 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.
In this embodiment of the present invention, the terminal may further include:
a writing module 405, configured to write the gain value of the left channel and/or the right channel received by the receiving module into an XML file of the underlying XML file of the local end after receiving the gain value of the left channel and/or the right channel input by the user for the prompt message and before outputting the audio data with the gain value of the left channel and/or the right channel.
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, so that the volume of the left channel and/or the right channel is adjusted in real time.
Alternatively, after the terminal described in fig. 4 outputs the audio data with the received gain values of the left channel and/or the right channel, the prompting message for prompting the user to customize the gain values of the left channel and/or the right channel, which is output before, may be hidden. For example, the prompting message may be hidden upon receiving a user-determined instruction for the prompting message.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another terminal disclosed in the embodiment of the present invention, and as shown in fig. 5, the terminal may include: at least one processor 501, e.g., a CPU, a user interface 502, a memory 503, at least one communication bus 504. Wherein a communication bus 504 is used to enable communication connections between these components. The memory 503 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 503 may optionally be at least one storage device located remotely from the processor 501. Wherein, the processor 501 can be combined with the terminal described in fig. 4, the memory 503 stores a set of program codes, and the processor 501 calls the program codes stored in the memory 503 to execute the following operations:
outputting a prompt message for prompting a user to customize the gain value of the left channel and/or the right channel;
receiving a left channel and/or right channel gain value input by a user aiming at the prompt message;
and outputting audio data according to the gain value of the left channel and/or the right channel.
In this embodiment of the present invention, the processor 501 calls the program code in the memory 503, and may further perform the following steps:
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.
In this embodiment of the present invention, the processor 501 calls the program code in the memory 503, and may further perform the following steps:
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.
In this embodiment of the present invention, before the processor 501 calls the program code in the memory 503 and receives the left channel and/or right channel gain value input by the user for the prompt message, the following steps may be further performed:
outputting a default gain value for the left channel and/or the right channel.
In this embodiment of the present invention, after the processor 501 invokes the program code in the memory 503, and after receiving the gain value of the left channel and/or the right channel input by the user for the prompt message, and before outputting the audio data according to the gain value of the left channel and/or the right channel, the following steps may be further performed:
and writing the gain value of the left sound channel and/or the right sound channel into an extensible markup language (XML) file at the bottom layer of the local terminal.
The Extensible Markup Language (XML) 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 of the bottom layer of the local terminal, so that the processor 501 can flexibly adjust the gain value of the left channel and/or the right channel without changing the circuit resistance value, thereby reducing the operation difficulty.
Alternatively, after the terminal described in fig. 4 and 5 outputs the audio data with the received gain values of the left channel and/or the right channel, the prompting message for prompting the user to customize the gain values of the left channel and/or the right channel, which is output before, may be hidden. For example, the prompting message may be hidden upon receiving a user-determined instruction for the prompting message.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The volume control method and the terminal disclosed in the embodiments of the present invention are described in detail above, and the principle and the implementation of the present invention are explained in the present document by applying specific examples, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

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 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 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 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 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 playing apparatus and its control method
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
CN107562405B (en) Audio playing control method and device, storage medium and mobile terminal
WO2017032030A1 (en) Volume adjusting method and user terminal
US9756439B2 (en) Method and devices for outputting an audio file
EP3664291A1 (en) Audio signal adjustment method and device, storage medium, and terminal
US20180253274A1 (en) Method for Muting and Electronic Device
KR20110054609A (en) Method and apparatus for remote controlling of bluetooth device
KR20140074549A (en) Method and apparatus for providing context aware service using speech recognition
US10073672B2 (en) Method, system, and computer storage medium for voice control of a split-screen terminal
CN107633849B (en) Bluetooth device volume adjusting method, device and computer readable storage medium
US10140086B2 (en) Electronic device and audio ouputting method thereof
KR102187195B1 (en) Video display method and user terminal for creating subtitles based on ambient noise
CN107799113B (en) Audio processing method and device, storage medium and mobile terminal
US20220326903A1 (en) Audio output method, electronic device and computer-readable storage medium
US9332370B2 (en) Method and apparatus for using spatial audio rendering for a parallel playback of call audio and multimedia content
CN103986813A (en) Volume setting method and mobile terminal
CN103929692B (en) Audio information processing method and electronic equipment
CN107404587B (en) Audio playing control method, audio playing control device and mobile terminal
CN106331356B (en) Volume control method and terminal
CN104754099A (en) Conversation volume adjusting method
CN111190568A (en) Volume adjusting method and device
CN112840678B (en) Stereo playing method, device, storage medium and electronic equipment
CN108650592B (en) Method for realizing neck strap type surround sound and stereo control system
CN106657621A (en) Sound signal adaptive adjustment device and sound signal adaptive adjustment method
CN107391733B (en) Music file fast grouping method, music file fast grouping device and terminal
CN113660599A (en) Loudspeaker control method and device, mobile terminal and storage medium

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant