CN115623390A - Volume control method and device, electronic equipment and storage medium - Google Patents

Volume control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115623390A
CN115623390A CN202211230369.2A CN202211230369A CN115623390A CN 115623390 A CN115623390 A CN 115623390A CN 202211230369 A CN202211230369 A CN 202211230369A CN 115623390 A CN115623390 A CN 115623390A
Authority
CN
China
Prior art keywords
target
volume
volume parameter
parameter
audio file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211230369.2A
Other languages
Chinese (zh)
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202211230369.2A priority Critical patent/CN115623390A/en
Publication of CN115623390A publication Critical patent/CN115623390A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • 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/165Management of the audio stream, e.g. setting of volume, audio stream path
    • 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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • 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/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the application discloses a volume control method, a volume control device, electronic equipment and a storage medium, wherein a target instruction for indicating that a target audio file is played in a target channel is obtained, and a target volume parameter is obtained if an adjustment condition is met based on the target instruction; playing the target audio file in the target channel based on the target volume parameter; wherein the adjustment condition characterizes that the first channel is playing the first audio file based on the first volume parameter; the target channel is different from the first channel, the target volume parameter belongs to a target range, and the target range comprises a volume parameter corresponding to the first volume parameter.

Description

Volume control method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of control technologies, and in particular, to a volume control method and apparatus, an electronic device, and a storage medium.
Background
Currently, a user adjusts the audio output volume of the electronic device according to the requirements of a use scene during the use of the electronic device. In some electronic devices, the volume of the multimedia audio and the volume of the alert tone are adjusted through different ways, and when a user adjusts the audio output volume of the electronic device, the user may only adjust the volume of the multimedia audio and forget to adjust the volume of the alert tone, which causes the volume of the alert tone output by the electronic device to be higher or lower, so that the user suddenly hears a loud alert tone, or cannot hear the alert tone immediately, and the intelligence of volume control is lower, which causes trouble to the user.
Disclosure of Invention
The application aims to provide a volume control method, a volume control device, electronic equipment and a storage medium, and the method comprises the following technical scheme:
a method of volume control, the method comprising:
obtaining a target instruction, wherein the target instruction is used for indicating that a target audio file is played in a target channel;
based on the target instruction, if an adjusting condition is met, obtaining a target volume parameter; the adjustment condition characterizes that the first channel is playing a first audio file based on a first volume parameter;
playing the target audio file in the target channel based on the target volume parameter; the target channel is different from the first channel, the target volume parameter belongs to a target range, and the target range comprises a volume parameter corresponding to the first volume parameter.
The above method, preferably, further comprises:
if the adjustment condition is not met, a second volume parameter corresponding to the target channel is obtained;
playing the target audio file in the target channel based on the second volume parameter.
In the above method, preferably, the obtaining the target volume parameter includes:
and obtaining a target volume parameter determined based on the first volume parameter and a second volume parameter corresponding to the target channel.
The above process, preferably, wherein,
if the difference between the second volume represented by the second volume parameter and the first volume represented by the first volume parameter is larger than a first threshold value, determining the target volume parameter based on the first volume parameter and the second volume parameter;
and the difference between the third volume represented by the target volume parameter and the first volume is smaller than the difference between the second volume parameter and the first volume.
In the above method, preferably, the playing the target audio file in the target channel based on the target volume parameter includes:
and if the second volume represented by the second volume parameter is larger than or equal to the first volume represented by the first volume parameter, continuously playing the target audio file in the target channel based on the target volume parameter.
In the above method, preferably, the playing the target audio file in the target channel based on the target volume parameter includes:
if the second volume represented by the second volume parameter is less than or equal to the first volume represented by the first volume parameter, continuously playing the target audio file in the target channel based on the target volume parameter;
alternatively, the first and second liquid crystal display panels may be,
if the second volume represented by the second volume parameter is less than or equal to the first volume represented by the first volume parameter, in the process of gradually adjusting the volume parameter to the target volume parameter from the second volume parameter, the target audio file is played in the target channel based on the adjusted volume parameter every time the volume parameter is adjusted.
The above method, preferably, further comprises:
pausing the playing of the first audio file in the first channel based on the first volume parameter;
alternatively, the first and second electrodes may be,
playing the first audio file in the first channel based on a third volume parameter; a fourth volume represented by the third volume parameter is smaller than a third volume represented by the target volume parameter;
alternatively, the first and second electrodes may be,
continuing to play the first audio file in the first channel based on the first volume parameter.
A volume control device, the device comprising:
the instruction obtaining module is used for obtaining a target instruction, and the target instruction is used for indicating that a target audio file is played in a target channel;
a parameter obtaining module, configured to obtain a target volume parameter if an adjustment condition is met based on the target instruction; the adjustment condition characterizes that the first channel is playing a first audio file based on a first volume parameter;
a control module for playing the target audio file in the target channel based on the target volume parameter; the target channel is different from the first channel, the target volume parameter belongs to a target range, and the target range comprises a volume parameter corresponding to the first volume parameter.
An electronic device, comprising:
a memory for storing a program;
and the processor is used for calling and executing the program in the memory, and realizing the steps of the volume control method according to any one of the above items by executing the program.
A readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the volume control method as claimed in any one of the preceding claims.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required 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 application, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a flowchart of an implementation of a volume control method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a volume control device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in other sequences than described or illustrated herein.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 inventive step, are within the scope of the present disclosure.
The volume control method provided by the embodiment of the application can be used in electronic equipment, the electronic equipment is provided with an audio output device, at least two channels for playing audio files and at least two audio output scenes, and the audio files played by different channels can correspond to different audio output scenes. The audio output scenarios supported by the electronic device may include, but are not limited to, at least two of the following: an alert tone (e.g., incoming call alert tone, information alert tone, notification alert tone, etc.) output scene, an alarm clock ring tone output scene, a multimedia audio (e.g., audio, video, game, etc.) output scene, a conversation tone output scene, a smart voice (e.g., navigation voice, etc.) output scene, etc.
The electronic device may be a mobile terminal (e.g., a mobile phone, a tablet computer, a notebook computer, etc.), a desktop computer, or a vehicle-mounted computer, etc.
As shown in fig. 1, a flowchart for implementing a volume control method provided in an embodiment of the present application may include:
step S101: and obtaining a target instruction, wherein the target instruction is used for indicating that the target audio file is played in the target channel.
The electronic equipment can obtain the target instruction when the target audio file playing condition is met. As an example, satisfying the target audio file playing condition may include, but is not limited to, any one of:
receiving an incoming call request, and outputting an incoming call prompt tone;
receiving a voice call request, and outputting a voice request prompt tone;
receiving a video call request, and outputting a video request prompt tone;
receiving a short message, and outputting a message prompt tone;
receiving the notification message, and outputting a notification prompt tone;
when the preset time is reached, the ring tone of the alarm clock needs to be output;
satisfy wisdom pronunciation output condition, need output wisdom pronunciation.
Step S102: based on the target instruction, if the adjustment condition is satisfied, a target volume parameter is obtained. Wherein the adjustment condition characterizes that the first channel is playing the first audio file based on the first volume parameter. The target channel is different from the first channel; the target volume parameter belongs to a target range, and the target range includes a volume parameter corresponding to the first volume parameter.
The volume parameter corresponding to the first volume parameter comprises: and the volume parameter with the difference from the first volume parameter smaller than a second threshold value. That is, the volume parameters within the target range include: a first volume parameter, and a volume parameter located near the first volume parameter. The target volume parameter belongs to the target range, and therefore, the target volume parameter is the first volume parameter, or the target volume parameter is located near the first volume parameter.
That is, when the target instruction is obtained, if the first channel is playing the first audio file based on the first volume parameter, the target volume parameter in the target range is obtained.
By way of example, the first channel may be a channel for multimedia audio (which may include, but is not limited to, pure audio such as music, phase sounds, recordings, etc.; video, games, etc.) output scenes.
Step S103: and playing the target audio file in the target channel based on the target volume parameter.
Because the target volume parameter is within the target range, the volume when the audio file is played in the target channel based on the target volume parameter is similar to the volume when the first audio file is played in the first channel based on the first volume parameter.
According to the volume control method provided by the embodiment of the application, after a target instruction for indicating that a target audio file is played by a target channel is obtained, if a first audio file is being played by a first channel based on a first volume parameter, the target audio file is played by the target channel based on the target volume parameter in a target range, and the target range comprises the volume parameter corresponding to the first volume parameter, so that the volume when the target audio file is played is close to the volume when the first audio file is played, and the first volume parameter based on which the first audio file is played is the volume parameter set by a user for the first channel according to actual needs.
In an optional embodiment, further, based on the target instruction, if the adjustment condition is not satisfied, a second volume parameter corresponding to the target channel is obtained. The second volume parameter corresponding to the target channel is the volume parameter set by the user for the second channel.
And playing the target audio file in the target channel based on the second volume parameter.
That is to say, when the target instruction is obtained, the target audio file is not directly played by using the second volume parameter corresponding to the target channel, but whether the first channel is playing the first audio file based on the first volume parameter is firstly judged, if yes, the target volume parameter is obtained, and then the target audio file is played by using the target channel based on the target volume parameter; and if not, acquiring a second volume parameter corresponding to the target channel, and playing the target audio file in the target channel based on the second volume parameter. Therefore, when the target instruction is obtained, volume parameters based on which the target audio file is played in the target channel are different according to whether the adjustment condition is met.
In an optional embodiment, one implementation manner of obtaining the target volume parameter may be:
and obtaining a second volume parameter corresponding to the target channel based on the first volume parameter to determine the target volume parameter. That is, the target volume parameter is determined according to the first volume parameter and the second volume parameter.
Optionally, after the first channel starts playing the first audio file based on the first volume parameter, before the target instruction is obtained, the target volume parameter may be determined based on the first volume parameter and the second volume parameter corresponding to the target channel, and after the target volume parameter is determined, the target volume parameter is stored in association with the target channel. Therefore, when the target volume parameter needs to be obtained, the target volume parameter can be directly read in the storage device.
Alternatively, the first and second electrodes may be,
the target volume parameter may be determined based on the first volume parameter and the second volume parameter corresponding to the target channel after the target instruction is obtained.
In an optional embodiment, if a difference between a second volume represented by the second volume parameter and a first volume represented by the first volume parameter is greater than a first threshold, determining a target volume parameter based on the first volume parameter and the second volume parameter;
the difference between the third volume and the first volume represented by the target volume parameter is smaller than the difference between the second volume parameter and the first volume. As an example, the difference between the third volume and the first volume characterized by the target volume parameter is less than or equal to the first threshold.
And if the difference between the second volume represented by the second volume parameter and the first volume represented by the first volume parameter is smaller than or equal to a first threshold value, determining the second volume parameter as the target volume parameter.
That is, in determining the target volume parameter, it is ensured that the volume characterized by the target volume parameter is close to or equal to the first volume characterized by the first volume parameter. Based on this, if the difference between the second volume represented by the second volume parameter and the first volume represented by the first volume parameter is smaller than or equal to the first threshold, it is indicated that the second volume represented by the second volume parameter is close to the first volume, and at this time, the second volume parameter is directly determined as the target volume parameter.
As an example, when determining the target volume parameter based on the first volume parameter, and the second volume parameter,
if the second volume represented by the second volume parameter is greater than or equal to the first volume represented by the first volume parameter, the third volume represented by the determined target volume parameter may be greater than or equal to the first volume represented by the first volume parameter;
the third volume characterized by the determined target volume parameter may be less than or equal to the first volume characterized by the first volume parameter if the second volume characterized by the second volume parameter is less than or equal to the first volume characterized by the first volume parameter.
As an example, when determining the target volume parameter based on the first volume parameter, and the second volume parameter,
if the second volume represented by the second volume parameter corresponding to the target channel is greater than or equal to the first volume represented by the first volume parameter, the third volume represented by the determined target volume parameter can be less than or equal to the first volume represented by the first volume parameter;
the third volume characterized by the determined target volume parameter may be greater than or equal to the first volume characterized by the first volume parameter if the second volume characterized by the second volume parameter is less than or equal to the first volume characterized by the first volume parameter.
In an optional embodiment, one implementation manner of playing the target audio file in the target channel based on the target volume parameter may be as follows:
and if the second volume represented by the second volume parameter corresponding to the target channel is greater than or equal to the first volume represented by the first volume parameter, continuously playing the target audio file in the target channel based on the target volume parameter.
That is, if the second volume represented by the second volume parameter set by the user for the target channel is greater than or equal to the first volume represented by the first volume parameter, the volume maintains the third volume when the target audio file is played.
In an optional embodiment, one implementation manner of playing the target audio file in the target channel based on the target volume parameter may be as follows:
and if the second volume represented by the second volume parameter corresponding to the target channel is less than or equal to the first volume represented by the first volume parameter, continuously playing the target audio file in the target channel based on the target volume parameter.
That is, if the second volume represented by the second volume parameter set by the user for the target channel is less than or equal to the first volume represented by the first volume parameter, the volume may also be maintained at the third volume when the target audio file is played.
In an optional embodiment, one implementation manner of playing the target audio file in the target channel based on the target volume parameter may be as follows:
if the second volume represented by the second volume parameter corresponding to the target channel is less than or equal to the first volume represented by the first volume parameter, in the process of gradually adjusting the volume parameter to the target volume parameter from the second volume parameter, the volume parameter is adjusted once, and the target audio file is played in the target channel based on the adjusted volume parameter.
That is, if the second volume represented by the second volume parameter set by the user for the target channel is less than or equal to the first volume represented by the first volume parameter, the volume may be gradually increased to the third volume while the target audio file is played, and then the third volume is maintained.
In an optional embodiment, one implementation manner of playing the target audio file in the target channel based on the target volume parameter may be as follows:
when the second volume represented by the second volume parameter corresponding to the target channel is less than or equal to the first volume represented by the first volume parameter,
if the audio output scene corresponding to the target audio file played in the target channel is the first target audio output scene, the target audio file may be continuously played in the target channel based on the target volume parameter. As an example, the first target audio output scene may include, but is not limited to: smart voice output scenarios, etc.
If the audio output scene corresponding to the target audio file played by the target channel is not the first target audio output scene, the target audio file is played by the target channel based on the adjusted volume parameter every time the volume parameter is adjusted in the process of gradually adjusting the volume parameter to the target volume parameter from the second volume parameter. As an example, the non-first target audio output scene may include, but is not limited to: a warning sound output scene, an alarm clock ring sound output scene, etc.
In an optional embodiment, the volume control method provided in the embodiment of the present application may further include:
pausing playing the first audio file in the first channel based on the first volume parameter.
Alternatively, the first and second liquid crystal display panels may be,
playing the first audio file in the first channel based on the third volume parameter; and the fourth volume represented by the third volume parameter is smaller than the third volume represented by the target volume parameter.
Alternatively, the first and second electrodes may be,
the first audio file continues to be played in the first channel based on the first volume parameter.
In an alternative embodiment, it may be determined whether to continue playing the first audio file in the first channel according to the audio output scene corresponding to the target audio file played in the target channel, and the volume parameter based on which the first audio file is played in the first channel is continuously maintained. Alternatively to this, the first and second parts may,
if the audio output scene corresponding to the target audio file played in the target channel is the second target audio output scene, the playing of the first audio file in the first channel based on the first volume parameter may be paused. As an example, the second target audio output scene may include, but is not limited to: intelligent speech output scenarios, etc.
If the audio output scene corresponding to the target audio file played by the target channel is a third target audio output scene, playing the first audio file by the first channel based on the third volume parameter; and the fourth volume represented by the third volume parameter is smaller than the third volume represented by the target volume parameter. As an example, the third target audio output scene may include, but is not limited to: alert tone output scenes, etc. As an example, the difference between the third volume and the fourth volume is greater than a third threshold.
If the audio output scene corresponding to the target audio file played in the target channel is the fourth target audio output scene, the first audio file may be continuously played in the first channel based on the first volume parameter. As an example, the fourth target audio output scenario may include, but is not limited to: alarm clock ring output scenes, etc.
Further, when the playing of the first audio file in the first channel based on the first volume parameter is paused, after the playing of the target audio file in the target channel based on the target volume parameter is finished, the playing of the first audio file in the first channel based on the first volume parameter may be directly resumed.
Alternatively, the first and second electrodes may be,
outputting an interactive interface, wherein the interactive interface comprises a first option and a second option, the first option represents that the first audio file is played in the first channel based on the first volume parameter, the second option represents that the first audio file is not played in the first channel based on the first volume parameter, and if a selection instruction for the first option is obtained, the first audio file is played in the first channel based on the first volume parameter; and if the selection instruction for the second option is obtained, the first audio file is prohibited from being played in the first channel based on the first volume parameter.
Further, in the case that the first audio file is played in the first channel based on the third volume parameter, after the target audio file is played in the target channel based on the target volume parameter, the playing of the first audio file in the first channel based on the first volume parameter may be directly resumed.
Corresponding to the method embodiment, an embodiment of the present application further provides a volume control device, and a schematic structural diagram of the volume control device provided in the embodiment of the present application is shown in fig. 2, and may include:
an instruction obtaining module 201, a parameter obtaining module 202 and a control module 203; wherein the content of the first and second substances,
the instruction obtaining module 201 is configured to obtain a target instruction, where the target instruction is used to instruct a target channel to play a target audio file;
the parameter obtaining module 202 is configured to obtain a target volume parameter if an adjustment condition is met based on the target instruction; the adjustment condition characterizes that the first channel is playing a first audio file based on a first volume parameter;
the control module 203 is configured to play the target audio file in the target channel based on the target volume parameter; the target channel is different from the first channel, the target volume parameter belongs to a target range, and the target range comprises a volume parameter corresponding to the first volume parameter.
According to the volume control device provided by the embodiment of the application, after a target instruction for indicating that a target audio file is played by a target channel is obtained, if a first channel plays the first audio file based on a first volume parameter, the target audio file is played by the target channel based on the target volume parameter in a target range, and the target range comprises the volume parameter corresponding to the first volume parameter, so that the volume when the target audio file is played is close to the volume when the first audio file is played, and the first volume parameter based on which the first audio file is played is the volume parameter set by a user for the first channel according to actual needs.
In an optional embodiment, the parameter obtaining module 202 may be further configured to, if the adjustment condition is not satisfied, obtain a second volume parameter corresponding to the target channel;
the control module 203 may be further configured to play the target audio file in the target channel based on the second volume parameter.
In an optional embodiment, when the parameter obtaining module 202 obtains the target volume parameter, it may be configured to:
and obtaining a target volume parameter determined based on the first volume parameter and a second volume parameter corresponding to the target channel.
In an alternative embodiment, the first and second sensors, wherein,
if the difference between the second volume represented by the second volume parameter and the first volume represented by the first volume parameter is larger than a first threshold value, determining the target volume parameter based on the first volume parameter and the second volume parameter;
and the difference between the third volume represented by the target volume parameter and the first volume is smaller than the difference between the second volume parameter and the first volume.
In an optional embodiment, when the control module 203 plays the target audio file in the target channel based on the target volume parameter, it may be configured to:
and if the second volume represented by the second volume parameter is larger than or equal to the first volume represented by the first volume parameter, continuously playing the target audio file in the target channel based on the target volume parameter.
In an optional embodiment, when the control module 203 plays the target audio file in the target channel based on the target volume parameter, it may be configured to:
if the second volume represented by the second volume parameter is less than or equal to the first volume represented by the first volume parameter, continuously playing the target audio file in the target channel based on the target volume parameter;
alternatively, the first and second electrodes may be,
if the second volume represented by the second volume parameter is less than or equal to the first volume represented by the first volume parameter, in the process of gradually adjusting the volume parameter to the target volume parameter from the second volume parameter, the target audio file is played in the target channel based on the adjusted volume parameter every time the volume parameter is adjusted.
In an optional embodiment, the control module 203 may further be configured to:
pausing the playing of the first audio file in the first channel based on the first volume parameter;
alternatively, the first and second electrodes may be,
playing the first audio file in the first channel based on a third volume parameter; a fourth volume represented by the third volume parameter is smaller than a third volume represented by the target volume parameter;
alternatively, the first and second electrodes may be,
continuing to play the first audio file in the first channel based on the first volume parameter.
Corresponding to the embodiment of the method, the present application further provides an electronic device, a schematic structural diagram of which is shown in fig. 3, and the electronic device may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4.
In the embodiment of the present application, the number of the processor 1, the communication interface 2, the memory 3, and the communication bus 4 is at least one, and the processor 1, the communication interface 2, and the memory 3 complete mutual communication through the communication bus 4.
The processor 1 may be a central processing unit CPU, or an Application Specific Integrated Circuit ASIC (Application Specific Integrated Circuit), or one or more Integrated circuits configured to implement embodiments of the present Application, etc.
The memory 3 may comprise a high-speed RAM memory, and may further comprise a non-volatile memory (non-volatile memory) or the like, such as at least one disk memory.
Wherein the memory 3 stores a program, and the processor 1 may call the program stored in the memory 3, the program being configured to:
obtaining a target instruction, wherein the target instruction is used for indicating that a target audio file is played in a target channel;
based on the target instruction, if an adjusting condition is met, obtaining a target volume parameter; the adjustment condition characterizes that the first channel is playing a first audio file based on a first volume parameter;
playing the target audio file in the target channel based on the target volume parameter; the target channel is different from the first channel, the target volume parameter belongs to a target range, and the target range comprises a volume parameter corresponding to the first volume parameter.
Alternatively, the detailed function and the extended function of the program may be as described above.
Embodiments of the present application further provide a storage medium, where a program suitable for execution by a processor may be stored, where the program is configured to:
obtaining a target instruction, wherein the target instruction is used for indicating that a target audio file is played in a target channel;
based on the target instruction, if an adjusting condition is met, obtaining a target volume parameter; the adjustment condition characterizes that the first channel is playing a first audio file based on a first volume parameter;
playing the target audio file in the target channel based on the target volume parameter; the target channel is different from the first channel, the target volume parameter belongs to a target range, and the target range comprises a volume parameter corresponding to the first volume parameter.
Alternatively, the detailed function and the extended function of the program may be as described above.
According to the scheme, the volume control method, the volume control device, the electronic equipment and the storage medium, provided by the application, obtain a target instruction for indicating that a target audio file is played in a target channel, and obtain a target volume parameter if an adjusting condition is met based on the target instruction; playing a target audio file in a target channel based on the target volume parameter; the adjustment condition characterizes that the first channel is playing a first audio file based on a first volume parameter; the target channel is different from the first channel, the target volume parameter belongs to a target range, and the target range comprises the volume parameter corresponding to the first volume parameter. Based on the method and the device, after a target instruction for indicating that the target audio file is played by the target channel is obtained, if the first channel plays the first audio file based on the first volume parameter, the target audio file is played by the target channel based on the target volume parameter in the target range, and the target range comprises the volume parameter corresponding to the first volume parameter, so that the volume when the target audio file is played is close to the volume when the first audio file is played, and the first volume parameter is the volume parameter set by the user aiming at the first channel according to actual needs.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
It should be understood that in the embodiments of the present application, the technical problems described above can be solved by combining and combining the features of the embodiments and the embodiments.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of volume control, the method comprising:
obtaining a target instruction, wherein the target instruction is used for indicating that a target audio file is played in a target channel;
based on the target instruction, if an adjusting condition is met, obtaining a target volume parameter; the adjustment condition characterizes that the first channel is playing a first audio file based on a first volume parameter;
playing the target audio file in the target channel based on the target volume parameter; the target channel is different from the first channel, the target volume parameter belongs to a target range, and the target range comprises a volume parameter corresponding to the first volume parameter.
2. The method of claim 1, further comprising:
if the adjustment condition is not met, obtaining a second volume parameter corresponding to the target channel;
playing the target audio file in the target channel based on the second volume parameter.
3. The method of claim 1, the obtaining a target volume parameter, comprising:
and obtaining a target volume parameter determined based on the first volume parameter and a second volume parameter corresponding to the target channel.
4. The method of claim 3, wherein,
if the difference between the second volume represented by the second volume parameter and the first volume represented by the first volume parameter is larger than a first threshold value, determining the target volume parameter based on the first volume parameter and the second volume parameter;
and the difference between the third volume represented by the target volume parameter and the first volume is smaller than the difference between the second volume parameter and the first volume.
5. The method of claim 3, the playing the target audio file in the target channel based on the target volume parameter, comprising:
and if the second volume represented by the second volume parameter is larger than or equal to the first volume represented by the first volume parameter, continuously playing the target audio file in the target channel based on the target volume parameter.
6. The method of claim 3, the playing the target audio file in the target channel based on the target volume parameter, comprising:
if the second volume represented by the second volume parameter is less than or equal to the first volume represented by the first volume parameter, continuously playing the target audio file in the target channel based on the target volume parameter;
alternatively, the first and second electrodes may be,
if the second volume represented by the second volume parameter is less than or equal to the first volume represented by the first volume parameter, in the process of gradually adjusting the volume parameter to the target volume parameter from the second volume parameter, the target audio file is played in the target channel based on the adjusted volume parameter every time the volume parameter is adjusted.
7. The method of any of claims 1-6, further comprising:
pausing the playing of the first audio file in the first channel based on the first volume parameter;
alternatively, the first and second electrodes may be,
playing the first audio file in the first channel based on a third volume parameter; a fourth volume represented by the third volume parameter is smaller than a third volume represented by the target volume parameter;
alternatively, the first and second electrodes may be,
continuing to play the first audio file in the first channel based on the first volume parameter.
8. A volume control device, the device comprising:
the instruction obtaining module is used for obtaining a target instruction, and the target instruction is used for indicating that a target audio file is played in a target channel;
a parameter obtaining module, configured to obtain a target volume parameter if an adjustment condition is met based on the target instruction; the adjustment condition characterizes that the first channel is playing a first audio file based on a first volume parameter;
a control module for playing the target audio file in the target channel based on the target volume parameter; the target channel is different from the first channel, the target volume parameter belongs to a target range, and the target range comprises a volume parameter corresponding to the first volume parameter.
9. An electronic device, comprising:
a memory for storing a program;
a processor for calling and executing the program in the memory, the program being executed to implement the steps of the volume control method according to any one of claims 1 to 7.
10. A readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the volume control method according to any one of claims 1-7.
CN202211230369.2A 2022-09-30 2022-09-30 Volume control method and device, electronic equipment and storage medium Pending CN115623390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211230369.2A CN115623390A (en) 2022-09-30 2022-09-30 Volume control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211230369.2A CN115623390A (en) 2022-09-30 2022-09-30 Volume control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115623390A true CN115623390A (en) 2023-01-17

