WO2018058331A1 - Method and apparatus for controlling volume - Google Patents

Method and apparatus for controlling volume Download PDF

Info

Publication number
WO2018058331A1
WO2018058331A1 PCT/CN2016/100440 CN2016100440W WO2018058331A1 WO 2018058331 A1 WO2018058331 A1 WO 2018058331A1 CN 2016100440 W CN2016100440 W CN 2016100440W WO 2018058331 A1 WO2018058331 A1 WO 2018058331A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
value
volume
monitoring
related parameter
Prior art date
Application number
PCT/CN2016/100440
Other languages
French (fr)
Chinese (zh)
Inventor
雷振飞
王向东
孙伟
Original Assignee
北京小米移动软件有限公司
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 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to CN201680004402.6A priority Critical patent/CN108140400A/en
Priority to PCT/CN2016/100440 priority patent/WO2018058331A1/en
Publication of WO2018058331A1 publication Critical patent/WO2018058331A1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor

Definitions

  • the present invention relates to the field of communication and computer processing, and more particularly to a method and apparatus for controlling volume.
  • the mobile terminal can provide functions such as calling and playing music. Many functions are inseparable from sound, and the mobile terminal can output sound through devices such as earpieces, speakers, and headphones. How to output the volume suitable for the user's feelings is an urgent problem to be solved.
  • the present invention provides a method and apparatus for controlling volume.
  • a method for controlling volume including:
  • the audio is played according to the determined volume value.
  • the technical solution provided by the embodiment of the present invention may include the following beneficial effects: automatic adjustment of the volume is achieved by determining the volume value corresponding to the relevant parameter of the audio playback, and playing the audio according to the determined volume value, and since the volume is based on the audio The relevant parameters of the play are determined, and thus, the volume of the output can be made more comfortable for the user.
  • the related parameter value includes: playing a device type value of the audio device;
  • the related parameter values for monitoring audio playback include:
  • the device connection signal of the audio device is monitored, and the device type value is determined according to the device connection signal.
  • the technical solution provided by the embodiment of the present invention may include the following beneficial effects: determining a device type value by playing a device connection signal of the audio device, so as to determine a volume suitable for the device for the device type value, so that the volume of the output makes the user feel more Comfortable.
  • the related parameter value includes: a content type value of the audio
  • the related parameter values for monitoring audio playback include:
  • a feature of the audio is monitored, and a content type value of the audio is determined based on characteristics of the audio.
  • the technical solution provided by the embodiment of the present invention may include the following beneficial effects: determining the content type value of the audio by the feature of the audio, so as to determine the volume suitable for the currently played audio for different types of audio, thereby making the volume of the output audio available to the user. Feel more comfortable.
  • the related parameter value includes: playing an application type value of the audio application;
  • the related parameter values for monitoring audio playback include:
  • An application that plays the audio is monitored to determine an application type value for the application.
  • the technical solution provided by the embodiment of the present invention may include the following beneficial effects: determining an application type value of an application by playing an audio application, so as to determine a volume suitable for the application to play audio for different types of applications, thereby making the output
  • the volume of the audio makes the user feel more comfortable.
  • the related parameter value includes: a distance value of the user
  • the related parameter values for monitoring audio playback include:
  • the technical solution provided by the embodiment of the present invention may include the following beneficial effects: by monitoring the distance value between the local and the user, the volume suitable for the distance value output can be determined, so that the volume of the output makes the user feel more comfortable.
  • the related parameter value includes: a noise parameter value
  • the related parameter values for monitoring audio playback include:
  • the technical solution provided by the embodiment of the present invention may include the following beneficial effects: by monitoring the noise parameter value of the environmental noise, and further determining the volume corresponding to the noise parameter value, ensuring that the user can clearly hear the audio played according to the volume value.
  • an apparatus for controlling a volume includes:
  • a monitoring module for monitoring related parameter values of audio playback
  • a determining module configured to determine a volume value corresponding to the related parameter value
  • a playing module configured to play the audio according to the determined volume value.
  • the related parameter value includes: playing a device type value of the audio device; the monitoring module includes:
  • a first monitoring submodule configured to monitor a device connection signal for playing an audio device
  • the first determining submodule is configured to determine a device type value according to the device connection signal.
  • the related parameter value includes: a content type value of the audio
  • the monitoring module includes:
  • a second monitoring submodule for monitoring characteristics of the audio
  • a second determining submodule configured to determine a content type value of the audio according to the feature of the audio.
  • the related parameter value includes: playing an application type value of the audio application;
  • the monitoring module includes:
  • a third monitoring submodule for monitoring an application for playing the audio
  • the third determining submodule is configured to determine an application type value of the application.
  • the related parameter value includes: a distance value of the user
  • the monitoring module includes:
  • the fourth monitoring sub-module is configured to monitor the distance value of the user to the local.
  • the related parameter value includes: a noise parameter value
  • the monitoring module includes:
  • the fifth monitoring sub-module is used to monitor the noise parameter value of the environmental noise.
  • an apparatus for controlling a volume includes:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the audio is played according to the determined volume value.
  • a non-transitory computer readable storage medium wherein when a command in the storage medium is executed by a processor of a mobile terminal, enabling the mobile terminal to perform a method of controlling volume , the method includes:
  • the audio is played according to the determined volume value.
  • FIG. 1 is a flow chart showing a method of controlling volume according to an exemplary embodiment
  • FIG. 2 is a flow chart showing a method of controlling volume according to an exemplary embodiment
  • FIG. 3 is a flowchart of a method of controlling volume according to an exemplary embodiment
  • FIG. 4 is a flow chart showing a method of controlling volume according to an exemplary embodiment
  • FIG. 5 is a block diagram of a device for controlling volume according to an exemplary embodiment
  • FIG. 6 is a block diagram of a device for controlling volume according to an exemplary embodiment
  • FIG. 7 is a block diagram of a device for controlling volume according to an exemplary embodiment
  • FIG. 8 is a block diagram of a device for controlling volume according to an exemplary embodiment
  • FIG. 9 is a block diagram of a device for controlling volume according to an exemplary embodiment
  • FIG. 10 is a block diagram of a device for controlling volume according to an exemplary embodiment
  • FIG. 11 is a block diagram of an apparatus for controlling volume, according to an exemplary embodiment.
  • Mobile terminals have been widely used, and the replacement is very fast.
  • Mobile terminal can mention For calling, playing music and other functions. Many functions are inseparable from sound, and the mobile terminal can output sound through devices such as earpieces, speakers, and headphones.
  • the volume of the output sound can be adjusted by the volume adjustment option in the mobile terminal setting interface; the volume of the output sound can also be adjusted by a hardware button on the mobile terminal for adjusting the volume; and can also be connected to the mobile terminal.
  • Various methods for adjusting the volume are provided in the related art.
  • the user needs to manually adjust the volume.
  • manually adjusting the volume may cause inconvenience to the user. For example, when a user makes a call, the handset needs to be placed at the ear, and the volume cannot be adjusted through the mobile terminal setting interface.
  • the volume of the output sound is adjusted by a hardware button on the mobile terminal or an external device for adjusting the volume, the sound emitted by pressing the hardware button is likely to interfere with the user's call process.
  • the volume of the sound output by the mobile terminal each time is based on the previous setting.
  • the previous setting is not necessarily suitable for the scene corresponding to the output of the sound. Therefore, the output volume is not necessarily suitable for the user's feeling. .
  • the relevant parameter value of the audio playback is monitored; the volume value corresponding to the relevant parameter value is determined; and the audio is played according to the determined volume value.
  • the technical solution by determining the volume value corresponding to the relevant parameter of the audio playing, and playing the audio according to the determined volume value, the automatic adjustment of the volume is realized, and since the volume is determined based on the relevant parameters of the audio playing, The output volume makes the user feel more comfortable, reduces the user's manual adjustment of the volume, and reduces the device's response to user operations.
  • FIG. 1 is a flowchart of a method for controlling volume according to an exemplary embodiment. As shown in FIG. 1 , the method may be implemented by a mobile terminal, and the method may be implemented as the following steps S101-S103:
  • step S101 monitoring related parameter values of audio playback
  • step S102 determining a volume value corresponding to the relevant parameter value
  • step S103 audio is played according to the determined volume value.
  • the audio in this embodiment includes independent audio (such as music, speech, etc.), and also audio in the video, such as audio in a movie.
  • the related parameters of the audio play are preset, and the related parameters may include at least one of the following parameters:
  • the type of device used to play audio the content of the audio, the terminal application that plays the audio, the distance value between the user and the mobile terminal, and the noise level.
  • the parameter value corresponding to the relevant parameter of the audio playing is monitored, and the parameter value may be preset according to the parameter type.
  • the related parameter is a device for playing audio: when the device that plays the audio is the earpiece, the device type value is 11; when the playback device is the earphone, the device type value is 12; when the playback device is the speaker, the device type value is 13 When the playback device is a speaker, the device type value is 14.
  • the relevant parameter is the distance value between the user and the mobile terminal
  • the parameter value is related to the distance size; when the relevant parameter is the noise size, the parameter value is related to the decibel number of the noise.
  • the volume value corresponding to the relevant parameter value is determined.
  • the determination of the volume value may be based on pre-stating the usage of the local user in advance, or pre-stating the usage of a large number of users, performing a large number of actual measurement and data statistics on various parameters of various audio playback, and counting different statistics.
  • the volume that the user is accustomed to use is the volume value that the user feels comfortable when playing the audio according to the relevant parameter value, and establishes the correspondence relationship between the relevant parameter value and the volume value that the user feels comfortable.
  • the volume value corresponding to the relevant parameter value may be determined according to the obtained related parameter value, and the audio is played according to the determined volume value.
  • the technical solution provided by the embodiment of the present invention may include the following beneficial effects: automatic adjustment of the volume is achieved by determining the volume value corresponding to the relevant parameter of the audio playback, and playing the audio according to the determined volume value, and since the volume is based on the audio The relevant parameters of the play are determined, and thus, the volume of the output can be made more comfortable for the user.
  • the related parameter value includes: a device type value of the playing audio device
  • step S101 can be implemented as the following steps S201-S202:
  • step S201 monitoring a device connection signal of the playing audio device
  • step S202 a device type value is determined based on the device connection signal.
  • the relevant parameter value is a device type value of the played audio device.
  • the device that plays audio can be a handset, a wired headset, a Bluetooth headset, a speaker, a Bluetooth speaker, and the like.
  • the device type value of each type of audio device can be preset. For example, when the device that plays the audio is the earpiece, the device type value is 11; when the playback device is the earphone, the device type value is 12; when the playback device is the speaker, The device type value is 13; when the playback device is a speaker, the device type value is 14.
  • Each device type value corresponds to a different volume.
  • the device When the user starts to use a device that plays audio, the device sends a device connection signal to the processor in the mobile terminal, where the device connection signal carries the identifier of the device, and the mobile terminal determines the device type of the device according to the device identifier. And further determine the device type value of the device.
  • the handset and speaker are electrically coupled to the processor during operation to transmit an electrical signal to the processor, and the processor can learn from the electrical signal that the handset and speaker are active.
  • the pin of the wired earphone is inserted into the earphone jack of the mobile terminal to form an electrical connection, generating an electrical signal.
  • the processor can know that the wired headset is working according to the electrical signal of the headphone jack.
  • a Bluetooth headset and a Bluetooth speaker can be connected to a Bluetooth module in a mobile terminal via a Bluetooth protocol. When the Bluetooth module is connected to an external device Bluetooth, it sends an electrical signal to the processor.
  • the processor can know that the Bluetooth headset and the Bluetooth speaker are working according to the electrical signal of the Bluetooth module.
  • the technical solution provided by the embodiment of the present invention may include the following beneficial effects: determining a device type value by a device connection signal of a device that plays audio, so as to determine a volume suitable for the device for the device type value, so that the volume of the output makes the user feel More comfortable.
  • a wired headset is closer to the human ear, and a corresponding volume value of 40 decibels is appropriate.
  • the Bluetooth speaker is farther away from the human ear, and the corresponding volume value is 90 decibels.
  • the audio is automatically played at a volume of 40 decibels.
  • the mobile terminal is connected to a Bluetooth speaker, the audio is automatically played at a volume of 90 decibels.
  • the relevant parameter values include: a content type value of the audio;
  • step S101 can be implemented as the following steps S301-S302:
  • step S301 monitoring characteristics of the audio
  • step S302 the content type value of the audio is determined according to the characteristics of the audio.
  • the relevant parameter value is a content type value of the audio.
  • the content of the audio may be music, voice, or the like.
  • the content type value corresponding to the content of the audio may be set in advance before the content type value of the audio is determined.
  • the content type value of the light music is 21; the content type value of the music of the rock, heavy metal, and the like is 22.
  • the rhythm of rock music is stronger than that of light music, and is suitable for playing at a higher volume. Therefore, the content type value of rock and heavy metal music corresponds to a higher volume, and the content type value of light music corresponds to a lower volume.
  • the content type value corresponding to the voice is preset to be 23. Each content type value corresponds to a different volume.
  • the characteristics of the audio are monitored, and the content type value of the audio is determined based on the characteristics of the audio.
  • the character feature of the lyrics corresponding to the song is obtained, and the style of the song can be determined according to the character characteristics of the lyrics.
  • the audio characteristics of the song are analyzed to determine the genre of the song. It is also possible to determine the genre of the song based on information such as the singer of the song.
  • Content type values also distinguish between music, video, voice conversations, and more.
  • a feature library of various different types of audio features is pre-stored prior to determining the content type value of the audio.
  • determining the content type value of the audio monitoring the feature of the currently played audio, comparing the feature of the currently played audio with the audio feature in the feature library, and using the feature type corresponding to the feature library with the highest degree of similarity as the audio
  • the technical solution provided by the embodiment of the present invention may include the following beneficial effects: determining the content type value of the audio by the feature of the audio, so as to determine the volume suitable for the currently played audio for different types of audio, thereby making the volume of the output audio available to the user. Feel more comfortable.
  • the corresponding volume value when the determined content type value indicates a voice conversation, the corresponding volume value is 60 decibels. When the determined content type value indicates light music, the corresponding volume value is 50 decibels. When the determined content type value indicates rock music, the corresponding volume value is 90 decibels.
  • the mobile terminal can monitor the applications running in the foreground and the content in the application in real time, such as monitoring applications related to audio playback such as social applications, call applications, and player applications. And monitoring the content of the play so as to timely adopt the volume suitable for the content to be played.
  • the relevant parameter values include: an application type value of an application that plays audio;
  • step S101 can be implemented as the following steps S401-S402:
  • step S401 monitoring an application for playing audio
  • step S402 an application type value of the application is determined.
  • the scene in which the mobile terminal outputs audio may include making a call, playing music, and the like.
  • the scene of the output audio can be determined by the type of the application that outputs the audio. For example, when the application that outputs the audio is a call application, it can be determined that the scene of the output audio is a call, and when the application that outputs the audio is a music application. At this time, it is determined that the scene in which the audio is output is playing music.
  • the volume of the audio for different scenes is different. For example, when making a call, the volume of the output is guaranteed to be clearly audible to the user, and when playing music, it is usually necessary to output a higher volume.
  • the type value corresponding to each type of application capable of playing audio may be set in advance.
  • the application type value corresponding to the call application is 31, and the application type value corresponding to the music application is 32.
  • the mobile terminal monitors an application currently playing audio, and determines an application type value of the currently played audio application according to a preset correspondence value applied to the application type value.
  • the technical solution provided by the embodiment of the present invention may include the following beneficial effects: determining an application type value of an application by playing an audio application, so as to determine a volume suitable for the application to play audio for different types of applications, thereby making the volume of the output audio Make users feel more comfortable.
  • the call applications make voice calls, which belong to the call application.
  • the corresponding volume value is 50 decibels.
  • the player mostly plays music and video, etc., and belongs to the music application.
  • the corresponding volume value is 60 decibels.
  • the relevant parameter values include: a distance value of the user;
  • step S101 can be implemented as the following step A1:
  • step A1 the distance value of the user to the local is monitored.
  • the farther the user is from the mobile terminal the larger the volume is needed.
  • the volume corresponding to the different distance values of the user and the mobile terminal is determined. Among them, the closer the distance, the smaller the volume; the farther the distance, the louder the volume.
  • the mobile terminal when the user is closer to the mobile terminal, the mobile terminal can monitor the distance value from the user through the built-in distance sensor. When the user is far away from the mobile terminal, the mobile terminal can monitor the distance value from the user through the wearable device worn by the user. By monitoring the distance value from the user, it is possible to determine the volume suitable for the output of the distance value based on the correspondence between the distance value and the volume.
  • the technical solution provided by the embodiment of the present invention may include the following beneficial effects: by monitoring the distance value between the local and the user, the volume suitable for the distance value output can be determined, so that the volume of the output makes the user feel more comfortable.
  • the relevant parameter values include: noise parameter values;
  • step S101 can be implemented as the following step B1:
  • step B1 the noise parameter value of the environmental noise is monitored.
  • the relevant parameter value includes a noise parameter value.
  • the volume value corresponding to the noise parameter value of the environmental noise is preset, and the audio output according to the volume value can be guaranteed to be used in the ambient noise, and the user can still clearly hear the content of the played audio. That is to say, the larger the noise parameter value is, the larger the corresponding volume is; the smaller the noise parameter is, the smaller the corresponding volume is.
  • the technical solution provided by the embodiment of the present invention may include the following beneficial effects: by monitoring the noise parameter value of the environmental noise, and further determining the volume corresponding to the noise parameter value, ensuring that the user can clearly hear the audio played according to the volume value.
  • the above steps S201-S202, S301-S302, S401-S402, A1, B1 are all further refinement schemes of the above step S101, and all of them introduce a monitoring scheme of related parameter values of audio playback.
  • the monitoring scheme of each of the above related parameter values can be implemented in combination.
  • FIG. 5 is a block diagram of a device for controlling volume according to an exemplary embodiment.
  • the apparatus includes:
  • the monitoring module 51 is configured to monitor related parameter values of audio playback
  • a determining module 52 configured to determine a volume value corresponding to the relevant parameter value
  • the playing module 53 is configured to play the audio according to the determined volume value.
  • the related parameter value includes: playing a device type value of the audio device;
  • the monitoring module 51 includes:
  • a first monitoring sub-module 61 configured to monitor a device connection signal for playing an audio device
  • the first determining sub-module 62 is configured to determine a device type value according to the device connection signal.
  • the related parameter value includes: a content type value of the audio
  • the monitoring module 51 includes:
  • a second monitoring sub-module 71 configured to monitor characteristics of the audio
  • the second determining sub-module 72 is configured to determine a content type value of the audio according to a feature of the audio.
  • the related parameter value includes: playing an application type value of the audio application;
  • the monitoring module 51 includes:
  • a third monitoring sub-module 81 configured to monitor an application for playing audio
  • the third determining sub-module 82 is configured to determine an application type value of the application.
  • the related parameter value includes: a distance value of the user
  • the monitoring module 51 includes:
  • the fourth monitoring sub-module 91 is configured to monitor a distance value of the user to the local.
  • the related parameter value includes: a noise parameter value
  • the monitoring module 51 includes:
  • the fifth monitoring sub-module 101 is configured to monitor a noise parameter value of the environmental noise.
  • FIG. 11 is a block diagram of an apparatus 1100 for controlling volume, according to an exemplary embodiment.
  • device 1100 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • apparatus 1100 can include one or more of the following components: processing component 1102, memory 1104, power component 1106, multimedia component 1108, audio component 1110, input/output (I/O) interface 1112, sensor component 1114, And a communication component 1116.
  • Processing component 1102 typically controls the overall operation of device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 1102 can include one or more processors 1120 to execute instructions to perform all or part of the steps of the above described methods.
  • processing component 1102 can include one or more modules to facilitate interaction between component 1102 and other components.
  • the processing component 1102 can include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
  • Memory 1104 is configured to store various types of data to support operation at device 1100. Examples of such data include instructions for any application or method operating on device 1100, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 1104 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 1106 provides power to various components of device 1100.
  • Power component 1106 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 1100.
  • the multimedia component 1108 includes a screen between the device 1100 and a user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 1108 includes a front camera and/or a rear camera. When the device 1100 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 1110 is configured to output and/or input an audio signal.
  • the audio component 1110 includes a microphone (MIC) that is configured to receive an external audio signal when the device 1100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 1104 or transmitted via communication component 1116.
  • the audio component 1110 also includes a speaker for outputting an audio signal.
  • the I/O interface 1112 provides an interface between the processing component 1102 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 1114 includes one or more sensors for providing a status assessment of various aspects to device 1100.
  • sensor assembly 1114 can detect an open/closed state of device 1100, relative positioning of components, such as the display and keypad of device 1100, and sensor component 1114 can also detect the location of one component of device 1100 or device 1100. Changes, the presence or absence of user contact with device 1100, device 1100 orientation or acceleration/deceleration and temperature change of device 1100.
  • Sensor assembly 1114 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor component 1114 can also include an acceleration pass Sensor, gyro sensor, magnetic sensor, pressure sensor or temperature sensor.
  • Communication component 1116 is configured to facilitate wired or wireless communication between device 1100 and other devices.
  • the device 1100 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • communication component 1116 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 1116 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • apparatus 1100 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 1104 comprising instructions executable by processor 1120 of apparatus 1100 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • a device for controlling volume comprising:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the audio is played according to the determined volume value.
  • the processor can also be configured to:
  • the related parameter value includes: a device type value of a device that plays the audio;
  • the related parameter values for monitoring audio playback include:
  • the device connection signal of the audio device is monitored, and the device type value is determined according to the device connection signal.
  • the processor can also be configured to:
  • the related parameter value includes: a content type value of the audio
  • the related parameter values for monitoring audio playback include:
  • a feature of the audio is monitored, and a content type value of the audio is determined based on characteristics of the audio.
  • the processor can also be configured to:
  • the related parameter value includes: playing an application type value of the audio application;
  • the related parameter values for monitoring audio playback include:
  • An application that plays the audio is monitored to determine an application type value for the application.
  • the processor can also be configured to:
  • the related parameter value includes: a distance value of the user
  • the related parameter values for monitoring audio playback include:
  • the processor can also be configured to:
  • the related parameter value includes: a noise parameter value
  • the related parameter values for monitoring audio playback include:
  • a non-transitory computer readable storage medium when instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to perform a method of controlling volume, the method comprising:
  • the audio is played according to the determined volume value.
  • the instructions in the storage medium may further include:
  • the related parameter value includes: playing a device type value of the audio device;
  • the related parameter values for monitoring audio playback include:
  • the device connection signal of the audio device is monitored, and the device type value is determined according to the device connection signal.
  • the instructions in the storage medium may further include:
  • the related parameter value includes: a content type value of the audio
  • the related parameter values for monitoring audio playback include:
  • a feature of the audio is monitored, and a content type value of the audio is determined based on characteristics of the audio.
  • the instructions in the storage medium may further include:
  • the related parameter value includes: an application type value of an application that plays the audio;
  • the related parameter values for monitoring audio playback include:
  • An application that plays the audio is monitored to determine an application type value for the application.
  • the instructions in the storage medium may further include:
  • the related parameter value includes: a distance value of the user
  • the related parameter values for monitoring audio playback include:
  • the instructions in the storage medium may further include:
  • the related parameter value includes: a noise parameter value
  • the related parameter values for monitoring audio playback include:

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The present invention relates to a method and apparatus for controlling volume, wherein same are used to realize automatic volume control, so that the output volume can make a user feel more comfortable. The method comprises: monitoring related parameter values for audio playing; determining volume values corresponding to the related parameter values; and playing audio according to the determined volume values. By means of the method provided in the present invention, by determining the volume values corresponding to the related parameters for audio playing and playing audio according to the determined volume values, automatic adjustment of the volume is realized, and since the volume is determined based on the related parameters for audio playing, the output volume can make a user feel more comfortable.