Family

ID=84860093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211230369.2A Pending CN115623390A (en) 2022-09-30 2022-09-30 Volume control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115623390A (en)

Similar Documents

Publication Publication Date Title
US8452344B2 (en) Method and device for embedding event notification into multimedia content
KR100605854B1 (en) Method for downloading and replaying data of mobile communication terminal
CN105632508B (en) Audio processing method and audio processing device
KR100597670B1 (en) mobile communication terminal capable of reproducing and updating multimedia content, and method for reproducing the same
EP4346218A1 (en) Audio processing method and apparatus, and electronic device and storage medium
KR100783113B1 (en) Method for shortened storing of music file in mobile communication terminal
CN113271380A (en) Audio processing method and device
CN110830650A (en) Terminal prompting method, terminal and computer storage medium
CN116471355A (en) Audio playing method and electronic equipment
US20080076469A1 (en) Method and Mobile Communication Terminal for Playing Multimedia Content
JP2005520459A (en) Semiconductor chip used in a mobile phone having a text-to-speech conversion system, a method for aurally displaying a notification or text message from a mobile phone, and
CN111107226A (en) Volume control method applied to mobile terminal
CN115623390A (en) Volume control method and device, electronic equipment and storage medium
JP5899161B2 (en) Terminal device, notification output method, and notification output program
CN100559805C (en) Mobile terminals and the message output method that is used for this terminal
JP2010136117A (en) Information processing apparatus and information processing method
JP2022095689A (en) Voice data noise reduction method, device, equipment, storage medium, and program
CN112307161B (en) Method and apparatus for playing audio
CN108491473A (en) Audio file playing method and device, electronic equipment and medium
CN113423007A (en) Control method and device for multi-audio playing, electronic equipment and storage medium
CN115914456B (en) Audio processing method, electronic device and computer readable storage medium
JP2007251288A (en) Mobile communication terminal equipment and call termination notice method
KR101114155B1 (en) Bell service method using mp3 music of mobile phone
CN112201283B (en) Audio playing method and device
CN117931116A (en) Volume adjusting method, electronic equipment and 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