Description

控制音量的方法及装置Method and device for controlling volume 技术领域Technical field
本发明涉及通信及计算机处理领域,尤其涉及控制音量的方法及装置。The present invention relates to the field of communication and computer processing, and more particularly to a method and apparatus for controlling volume.
背景技术Background technique
随着电子技术的发展,移动终端已经普遍应用,并且更新换代非常快。移动终端可以提供呼叫、播放音乐等功能。很多功能都离不开声音,而且移动终端可以通过听筒、扬声器、耳机等设备输出声音。如何输出适合用户感受的音量,是亟待解决的问题。With the development of electronic technology, mobile terminals have been widely used, and the replacement is very fast. The mobile terminal can provide functions such as calling and playing music. Many functions are inseparable from sound, and the mobile terminal can output sound through devices such as earpieces, speakers, and headphones. How to output the volume suitable for the user's feelings is an urgent problem to be solved.
发明内容Summary of the invention
为克服相关技术中存在的问题,本发明提供一种控制音量的方法及装置。In order to overcome the problems in the related art, the present invention provides a method and apparatus for controlling volume.
根据本发明实施例的第一方面,提供一种控制音量的方法,包括:According to a first aspect of the embodiments of the present invention, a method for controlling volume is provided, including:
监测音频播放的相关参数值;Monitoring related parameter values of audio playback;
确定所述相关参数值对应的音量值;Determining a volume value corresponding to the relevant parameter value;
根据确定的所述音量值播放所述音频。The audio is played according to the determined volume value.
本发明的实施例提供的技术方案可以包括以下有益效果:通过确定音频播放的相关参数对应的音量值,并根据确定的音量值播放音频,实现了对音量的自动调整,且由于音量是基于音频播放的相关参数确定的,因而,能够使输出的音量让用户感觉更舒服。The technical solution provided by the embodiment of the present invention may include the following beneficial effects: automatic adjustment of the volume is achieved by determining the volume value corresponding to the relevant parameter of the audio playback, and playing the audio according to the determined volume value, and since the volume is based on the audio The relevant parameters of the play are determined, and thus, the volume of the output can be made more comfortable for the user.
在一个实施例中,所述相关参数值包括:播放所述音频设备的设备类型值;In an embodiment, the related parameter value includes: playing a device type value of the audio device;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测播放音频设备的设备连接信号,根据设备连接信号确定设备类型值。The device connection signal of the audio device is monitored, and the device type value is determined according to the device connection signal.
本发明的实施例提供的技术方案可以包括以下有益效果:通过播放音频设备的设备连接信号确定设备类型值,以便于针对设备类型值确定适合该设备的音量,进而使输出的音量让用户感觉更舒服。The technical solution provided by the embodiment of the present invention may include the following beneficial effects: determining a device type value by playing a device connection signal of the audio device, so as to determine a volume suitable for the device for the device type value, so that the volume of the output makes the user feel more Comfortable.
在一个实施例中,所述相关参数值包括:所述音频的内容类型值;In one embodiment, the related parameter value includes: a content type value of the audio;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测所述音频的特征,根据所述音频的特征确定音频的内容类型值。A feature of the audio is monitored, and a content type value of the audio is determined based on characteristics of the audio.
本发明的实施例提供的技术方案可以包括以下有益效果:通过音频的特征确定音频的内容类型值,以便于针对不同类型的音频确定适合当前播放的音频的音量,进而使输出音频的音量让用户感觉更舒服。The technical solution provided by the embodiment of the present invention may include the following beneficial effects: determining the content type value of the audio by the feature of the audio, so as to determine the volume suitable for the currently played audio for different types of audio, thereby making the volume of the output audio available to the user. Feel more comfortable.
在一个实施例中,所述相关参数值包括:播放所述音频应用的应用类型值;In an embodiment, the related parameter value includes: playing an application type value of the audio application;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测播放所述音频的应用,确定所述应用的应用类型值。An application that plays the audio is monitored to determine an application type value for the application.
本发明的实施例提供的技术方案可以包括以下有益效果:通过播放音频的应用确定应用的应用类型值,以便于针对不同类型的应用确定适合该应用播放音频时的音量,进而使输出 音频的音量让用户感觉更舒服。The technical solution provided by the embodiment of the present invention may include the following beneficial effects: determining an application type value of an application by playing an audio application, so as to determine a volume suitable for the application to play audio for different types of applications, thereby making the output The volume of the audio makes the user feel more comfortable.
在一个实施例中,所述相关参数值包括:用户的距离值;In an embodiment, the related parameter value includes: a distance value of the user;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测用户到本地的距离值。Monitor user distance to local distance.
本发明的实施例提供的技术方案可以包括以下有益效果:通过监测本地与用户的距离值,从而能够确定适合距离值输出的音量,以使输出的音量让用户感觉更舒服。The technical solution provided by the embodiment of the present invention may include the following beneficial effects: by monitoring the distance value between the local and the user, the volume suitable for the distance value output can be determined, so that the volume of the output makes the user feel more comfortable.
在一个实施例中,所述相关参数值包括:噪声参数值;In an embodiment, the related parameter value includes: a noise parameter value;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测环境噪声的噪声参数值。The value of the noise parameter that monitors ambient noise.
本发明的实施例提供的技术方案可以包括以下有益效果:通过监测环境噪声的噪声参数值,进而确定该噪声参数值对应的音量,保证用户能够清楚的听到根据该音量值播放的音频。The technical solution provided by the embodiment of the present invention may include the following beneficial effects: by monitoring the noise parameter value of the environmental noise, and further determining the volume corresponding to the noise parameter value, ensuring that the user can clearly hear the audio played according to the volume value.
根据本发明实施例的第二方面,提供一种控制音量的装置,包括:According to a second aspect of the embodiments of the present invention, an apparatus for controlling a volume includes:
监测模块,用于监测音频播放的相关参数值;a monitoring module for monitoring related parameter values of audio playback;
确定模块,用于确定所述相关参数值对应的音量值;a determining module, configured to determine a volume value corresponding to the related parameter value;
播放模块,用于根据确定的所述音量值播放所述音频。And a playing module, configured to play the audio according to the determined volume value.
在一个实施例中,所述相关参数值包括:播放所述音频设备的设备类型值;所述监测模块,包括:In one embodiment, the related parameter value includes: playing a device type value of the audio device; the monitoring module includes:
第一监测子模块,用于监测播放音频设备的设备连接信号;a first monitoring submodule, configured to monitor a device connection signal for playing an audio device;
第一确定子模块,用于根据设备连接信号确定设备类型值。The first determining submodule is configured to determine a device type value according to the device connection signal.
在一个实施例中,所述相关参数值包括:所述音频的内容类型值;In one embodiment, the related parameter value includes: a content type value of the audio;
所述监测模块,包括:The monitoring module includes:
第二监测子模块,用于监测所述音频的特征;a second monitoring submodule for monitoring characteristics of the audio;
第二确定子模块,用于根据所述音频的特征确定音频的内容类型值。And a second determining submodule, configured to determine a content type value of the audio according to the feature of the audio.
在一个实施例中,所述相关参数值包括:播放所述音频应用的应用类型值;In an embodiment, the related parameter value includes: playing an application type value of the audio application;
所述监测模块,包括:The monitoring module includes:
第三监测子模块,用于监测播放所述音频的应用;a third monitoring submodule for monitoring an application for playing the audio;
第三确定子模块,用于确定所述应用的应用类型值。The third determining submodule is configured to determine an application type value of the application.
在一个实施例中,所述相关参数值包括:用户的距离值;In an embodiment, the related parameter value includes: a distance value of the user;
所述监测模块,包括:The monitoring module includes:
第四监测子模块,用于监测用户到本地的距离值。The fourth monitoring sub-module is configured to monitor the distance value of the user to the local.
在一个实施例中,所述相关参数值包括:噪声参数值;In an embodiment, the related parameter value includes: a noise parameter value;
所述监测模块,包括:The monitoring module includes:
第五监测子模块,用于监测环境噪声的噪声参数值。The fifth monitoring sub-module is used to monitor the noise parameter value of the environmental noise.
根据本发明实施例的第三方面,提供一种控制音量的装置,包括:According to a third aspect of the embodiments of the present invention, an apparatus for controlling a volume includes:
处理器; Processor
用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
其中,所述处理器被配置为:Wherein the processor is configured to:
监测音频播放的相关参数值;Monitoring related parameter values of audio playback;
确定所述相关参数值对应的音量值;Determining a volume value corresponding to the relevant parameter value;
根据确定的所述音量值播放所述音频。The audio is played according to the determined volume value.
根据本发明实施例的第四方面,提供一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种控制音量的方法,所述方法包括:According to a fourth aspect of the embodiments of the present invention, there is provided a non-transitory computer readable storage medium, wherein when a command in the storage medium is executed by a processor of a mobile terminal, enabling the mobile terminal to perform a method of controlling volume , the method includes:
监测音频播放的相关参数值;Monitoring related parameter values of audio playback;
确定所述相关参数值对应的音量值;Determining a volume value corresponding to the relevant parameter value;
根据确定的所述音量值播放所述音频。The audio is played according to the determined volume value.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明。The above general description and the following detailed description are intended to be illustrative and not restrictive.
附图说明DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in the specification of FIG
图1是根据一示例性实施例示出的一种控制音量的方法的流程图;FIG. 1 is a flow chart showing a method of controlling volume according to an exemplary embodiment;
图2是根据一示例性实施例示出的一种控制音量的方法的流程图;2 is a flow chart showing a method of controlling volume according to an exemplary embodiment;
图3是根据一示例性实施例示出的一种控制音量的方法的流程图;FIG. 3 is a flowchart of a method of controlling volume according to an exemplary embodiment;
图4是根据一示例性实施例示出的一种控制音量的方法的流程图;4 is a flow chart showing a method of controlling volume according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种控制音量的装置框图;FIG. 5 is a block diagram of a device for controlling volume according to an exemplary embodiment; FIG.
图6是根据一示例性实施例示出的一种控制音量的装置框图;FIG. 6 is a block diagram of a device for controlling volume according to an exemplary embodiment; FIG.
图7是根据一示例性实施例示出的一种控制音量的装置框图;FIG. 7 is a block diagram of a device for controlling volume according to an exemplary embodiment; FIG.
图8是根据一示例性实施例示出的一种控制音量的装置框图;FIG. 8 is a block diagram of a device for controlling volume according to an exemplary embodiment; FIG.
图9是根据一示例性实施例示出的一种控制音量的装置框图;FIG. 9 is a block diagram of a device for controlling volume according to an exemplary embodiment;
图10是根据一示例性实施例示出的一种控制音量的装置框图;FIG. 10 is a block diagram of a device for controlling volume according to an exemplary embodiment; FIG.
图11是根据一示例性实施例示出的一种用于控制音量的装置的框图。FIG. 11 is a block diagram of an apparatus for controlling volume, according to an exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with aspects of the invention as detailed in the appended claims.
随着电子技术的发展,移动终端已经普遍应用,并且更新换代非常快。移动终端可以提 供呼叫、播放音乐等功能。很多功能都离不开声音,而且移动终端可以通过听筒、扬声器、耳机等设备输出声音。With the development of electronic technology, mobile terminals have been widely used, and the replacement is very fast. Mobile terminal can mention For calling, playing music and other functions. Many functions are inseparable from sound, and the mobile terminal can output sound through devices such as earpieces, speakers, and headphones.
在相关技术中,可以通过移动终端设置界面中的音量调节选项来调节输出声音的音量;也可以通过移动终端上用来调节音量的硬件按钮来调节输出声音的音量;还可以通过与移动终端连接的耳机、外接扬声器、蓝牙音箱等设备上的用来调节音量的硬件按钮来调节输出声音的音量。In the related art, the volume of the output sound can be adjusted by the volume adjustment option in the mobile terminal setting interface; the volume of the output sound can also be adjusted by a hardware button on the mobile terminal for adjusting the volume; and can also be connected to the mobile terminal. The hardware buttons for adjusting the volume on the headphones, external speakers, Bluetooth speakers, etc. to adjust the volume of the output sound.
相关技术中提供了多种调节音量的方式,然而,这些方式,均需要用户手动调整音量,有时候,手动调整音量会给用户的使用带来不便。例如,当用户进行通话时,需要将听筒放在耳边,不能通过移动终端设置界面来调节音量。而如果通过移动终端或外接设备上用来调节音量的硬件按钮来调节输出声音的音量时,按动硬件按钮所发出的声音很可能对用户通话过程造成干扰。Various methods for adjusting the volume are provided in the related art. However, in these methods, the user needs to manually adjust the volume. Sometimes, manually adjusting the volume may cause inconvenience to the user. For example, when a user makes a call, the handset needs to be placed at the ear, and the volume cannot be adjusted through the mobile terminal setting interface. However, if the volume of the output sound is adjusted by a hardware button on the mobile terminal or an external device for adjusting the volume, the sound emitted by pressing the hardware button is likely to interfere with the user's call process.
其次,移动终端每次输出的声音的音量都是基于上一次的设置,然而上一次的设置并不一定适合本次输出声音时所对应的场景,因而,输出的音量并不一定适合用户的感受。Secondly, the volume of the sound output by the mobile terminal each time is based on the previous setting. However, the previous setting is not necessarily suitable for the scene corresponding to the output of the sound. Therefore, the output volume is not necessarily suitable for the user's feeling. .
因此,如何实现音量的自动控制,使输出的音量让用户感觉更舒服,是亟待解决的问题。Therefore, how to realize the automatic control of the volume so that the volume of the output makes the user feel more comfortable is an urgent problem to be solved.
本发明中,监测音频播放的相关参数值;确定该相关参数值对应的音量值;根据确定的音量值播放音频。采用该技术方案,通过确定音频播放的相关参数对应的音量值,并根据确定的音量值播放音频,实现了对音量的自动调整,且由于音量是基于音频播放的相关参数确定的,因而,能够使输出的音量让用户感觉更舒服,减少用户手动调节音量的操作,也减少了设备对用户操作的响应。In the present invention, the relevant parameter value of the audio playback is monitored; the volume value corresponding to the relevant parameter value is determined; and the audio is played according to the determined volume value. With the technical solution, by determining the volume value corresponding to the relevant parameter of the audio playing, and playing the audio according to the determined volume value, the automatic adjustment of the volume is realized, and since the volume is determined based on the relevant parameters of the audio playing, The output volume makes the user feel more comfortable, reduces the user's manual adjustment of the volume, and reduces the device's response to user operations.
图1是根据一示例性实施例示出的一种控制音量的方法的流程图,如图1所示,该方法可以由移动终端实现,该方法可被实施为如下步骤S101-S103:FIG. 1 is a flowchart of a method for controlling volume according to an exemplary embodiment. As shown in FIG. 1 , the method may be implemented by a mobile terminal, and the method may be implemented as the following steps S101-S103:
在步骤S101中,监测音频播放的相关参数值;In step S101, monitoring related parameter values of audio playback;
在步骤S102中,确定相关参数值对应的音量值;In step S102, determining a volume value corresponding to the relevant parameter value;
在步骤S103中,根据确定的音量值播放音频。In step S103, audio is played according to the determined volume value.
本实施例中的音频包括独立的音频(如音乐、说话语音等),还包括视频中的音频,如电影中的音频等。The audio in this embodiment includes independent audio (such as music, speech, etc.), and also audio in the video, such as audio in a movie.
本实施例中,预先设置音频播放的相关参数,相关参数可以包括以下几种参数中的至少一种:In this embodiment, the related parameters of the audio play are preset, and the related parameters may include at least one of the following parameters:
用来播放音频的设备的类型、音频的内容、播放音频的终端应用、用户与移动终端之间的距离值以及噪声大小等。The type of device used to play audio, the content of the audio, the terminal application that plays the audio, the distance value between the user and the mobile terminal, and the noise level.
监测音频播放的相关参数对应的参数值,该参数值可以根据参数类型预先设置。例如,相关参数为播放音频的设备:当播放音频的设备为听筒时,设备类型值为11;当播放设备为耳机时,设备类型值为12;当播放设备为扬声器时,设备类型值为13;当播放设备为音箱时,设备类型值为14。当相关参数为用户与移动终端之间的距离值时,参数值与距离大小有关;当相关参数为噪声大小时,参数值与噪声的分贝数有关。 The parameter value corresponding to the relevant parameter of the audio playing is monitored, and the parameter value may be preset according to the parameter type. For example, the related parameter is a device for playing audio: when the device that plays the audio is the earpiece, the device type value is 11; when the playback device is the earphone, the device type value is 12; when the playback device is the speaker, the device type value is 13 When the playback device is a speaker, the device type value is 14. When the relevant parameter is the distance value between the user and the mobile terminal, the parameter value is related to the distance size; when the relevant parameter is the noise size, the parameter value is related to the decibel number of the noise.
在监测音频播放的相关参数值之后,确定相关参数值对应的音量值。该音量值大小的确定依据,可以是预先对本机用户平时的使用情况进行统计,或者预先统计大量用户的使用情况,对各种音频播放的相关参数进行大量的实测与数据统计,统计出不同的相关参数值中,用户习惯使用的音量,将用户习惯使用的音量作为根据该相关参数值播放音频时用户感觉舒适的音量值,建立相关参数值与用户感觉舒适的音量值的对应关系。而当获得当前音频播放的相关参数值之后,可以根据获得的相关参数值确定该相关参数值对应的音量值,并根据确定的音量值播放音频。After monitoring the relevant parameter values of the audio play, the volume value corresponding to the relevant parameter value is determined. The determination of the volume value may be based on pre-stating the usage of the local user in advance, or pre-stating the usage of a large number of users, performing a large number of actual measurement and data statistics on various parameters of various audio playback, and counting different statistics. Among the relevant parameter values, the volume that the user is accustomed to use, the volume that the user is accustomed to use is the volume value that the user feels comfortable when playing the audio according to the relevant parameter value, and establishes the correspondence relationship between the relevant parameter value and the volume value that the user feels comfortable. After obtaining the relevant parameter value of the current audio play, the volume value corresponding to the relevant parameter value may be determined according to the obtained related parameter value, and the audio is played according to the determined volume value.
本发明的实施例提供的技术方案可以包括以下有益效果:通过确定音频播放的相关参数对应的音量值,并根据确定的音量值播放音频,实现了对音量的自动调整,且由于音量是基于音频播放的相关参数确定的,因而,能够使输出的音量让用户感觉更舒服。The technical solution provided by the embodiment of the present invention may include the following beneficial effects: automatic adjustment of the volume is achieved by determining the volume value corresponding to the relevant parameter of the audio playback, and playing the audio according to the determined volume value, and since the volume is based on the audio The relevant parameters of the play are determined, and thus, the volume of the output can be made more comfortable for the user.
在一个实施例中,相关参数值包括:播放音频设备的设备类型值;In an embodiment, the related parameter value includes: a device type value of the playing audio device;
如图2所示,上述步骤S101可被实施为如下步骤S201-S202:As shown in FIG. 2, the above step S101 can be implemented as the following steps S201-S202:
在步骤S201中,监测播放音频设备的设备连接信号;In step S201, monitoring a device connection signal of the playing audio device;
在步骤S202中,根据设备连接信号确定设备类型值。In step S202, a device type value is determined based on the device connection signal.
本实施例中,相关参数值为播放音频设备的设备类型值。播放音频的设备可以是听筒、有线耳机、蓝牙耳机、扬声器、蓝牙音箱等。可预先设置各类播放音频设备的设备类型值,例如,当播放音频的设备为听筒时,设备类型值为11;当播放设备为耳机时,设备类型值为12;当播放设备为扬声器时,设备类型值为13;当播放设备为音箱时,设备类型值为14。每一种设备类型值都对应不同的音量。In this embodiment, the relevant parameter value is a device type value of the played audio device. The device that plays audio can be a handset, a wired headset, a Bluetooth headset, a speaker, a Bluetooth speaker, and the like. The device type value of each type of audio device can be preset. For example, when the device that plays the audio is the earpiece, the device type value is 11; when the playback device is the earphone, the device type value is 12; when the playback device is the speaker, The device type value is 13; when the playback device is a speaker, the device type value is 14. Each device type value corresponds to a different volume.
当用户开始使用一播放音频的设备时,该设备会向移动终端中的处理器发送设备连接信号,该设备连接信号携带有该设备的标识,移动终端根据该设备标识确定该设备的设备类型,并进一步确定该设备的设备类型值。When the user starts to use a device that plays audio, the device sends a device connection signal to the processor in the mobile terminal, where the device connection signal carries the identifier of the device, and the mobile terminal determines the device type of the device according to the device identifier. And further determine the device type value of the device.
例如,听筒和扬声器在工作时与处理器产生电连接,向处理器发送电信号,处理器可根据电信号获知听筒和扬声器在工作。又如,有线耳机的插针插入移动终端的耳机插孔,形成电连接,产生电信号。处理器可根据耳机插孔的电信号获知有线耳机在工作。又如,蓝牙耳机和蓝牙音箱,可以通过蓝牙协议与移动终端中的蓝牙模块连接。蓝牙模块与外部设备蓝牙连接后,会向处理器发送电信号。处理器可根据蓝牙模块的电信号获知蓝牙耳机和蓝牙音箱在工作。For example, the handset and speaker are electrically coupled to the processor during operation to transmit an electrical signal to the processor, and the processor can learn from the electrical signal that the handset and speaker are active. For another example, the pin of the wired earphone is inserted into the earphone jack of the mobile terminal to form an electrical connection, generating an electrical signal. The processor can know that the wired headset is working according to the electrical signal of the headphone jack. For example, a Bluetooth headset and a Bluetooth speaker can be connected to a Bluetooth module in a mobile terminal via a Bluetooth protocol. When the Bluetooth module is connected to an external device Bluetooth, it sends an electrical signal to the processor. The processor can know that the Bluetooth headset and the Bluetooth speaker are working according to the electrical signal of the Bluetooth module.
本发明的实施例提供的技术方案可以包括以下有益效果:通过播放音频的设备的设备连接信号确定设备类型值,以便于针对设备类型值确定适合该设备的音量,进而使输出的音量让用户感觉更舒服。The technical solution provided by the embodiment of the present invention may include the following beneficial effects: determining a device type value by a device connection signal of a device that plays audio, so as to determine a volume suitable for the device for the device type value, so that the volume of the output makes the user feel More comfortable.
例如,有线耳机距离人耳比较近,对应的音量值为40分贝比较合适。蓝牙音箱距离人耳比较远,对应的音量值为90分贝比较合适。当用户插入有线耳机时,自动以40分贝的音量播放音频。当移动终端连接蓝牙音箱时,自动以90分贝的音量播放音频。For example, a wired headset is closer to the human ear, and a corresponding volume value of 40 decibels is appropriate. The Bluetooth speaker is farther away from the human ear, and the corresponding volume value is 90 decibels. When the user inserts a wired headset, the audio is automatically played at a volume of 40 decibels. When the mobile terminal is connected to a Bluetooth speaker, the audio is automatically played at a volume of 90 decibels.
在一个实施例中,相关参数值包括:音频的内容类型值; In one embodiment, the relevant parameter values include: a content type value of the audio;
如图3所示,上述步骤S101可被实施为如下步骤S301-S302:As shown in FIG. 3, the above step S101 can be implemented as the following steps S301-S302:
在步骤S301中,监测音频的特征;In step S301, monitoring characteristics of the audio;
在步骤S302中,根据音频的特征确定音频的内容类型值。In step S302, the content type value of the audio is determined according to the characteristics of the audio.
本实施例中,相关参数值为音频的内容类型值。其中,该音频的内容可以是音乐、语音等。在确定音频的内容类型值之前,可预先设置音频的内容对应的内容类型值。例如,音频的内容是音乐时,可对不同风格的音乐设置不同的内容类型值,轻音乐的内容类型值为21;摇滚、重金属等风格的音乐的内容类型值为22。通常情况下,摇滚音乐的节奏比轻音乐的强烈,适于通过较高的音量来播放,因而,摇滚、重金属音乐的内容类型值对应较高音量,轻音乐的内容类型值对应较低音量。又例如,音频的内容是语音时,预先设置语音对应的内容类型值为23。每一种内容类型值对应不同的音量。In this embodiment, the relevant parameter value is a content type value of the audio. The content of the audio may be music, voice, or the like. The content type value corresponding to the content of the audio may be set in advance before the content type value of the audio is determined. For example, when the content of the audio is music, different content type values can be set for different styles of music, the content type value of the light music is 21; the content type value of the music of the rock, heavy metal, and the like is 22. Normally, the rhythm of rock music is stronger than that of light music, and is suitable for playing at a higher volume. Therefore, the content type value of rock and heavy metal music corresponds to a higher volume, and the content type value of light music corresponds to a lower volume. For another example, when the content of the audio is voice, the content type value corresponding to the voice is preset to be 23. Each content type value corresponds to a different volume.
确定音频内容时候,监测该音频的特征,根据音频的特征确定音频的内容类型值。例如,当音频为歌曲时,获取歌曲对应的歌词的文字特征,可根据歌词的文字特征确定歌曲的风格。又如,分析歌曲的音频特征(包括频率、幅度等),确定歌曲的曲风。还可以根据歌曲的演唱者等信息确定歌曲的曲风。内容类型值还区分音乐、视频、语音对话等。When the audio content is determined, the characteristics of the audio are monitored, and the content type value of the audio is determined based on the characteristics of the audio. For example, when the audio is a song, the character feature of the lyrics corresponding to the song is obtained, and the style of the song can be determined according to the character characteristics of the lyrics. As another example, the audio characteristics of the song (including frequency, amplitude, etc.) are analyzed to determine the genre of the song. It is also possible to determine the genre of the song based on information such as the singer of the song. Content type values also distinguish between music, video, voice conversations, and more.
另外,在确定音频的内容类型值之前,预先存储各种不同类型的音频特征的特征库。在确定音频的内容类型值时,监测当前播放的音频的特征,将当前播放的音频的特征与特征库中的音频特征进行比对,将相似程度最高的特征库对应的特征类型作为该音频的特征,根据该音频的特征确定音频的内容类型值。In addition, a feature library of various different types of audio features is pre-stored prior to determining the content type value of the audio. When determining the content type value of the audio, monitoring the feature of the currently played audio, comparing the feature of the currently played audio with the audio feature in the feature library, and using the feature type corresponding to the feature library with the highest degree of similarity as the audio A feature that determines a content type value of the audio based on the characteristics of the audio.
本发明的实施例提供的技术方案可以包括以下有益效果:通过音频的特征确定音频的内容类型值,以便于针对不同类型的音频确定适合当前播放的音频的音量,进而使输出音频的音量让用户感觉更舒服。The technical solution provided by the embodiment of the present invention may include the following beneficial effects: determining the content type value of the audio by the feature of the audio, so as to determine the volume suitable for the currently played audio for different types of audio, thereby making the volume of the output audio available to the user. Feel more comfortable.
例如,确定的内容类型值表示语音对话时,对应的音量值为60分贝。确定的内容类型值表示轻音乐时,对应的音量值为50分贝。确定的内容类型值表示摇滚乐时,对应的音量值为90分贝。For example, when the determined content type value indicates a voice conversation, the corresponding volume value is 60 decibels. When the determined content type value indicates light music, the corresponding volume value is 50 decibels. When the determined content type value indicates rock music, the corresponding volume value is 90 decibels.
移动终端可以实时监测前台运行的应用和应用中的内容,如监测社交应用、呼叫应用和播放器应用等与音频播放有关的应用。以及监测播放的内容,以便及时的采用适合该播放内容的音量。The mobile terminal can monitor the applications running in the foreground and the content in the application in real time, such as monitoring applications related to audio playback such as social applications, call applications, and player applications. And monitoring the content of the play so as to timely adopt the volume suitable for the content to be played.
在一个实施例中,相关参数值包括:播放音频的应用的应用类型值;In one embodiment, the relevant parameter values include: an application type value of an application that plays audio;
如图4所示,上述步骤S101可被实施为如下步骤S401-S402:As shown in FIG. 4, the above step S101 can be implemented as the following steps S401-S402:
在步骤S401中,监测播放音频的应用;In step S401, monitoring an application for playing audio;
在步骤S402中,确定应用的应用类型值。In step S402, an application type value of the application is determined.
移动终端输出音频的场景可以包括打电话、播放音乐等。通常情况下,可以通过输出音频的应用的类型确定输出音频的场景,例如,当输出音频的应用为通话类应用时,可确定输出音频的场景为打电话,当输出音频的应用为音乐类应用时,可确定输出音频的场景为播放音乐。 The scene in which the mobile terminal outputs audio may include making a call, playing music, and the like. Generally, the scene of the output audio can be determined by the type of the application that outputs the audio. For example, when the application that outputs the audio is a call application, it can be determined that the scene of the output audio is a call, and when the application that outputs the audio is a music application. At this time, it is determined that the scene in which the audio is output is playing music.
适用于不同的场景的音频的音量是不同的。例如打电话时,输出的音量保证用户可以清楚地听到就可以,而在播放音乐时,通常需要输出较高的音量。The volume of the audio for different scenes is different. For example, when making a call, the volume of the output is guaranteed to be clearly audible to the user, and when playing music, it is usually necessary to output a higher volume.
本实施例中,可预先设置能够播放音频的各类应用对应的类型值,例如,通话类应用对应的应用类型值为31,音乐类应用对应的应用类型值为32。移动终端监测当前播放音频的应用,根据预先设置的应用于应用类型值的对应关系,确定当前播放音频应用的应用类型值。In this embodiment, the type value corresponding to each type of application capable of playing audio may be set in advance. For example, the application type value corresponding to the call application is 31, and the application type value corresponding to the music application is 32. The mobile terminal monitors an application currently playing audio, and determines an application type value of the currently played audio application according to a preset correspondence value applied to the application type value.
本发明的实施例提供的技术方案可以包括以下有益效果:通过播放音频的应用确定应用的应用类型值,以便于针对不同类型的应用确定适合该应用播放音频时的音量,进而使输出音频的音量让用户感觉更舒服。The technical solution provided by the embodiment of the present invention may include the following beneficial effects: determining an application type value of an application by playing an audio application, so as to determine a volume suitable for the application to play audio for different types of applications, thereby making the volume of the output audio Make users feel more comfortable.
例如,呼叫应用多数进行语音通话,属于通话类应用,当前台运行呼叫应用时,对应的音量值为50分贝。播放器多数播放音乐和视频等,属于音乐类应用,当前台运行播放器时,对应的音量值为60分贝。For example, most of the call applications make voice calls, which belong to the call application. When the current station runs the call application, the corresponding volume value is 50 decibels. The player mostly plays music and video, etc., and belongs to the music application. When the current player runs the player, the corresponding volume value is 60 decibels.
在一个实施例中,相关参数值包括:用户的距离值;In one embodiment, the relevant parameter values include: a distance value of the user;
上述步骤S101可被实施为如下步骤A1:The above step S101 can be implemented as the following step A1:
在步骤A1中,监测用户到本地的距离值。In step A1, the distance value of the user to the local is monitored.
在播放音频时,如果要保证用户能够听清楚音频对应的内容,则用户距离移动终端越远,需要越大的音量。确定用户与移动终端的不同距离值对应的音量。其中,距离越近,音量越小;距离越远,音量越大。When playing audio, if you want to ensure that the user can hear the content corresponding to the audio, the farther the user is from the mobile terminal, the larger the volume is needed. The volume corresponding to the different distance values of the user and the mobile terminal is determined. Among them, the closer the distance, the smaller the volume; the farther the distance, the louder the volume.
本实施例中,当用户距离移动终端较近时,移动终端可通过内置的距离传感器监测与用户的距离值。当用户距离移动终端较远时,移动终端可通过用户佩戴的可穿戴设备监测与用户的距离值。通过监测与用户的距离值,从而能够根据距离值与音量的对应关系确定适合该距离值输出的音量。In this embodiment, when the user is closer to the mobile terminal, the mobile terminal can monitor the distance value from the user through the built-in distance sensor. When the user is far away from the mobile terminal, the mobile terminal can monitor the distance value from the user through the wearable device worn by the user. By monitoring the distance value from the user, it is possible to determine the volume suitable for the output of the distance value based on the correspondence between the distance value and the volume.
本发明的实施例提供的技术方案可以包括以下有益效果:通过监测本地与用户的距离值,从而能够确定适合距离值输出的音量,以使输出的音量让用户感觉更舒服。The technical solution provided by the embodiment of the present invention may include the following beneficial effects: by monitoring the distance value between the local and the user, the volume suitable for the distance value output can be determined, so that the volume of the output makes the user feel more comfortable.
在一个实施例中,相关参数值包括:噪声参数值;In one embodiment, the relevant parameter values include: noise parameter values;
上述步骤S101可被实施为如下步骤B1:The above step S101 can be implemented as the following step B1:
在步骤B1中,监测环境噪声的噪声参数值。In step B1, the noise parameter value of the environmental noise is monitored.
在播放音频时,例如当用户进行通话时,当周围环境中存在噪声时,通话音量越大,用户越容易听清楚对端用户说的话。基于此,本实施例中,相关参数值包括噪声参数值。预先设置环境噪声的噪声参数值对应的音量值,根据该音量值输出的音频能够保证用于处于该环境噪声下,用户依然能够清楚地听到播放的音频的内容。也就是说,噪声参数值越大,则对应的音量越大;噪声参数越小,对应的音量越小。When playing audio, for example, when a user makes a call, when there is noise in the surrounding environment, the louder the call volume, the easier the user can hear the words spoken by the opposite user. Based on this, in this embodiment, the relevant parameter value includes a noise parameter value. The volume value corresponding to the noise parameter value of the environmental noise is preset, and the audio output according to the volume value can be guaranteed to be used in the ambient noise, and the user can still clearly hear the content of the played audio. That is to say, the larger the noise parameter value is, the larger the corresponding volume is; the smaller the noise parameter is, the smaller the corresponding volume is.
在播放音频之前,先监测周围环境噪声的噪声参数值。从而能够在噪声参数值对应的噪声中,通过调整音量,保证用户能够清楚地听到播放的音频的内容。Monitor the noise parameter values of the ambient noise before playing the audio. Therefore, it is possible to ensure that the user can clearly hear the content of the played audio by adjusting the volume among the noise corresponding to the noise parameter value.
本发明的实施例提供的技术方案可以包括以下有益效果:通过监测环境噪声的噪声参数值,进而确定该噪声参数值对应的音量,保证用户能够清楚的听到根据该音量值播放的音频。 The technical solution provided by the embodiment of the present invention may include the following beneficial effects: by monitoring the noise parameter value of the environmental noise, and further determining the volume corresponding to the noise parameter value, ensuring that the user can clearly hear the audio played according to the volume value.
上述步骤S201-S202、S301-S302、S401-S402、A1、B1均为上述步骤S101的进一步细化方案,均介绍了一种音频播放的相关参数值的监测方案。本发明中,上述各个相关参数值的监测方案可以结合实施。The above steps S201-S202, S301-S302, S401-S402, A1, B1 are all further refinement schemes of the above step S101, and all of them introduce a monitoring scheme of related parameter values of audio playback. In the present invention, the monitoring scheme of each of the above related parameter values can be implemented in combination.
通过以上介绍了解了控制音量的实现过程,该过程由移动终端和计算机实现,下面分别针对两个设备的内部结构和功能进行介绍。Through the above introduction, the implementation process of controlling the volume is understood. The process is implemented by the mobile terminal and the computer. The internal structure and function of the two devices are respectively introduced below.
图5是根据一示例性实施例示出的一种控制音量的装置框图。参照图7,该装置包括:FIG. 5 is a block diagram of a device for controlling volume according to an exemplary embodiment. Referring to Figure 7, the apparatus includes:
监测模块51,用于监测音频播放的相关参数值;The monitoring module 51 is configured to monitor related parameter values of audio playback;
确定模块52,用于确定相关参数值对应的音量值;a determining module 52, configured to determine a volume value corresponding to the relevant parameter value;
播放模块53,用于根据确定的音量值播放音频。The playing module 53 is configured to play the audio according to the determined volume value.
在一个实施例中,所述相关参数值包括:播放所述音频设备的设备类型值;In an embodiment, the related parameter value includes: playing a device type value of the audio device;
如图6所示,监测模块51,包括:As shown in FIG. 6, the monitoring module 51 includes:
第一监测子模块61,用于监测播放音频设备的设备连接信号;a first monitoring sub-module 61, configured to monitor a device connection signal for playing an audio device;
第一确定子模块62,用于根据设备连接信号确定设备类型值。The first determining sub-module 62 is configured to determine a device type value according to the device connection signal.
在一个实施例中,所述相关参数值包括:所述音频的内容类型值;In one embodiment, the related parameter value includes: a content type value of the audio;
如图7所示,监测模块51,包括:As shown in FIG. 7, the monitoring module 51 includes:
第二监测子模块71,用于监测音频的特征;a second monitoring sub-module 71, configured to monitor characteristics of the audio;
第二确定子模块72,用于根据音频的特征确定音频的内容类型值。The second determining sub-module 72 is configured to determine a content type value of the audio according to a feature of the audio.
在一个实施例中,所述相关参数值包括:播放所述音频应用的应用类型值;In an embodiment, the related parameter value includes: playing an application type value of the audio application;
如图8所示,监测模块51,包括:As shown in FIG. 8, the monitoring module 51 includes:
第三监测子模块81,用于监测播放音频的应用;a third monitoring sub-module 81, configured to monitor an application for playing audio;
第三确定子模块82,用于确定应用的应用类型值。The third determining sub-module 82 is configured to determine an application type value of the application.
在一个实施例中,所述相关参数值包括:用户的距离值;In an embodiment, the related parameter value includes: a distance value of the user;
如图9所示,监测模块51,包括:As shown in FIG. 9, the monitoring module 51 includes:
第四监测子模块91,用于监测用户到本地的距离值。The fourth monitoring sub-module 91 is configured to monitor a distance value of the user to the local.
在一个实施例中,所述相关参数值包括:噪声参数值;In an embodiment, the related parameter value includes: a noise parameter value;
如图10所示,监测模块51,包括:As shown in FIG. 10, the monitoring module 51 includes:
第五监测子模块101,用于监测环境噪声的噪声参数值。The fifth monitoring sub-module 101 is configured to monitor a noise parameter value of the environmental noise.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。With regard to the apparatus in the above embodiments, the specific manner in which the respective modules perform the operations has been described in detail in the embodiment relating to the method, and will not be explained in detail herein.
图11是根据一示例性实施例示出的一种用于控制音量的装置1100的框图。例如,装置1100可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 11 is a block diagram of an apparatus 1100 for controlling volume, according to an exemplary embodiment. For example, device 1100 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图11,装置1100可以包括以下一个或多个组件:处理组件1102,存储器1104,电源组件1106,多媒体组件1108,音频组件1110,输入/输出(I/O)的接口1112,传感器组件1114,以及通信组件1116。 Referring to Figure 11, apparatus 1100 can include one or more of the following components: processing component 1102, memory 1104, power component 1106, multimedia component 1108, audio component 1110, input/output (I/O) interface 1112, sensor component 1114, And a communication component 1116.
处理组件1102通常控制装置1100的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1102可以包括一个或多个处理器1120来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1102可以包括一个或多个模块,便于处理组件1102和其他组件之间的交互。例如,处理组件1102可以包括多媒体模块,以方便多媒体组件1108和处理组件1102之间的交互。 Processing component 1102 typically controls the overall operation of device 1100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 1102 can include one or more processors 1120 to execute instructions to perform all or part of the steps of the above described methods. Moreover, processing component 1102 can include one or more modules to facilitate interaction between component 1102 and other components. For example, the processing component 1102 can include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
存储器1104被配置为存储各种类型的数据以支持在装置1100的操作。这些数据的示例包括用于在装置1100上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1104可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。 Memory 1104 is configured to store various types of data to support operation at device 1100. Examples of such data include instructions for any application or method operating on device 1100, contact data, phone book data, messages, pictures, videos, and the like. The memory 1104 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable. Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
电源组件1106为装置1100的各种组件提供电源。电源组件1106可以包括电源管理系统,一个或多个电源,及其他与为装置1100生成、管理和分配电源相关联的组件。 Power component 1106 provides power to various components of device 1100. Power component 1106 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 1100.
多媒体组件1108包括在所述装置1100和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1108包括一个前置摄像头和/或后置摄像头。当装置1100处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1108 includes a screen between the device 1100 and a user that provides an output interface. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front camera and/or a rear camera. When the device 1100 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件1110被配置为输出和/或输入音频信号。例如,音频组件1110包括一个麦克风(MIC),当装置1100处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1104或经由通信组件1116发送。在一些实施例中,音频组件1110还包括一个扬声器,用于输出音频信号。The audio component 1110 is configured to output and/or input an audio signal. For example, the audio component 1110 includes a microphone (MIC) that is configured to receive an external audio signal when the device 1100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in memory 1104 or transmitted via communication component 1116. In some embodiments, the audio component 1110 also includes a speaker for outputting an audio signal.
I/O接口1112为处理组件1102和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1112 provides an interface between the processing component 1102 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
传感器组件1114包括一个或多个传感器,用于为装置1100提供各个方面的状态评估。例如,传感器组件1114可以检测到装置1100的打开/关闭状态,组件的相对定位,例如所述组件为装置1100的显示器和小键盘,传感器组件1114还可以检测装置1100或装置1100的一个组件的位置改变,用户与装置1100接触的存在或不存在,装置1100方位或加速/减速和装置1100的温度变化。传感器组件1114可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1114还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1114还可以包括加速度传 感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor assembly 1114 includes one or more sensors for providing a status assessment of various aspects to device 1100. For example, sensor assembly 1114 can detect an open/closed state of device 1100, relative positioning of components, such as the display and keypad of device 1100, and sensor component 1114 can also detect the location of one component of device 1100 or device 1100. Changes, the presence or absence of user contact with device 1100, device 1100 orientation or acceleration/deceleration and temperature change of device 1100. Sensor assembly 1114 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1114 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 1114 can also include an acceleration pass Sensor, gyro sensor, magnetic sensor, pressure sensor or temperature sensor.
通信组件1116被配置为便于装置1100和其他设备之间有线或无线方式的通信。装置1100可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1116经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1116还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。 Communication component 1116 is configured to facilitate wired or wireless communication between device 1100 and other devices. The device 1100 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, communication component 1116 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a near field communication (NFC) module to facilitate short range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
在示例性实施例中,装置1100可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 1100 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1104,上述指令可由装置1100的处理器1120执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium comprising instructions, such as a memory 1104 comprising instructions executable by processor 1120 of apparatus 1100 to perform the above method. For example, the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
一种控制音量的装置,包括:A device for controlling volume, comprising:
处理器;processor;
用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
其中,所述处理器被配置为:Wherein the processor is configured to:
监测音频播放的相关参数值;Monitoring related parameter values of audio playback;
确定所述相关参数值对应的音量值;Determining a volume value corresponding to the relevant parameter value;
根据确定的所述音量值播放所述音频。The audio is played according to the determined volume value.
所述处理器还可以被配置为:The processor can also be configured to:
所述相关参数值包括:播放所述音频的设备的设备类型值;The related parameter value includes: a device type value of a device that plays the audio;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测播放音频设备的设备连接信号,根据设备连接信号确定设备类型值。The device connection signal of the audio device is monitored, and the device type value is determined according to the device connection signal.
所述处理器还可以被配置为:The processor can also be configured to:
所述相关参数值包括:所述音频的内容类型值;The related parameter value includes: a content type value of the audio;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测所述音频的特征,根据所述音频的特征确定音频的内容类型值。A feature of the audio is monitored, and a content type value of the audio is determined based on characteristics of the audio.
所述处理器还可以被配置为:The processor can also be configured to:
所述相关参数值包括:播放所述音频应用的应用类型值;The related parameter value includes: playing an application type value of the audio application;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测播放所述音频的应用,确定所述应用的应用类型值。An application that plays the audio is monitored to determine an application type value for the application.
所述处理器还可以被配置为:The processor can also be configured to:
所述相关参数值包括:用户的距离值; The related parameter value includes: a distance value of the user;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测用户到本地的距离值。Monitor user distance to local distance.
所述处理器还可以被配置为:The processor can also be configured to:
所述相关参数值包括:噪声参数值;The related parameter value includes: a noise parameter value;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测环境噪声的噪声参数值。The value of the noise parameter that monitors ambient noise.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种控制音量的方法,所述方法包括:A non-transitory computer readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to perform a method of controlling volume, the method comprising:
监测音频播放的相关参数值;Monitoring related parameter values of audio playback;
确定所述相关参数值对应的音量值;Determining a volume value corresponding to the relevant parameter value;
根据确定的所述音量值播放所述音频。The audio is played according to the determined volume value.
所述存储介质中的指令还可以包括:The instructions in the storage medium may further include:
所述相关参数值包括:播放所述音频设备的设备类型值;The related parameter value includes: playing a device type value of the audio device;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测播放音频设备的设备连接信号,根据设备连接信号确定设备类型值。The device connection signal of the audio device is monitored, and the device type value is determined according to the device connection signal.
所述存储介质中的指令还可以包括:The instructions in the storage medium may further include:
所述相关参数值包括:所述音频的内容类型值;The related parameter value includes: a content type value of the audio;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测所述音频的特征,根据所述音频的特征确定音频的内容类型值。A feature of the audio is monitored, and a content type value of the audio is determined based on characteristics of the audio.
所述存储介质中的指令还可以包括:The instructions in the storage medium may further include:
所述相关参数值包括:播放所述音频的应用的应用类型值;The related parameter value includes: an application type value of an application that plays the audio;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测播放所述音频的应用,确定所述应用的应用类型值。An application that plays the audio is monitored to determine an application type value for the application.
所述存储介质中的指令还可以包括:The instructions in the storage medium may further include:
所述相关参数值包括:用户的距离值;The related parameter value includes: a distance value of the user;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测用户到本地的距离值。Monitor user distance to local distance.
所述存储介质中的指令还可以包括:The instructions in the storage medium may further include:
所述相关参数值包括:噪声参数值;The related parameter value includes: a noise parameter value;
所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
监测环境噪声的噪声参数值。The value of the noise parameter that monitors ambient noise.
本领域技术人员在考虑说明书及实践这里发明的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本发明未发明的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。 Other embodiments of the invention will be apparent to those skilled in the <RTIgt; The present application is intended to cover any variations, uses, or adaptations of the present invention, which are in accordance with the general principles of the invention and include common general knowledge or conventional technical means . The specification and examples are to be considered as illustrative only,
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。 It is to be understood that the invention is not limited to the details of the details of The scope of the invention is limited only by the appended claims.

Claims (14)

  1. 一种控制音量的方法,其特征在于,包括:A method of controlling volume, characterized by comprising:
    监测音频播放的相关参数值;Monitoring related parameter values of audio playback;
    确定所述相关参数值对应的音量值;Determining a volume value corresponding to the relevant parameter value;
    根据确定的所述音量值播放所述音频。The audio is played according to the determined volume value.
  2. 根据权利要求1所述的控制音量的方法,其特征在于,所述相关参数值包括:播放所述音频设备的设备类型值;The method of controlling volume according to claim 1, wherein the related parameter value comprises: playing a device type value of the audio device;
    所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
    监测播放音频设备的设备连接信号,根据设备连接信号确定设备类型值。The device connection signal of the audio device is monitored, and the device type value is determined according to the device connection signal.
  3. 根据权利要求1所述的控制音量的方法,其特征在于,所述相关参数值包括:所述音频的内容类型值;The method of controlling volume according to claim 1, wherein the correlation parameter value comprises: a content type value of the audio;
    所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
    监测所述音频的特征,根据所述音频的特征确定音频的内容类型值。A feature of the audio is monitored, and a content type value of the audio is determined based on characteristics of the audio.
  4. 根据权利要求1所述的控制音量的方法,其特征在于,所述相关参数值包括:播放所述音频应用的应用类型值;The method of controlling volume according to claim 1, wherein the related parameter value comprises: playing an application type value of the audio application;
    所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
    监测播放所述音频的应用,确定所述应用的应用类型值。An application that plays the audio is monitored to determine an application type value for the application.
  5. 根据权利要求1所述的控制音量的方法,其特征在于,所述相关参数值包括:用户的距离值;The method of controlling volume according to claim 1, wherein the related parameter value comprises: a distance value of the user;
    所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
    监测用户到本地的距离值。Monitor user distance to local distance.
  6. 根据权利要求1所述的控制音量的方法,其特征在于,所述相关参数值包括:噪声参数值;The method of controlling volume according to claim 1, wherein the correlation parameter value comprises: a noise parameter value;
    所述监测音频播放的相关参数值,包括:The related parameter values for monitoring audio playback include:
    监测环境噪声的噪声参数值。The value of the noise parameter that monitors ambient noise.
  7. 一种控制音量的装置,其特征在于,包括:A device for controlling volume, characterized in that it comprises:
    监测模块,用于监测音频播放的相关参数值;a monitoring module for monitoring related parameter values of audio playback;
    确定模块,用于确定所述相关参数值对应的音量值;a determining module, configured to determine a volume value corresponding to the related parameter value;
    播放模块,用于根据确定的所述音量值播放所述音频。And a playing module, configured to play the audio according to the determined volume value.
  8. 根据权利要求7所述的控制音量的装置,其特征在于,所述相关参数值包括:播放所述音频设备的设备类型值;The apparatus for controlling volume according to claim 7, wherein the related parameter value comprises: playing a device type value of the audio device;
    所述监测模块,包括:The monitoring module includes:
    第一监测子模块,用于监测播放音频设备的设备连接信号;a first monitoring submodule, configured to monitor a device connection signal for playing an audio device;
    第一确定子模块,用于根据设备连接信号确定设备类型值。 The first determining submodule is configured to determine a device type value according to the device connection signal.
  9. 根据权利要求7所述的控制音量的装置,其特征在于,所述相关参数值包括:所述音频的内容类型值;The apparatus for controlling volume according to claim 7, wherein said related parameter value comprises: a content type value of said audio;
    所述监测模块,包括:The monitoring module includes:
    第二监测子模块,用于监测所述音频的特征;a second monitoring submodule for monitoring characteristics of the audio;
    第二确定子模块,用于根据所述音频的特征确定音频的内容类型值。And a second determining submodule, configured to determine a content type value of the audio according to the feature of the audio.
  10. 根据权利要求7所述的控制音量的装置,其特征在于,所述相关参数值包括:播放所述音频应用的应用类型值;The apparatus for controlling volume according to claim 7, wherein the related parameter value comprises: playing an application type value of the audio application;
    所述监测模块,包括:The monitoring module includes:
    第三监测子模块,用于监测播放所述音频的应用;a third monitoring submodule for monitoring an application for playing the audio;
    第三确定子模块,用于确定所述应用的应用类型值。The third determining submodule is configured to determine an application type value of the application.
  11. 根据权利要求7所述的控制音量的装置,其特征在于,所述相关参数值包括:用户的距离值;The apparatus for controlling volume according to claim 7, wherein the relevant parameter value comprises: a distance value of the user;
    所述监测模块,包括:The monitoring module includes:
    第四监测子模块,用于监测用户到本地的距离值。The fourth monitoring sub-module is configured to monitor the distance value of the user to the local.
  12. 根据权利要求7所述的控制音量的装置,其特征在于,所述相关参数值包括:噪声参数值;The apparatus for controlling volume according to claim 7, wherein the correlation parameter value comprises: a noise parameter value;
    所述监测模块,包括:The monitoring module includes:
    第五监测子模块,用于监测环境噪声的噪声参数值。The fifth monitoring sub-module is used to monitor the noise parameter value of the environmental noise.
  13. 一种控制音量的装置,其特征在于,包括:A device for controlling volume, characterized in that it comprises:
    处理器;processor;
    用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
    其中,所述处理器被配置为:Wherein the processor is configured to:
    监测音频播放的相关参数值;Monitoring related parameter values of audio playback;
    确定所述相关参数值对应的音量值;Determining a volume value corresponding to the relevant parameter value;
    根据确定的所述音量值播放所述音频。The audio is played according to the determined volume value.
  14. 一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种控制音量的方法,所述方法包括:A non-transitory computer readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to perform a method of controlling volume, the method comprising:
    监测音频播放的相关参数值;Monitoring related parameter values of audio playback;
    确定所述相关参数值对应的音量值;Determining a volume value corresponding to the relevant parameter value;
    根据确定的所述音量值播放所述音频。 The audio is played according to the determined volume value.
PCT/CN2016/100440 2016-09-27 2016-09-27 Method and apparatus for controlling volume WO2018058331A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201680004402.6A CN108140400A (en) 2016-09-27 2016-09-27 Control the method and device of volume
PCT/CN2016/100440 WO2018058331A1 (en) 2016-09-27 2016-09-27 Method and apparatus for controlling volume

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/100440 WO2018058331A1 (en) 2016-09-27 2016-09-27 Method and apparatus for controlling volume

Publications (1)

Publication Number Publication Date
WO2018058331A1 true WO2018058331A1 (en) 2018-04-05

Family

ID=61762402

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100440 WO2018058331A1 (en) 2016-09-27 2016-09-27 Method and apparatus for controlling volume

Country Status (2)

Country Link
CN (1) CN108140400A (en)
WO (1) WO2018058331A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416018A (en) * 2022-03-28 2022-04-29 龙旗电子(惠州)有限公司 Audio playing method and device, electronic equipment and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113923561A (en) * 2020-07-08 2022-01-11 阿里巴巴集团控股有限公司 Intelligent sound box sound effect adjusting method and device
CN113038337B (en) * 2021-02-02 2022-10-28 深圳千岸科技股份有限公司 Audio playing method, wireless earphone and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090169023A1 (en) * 2007-12-27 2009-07-02 Ching-Chieh Wang Method for controlling volume of a multimedia player
CN102693737A (en) * 2012-06-11 2012-09-26 华为终端有限公司 Volume adjusting method and device
CN104601130A (en) * 2013-10-30 2015-05-06 腾讯科技(北京)有限公司 Method and device for adjusting volume
CN105225681A (en) * 2014-06-26 2016-01-06 美的集团股份有限公司 Speech playing method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119106B (en) * 2007-07-12 2010-09-22 深圳市融创天下科技发展有限公司 Output volume automatic regulation method of media player
CN101729958A (en) * 2008-10-24 2010-06-09 深圳富泰宏精密工业有限公司 Audio frequency output device
CN104123176A (en) * 2014-07-18 2014-10-29 广州市久邦数码科技有限公司 Method and system for automatically regulating game volume and screen brightness of mobile terminal
CN105955695B (en) * 2016-04-22 2019-02-15 捷开通讯(深圳)有限公司 A kind of method and intelligent terminal that intelligent terminal volume is set

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090169023A1 (en) * 2007-12-27 2009-07-02 Ching-Chieh Wang Method for controlling volume of a multimedia player
CN102693737A (en) * 2012-06-11 2012-09-26 华为终端有限公司 Volume adjusting method and device
CN104601130A (en) * 2013-10-30 2015-05-06 腾讯科技(北京)有限公司 Method and device for adjusting volume
CN105225681A (en) * 2014-06-26 2016-01-06 美的集团股份有限公司 Speech playing method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416018A (en) * 2022-03-28 2022-04-29 龙旗电子(惠州)有限公司 Audio playing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108140400A (en) 2018-06-08

Similar Documents

Publication Publication Date Title
CN106454644B (en) Audio playing method and device
CN107493500B (en) Multimedia resource playing method and device
CN107994879B (en) Loudness control method and device
CN105138319B (en) Event-prompting method and device
CN108845787B (en) Audio adjusting method, device, terminal and storage medium
US20180132027A1 (en) Programmable interactive stereo headphones with tap functionality and network connectivity
CN105407368A (en) Multimedia playing method, device and system
CN108093132B (en) Terminal device and ringtone volume control method
CN109429152A (en) Speaker unit, electronic equipment, effect adjusting method and device
WO2018058331A1 (en) Method and apparatus for controlling volume
CN111698593B (en) Active noise reduction method and device, and terminal
CN114416015A (en) Audio adjusting method and device, electronic equipment and readable storage medium
CN114513571A (en) Device connection method and device, electronic device and readable storage medium
CN207117943U (en) Speaker unit and electronic equipment
CN106101441B (en) Terminal control method and device
US11388281B2 (en) Adaptive method and apparatus for intelligent terminal, and terminal
CN111694539B (en) Method, device and medium for switching between earphone and loudspeaker
CN106789943B (en) Playing method and device of Bluetooth equipment
CN106936972B (en) Method, device and system for controlling audio channel
CN112689051B (en) Audio playing control method and device, mobile terminal and storage medium
CN109408025B (en) Audio playing method, device and storage medium
CN108491180B (en) Audio playing method and device
CN115412632A (en) Audio data processing method, device, terminal and storage medium
CN114567840B (en) Audio output method and device, mobile terminal and storage medium
CN115410547B (en) Audio processing method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16917091

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16917091

Country of ref document: EP

Kind code of ref document: A1