CN110827863A - Method, device and terminal for intelligently adjusting volume and readable storage medium - Google Patents

Method, device and terminal for intelligently adjusting volume and readable storage medium Download PDF

Info

Publication number
CN110827863A
CN110827863A CN201911084473.3A CN201911084473A CN110827863A CN 110827863 A CN110827863 A CN 110827863A CN 201911084473 A CN201911084473 A CN 201911084473A CN 110827863 A CN110827863 A CN 110827863A
Authority
CN
China
Prior art keywords
signal
data
noise ratio
noise
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911084473.3A
Other languages
Chinese (zh)
Inventor
王岁宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wingtech Electronic Technology Co Ltd
Original Assignee
Xian Wingtech Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wingtech Electronic Technology Co Ltd filed Critical Xian Wingtech Electronic Technology Co Ltd
Priority to CN201911084473.3A priority Critical patent/CN110827863A/en
Publication of CN110827863A publication Critical patent/CN110827863A/en
Pending legal-status Critical Current

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
    • G11B20/10Digital recording or reproducing
    • G11B20/10009Improvement or modification of read or write signals
    • G11B20/10018Improvement or modification of read or write signals analog processing for digital recording or reproduction
    • G11B20/10027Improvement or modification of read or write signals analog processing for digital recording or reproduction adjusting the signal strength during recording or reproduction, e.g. variable gain amplifiers
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/20Automatic control
    • H03G3/22Automatic control in amplifiers having discharge tubes
    • H03G3/24Control dependent upon ambient noise level or sound level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying

Landscapes

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

Abstract

The invention belongs to the technical field of audio playing, and provides a method for intelligently adjusting volume, which comprises the following steps: acquiring preset output volume data and receiving a playing instruction of an audio file; responding to a playing instruction, and playing an audio file according to preset output volume data; starting detection on environmental noise while playing an audio file, acquiring a sound signal, separating the sound signal into an audio signal and a noise signal, calculating a signal-to-noise ratio and outputting real-time signal-to-noise ratio data; and adjusting the preset output volume data according to the real-time signal-to-noise ratio data. According to the invention, the environmental noise signal is obtained by detecting the environmental noise when the audio file is played, the noise signal is analyzed and the signal to noise ratio is calculated, the volume change is output by the automatic adjusting equipment according to the change of the signal to noise ratio, the user does not need to frequently and manually adjust the volume, the user obtains the optimal sound information obtaining effect, and the user experience is improved.

Description

Method, device and terminal for intelligently adjusting volume and readable storage medium
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of audio playing technologies, and in particular, to a method, an apparatus, a terminal, and a readable storage medium for intelligently adjusting a volume.
[ background of the invention ]
At present, with the increasing development of science and technology, it has become common for people to acquire audio messages of various devices, however, people often encounter the following situations in the process of using various devices, especially mobile terminals: the earphone is worn to listen to music in a quiet office, and the volume of the earphone is proper at the moment; when the user walks to the external environment, the user cannot hear clearly due to large noise of the external environment, and the volume of the earphone needs to be adjusted manually; when a mobile terminal loudspeaker or a receiver is used for playing sound, the volume also needs to be manually adjusted due to the difference of external environments, and the use requirements of users cannot be met.
[ summary of the invention ]
The invention aims to provide a method, a device, a terminal and a readable storage medium for intelligently adjusting volume, and aims to solve the technical problem that the existing terminal equipment cannot intelligently adjust the volume of the equipment and cannot meet the use requirements of users.
In order to achieve the above object, in an embodiment of the present invention, a first aspect of the present invention provides a method for intelligently adjusting volume, which is applied to a device terminal, and includes the following steps: acquiring preset output volume data and receiving a playing instruction of an audio file; responding to the playing instruction, and playing the audio file according to the preset output volume data; starting detection on environmental noise while playing the audio file, acquiring a sound signal, separating the sound signal into an audio signal and a noise signal, calculating a signal-to-noise ratio and outputting real-time signal-to-noise ratio data; wherein, the signal-to-noise ratio is the ratio of the intensity of the audio signal to the intensity of the noise signal; and adjusting the preset output volume data according to the real-time signal-to-noise ratio data.
In a preferred embodiment, the step of playing the audio file according to the preset output volume data in response to the playing instruction includes: retrieving whether the audio file is matched in the local file; if so, playing the audio file according to the preset output volume data; if not, sending a downloading request of the audio file to a server, receiving the audio file returned by the server according to the downloading request, and playing the audio file according to the preset output volume data.
In a preferred embodiment, the adjusting the preset output volume data according to the real-time snr data includes the following steps: acquiring initial signal-to-noise ratio data when the detection of the environmental noise is started, and defining the initial signal-to-noise ratio data as reference signal-to-noise ratio data; judging the change and the change amplitude of the signal-to-noise ratio according to the comparison result of the real-time signal-to-noise ratio data and the reference signal-to-noise ratio data; when the change of the signal to noise ratio is increased, correspondingly reducing the preset output volume data according to the change amplitude; and when the change of the signal-to-noise ratio is reduced, correspondingly increasing the preset output volume data according to the change amplitude.
In a preferred embodiment, the step of starting detection of the environmental noise while playing the audio file, acquiring a sound signal, separating the sound signal into an audio signal and a noise signal, calculating a signal-to-noise ratio, and outputting real-time signal-to-noise ratio data further includes the steps of: acquiring an amplitude threshold value of the real-time signal-to-noise ratio data change in preset unit time; defining the real-time signal-to-noise ratio data with the change of the real-time signal-to-noise ratio data within the amplitude threshold value in unit time as normal data, and defining the real-time signal-to-noise ratio data exceeding the amplitude threshold value as abnormal data; counting the duration of the abnormal data; and when the duration is less than a preset reference time, filtering and shielding the abnormal data.
In a preferred embodiment, the step of adjusting the preset output volume data according to the real-time snr data further comprises the following steps: receiving a manual adjustment instruction with volume adjustment information; and correspondingly adjusting the preset output volume data according to the volume adjustment information, and stopping detecting the environmental noise.
In a preferred embodiment, after the step of adjusting the preset output volume data according to the volume adjustment information and stopping detecting the environmental noise, the method further includes: and after a preset certain time, recovering the detection of the environmental noise, acquiring the real-time signal-to-noise ratio data, and adjusting the preset output volume data according to the real-time signal-to-noise ratio data.
The second aspect of the present invention provides an apparatus for intelligently adjusting volume, comprising: the receiving module is used for acquiring preset output volume data and receiving a playing instruction of an audio file; the playing module is used for responding to the playing instruction and playing the audio file according to the preset output volume data; the noise detection module is used for starting detection on environmental noise while playing the audio file, acquiring a sound signal, separating the sound signal into an audio signal and a noise signal, calculating a signal-to-noise ratio and outputting real-time signal-to-noise ratio data; wherein, the signal-to-noise ratio is the ratio of the intensity of the audio signal to the intensity of the noise signal; and the volume adjusting module is used for adjusting the preset output volume data according to the real-time signal-to-noise ratio data.
In a preferred embodiment, the playing module includes: the local retrieval submodule is used for retrieving whether the audio file is matched in the local file; the file playing submodule is used for playing the audio file according to the preset output volume data; and the download receiving submodule is used for sending a download request of the audio file to a server and receiving the audio file returned by the server according to the download request.
A third aspect of the present invention provides a terminal, including: one or more processors; storage means for storing one or more programs; when executed by the one or more processors, the one or more programs cause the one or more processors to implement the method for intelligently adjusting volume as described in any of the above embodiments.
A fourth aspect of the present invention provides a readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for intelligently adjusting volume in any of the above embodiments.
According to the invention, the environmental noise signal is obtained by detecting the environmental noise when the audio file is played, the noise signal is analyzed and the signal to noise ratio is calculated, and the output volume of the equipment is adjusted according to the change of the signal to noise ratio, so that the output volume of the equipment is stabilized within a certain range, the user does not need to frequently and manually adjust the volume, the user obtains the optimal sound information obtaining effect, and the user experience is improved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some preferred embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive efforts.
FIG. 1 is a flow chart of a method for intelligently adjusting volume according to the present invention;
fig. 2 is a flowchart of specific sub-steps involved in step S11 in the method for intelligently adjusting volume shown in fig. 1;
FIG. 3 is a flow chart of a preferred embodiment of the method of intelligently adjusting volume shown in FIG. 1;
FIG. 4 is a flow chart of another preferred embodiment of the method of intelligently adjusting volume shown in FIG. 1;
FIG. 5 is an architecture diagram of the device for intelligently adjusting volume according to the present invention;
fig. 6 is an architecture diagram of a playing module in the device for intelligently adjusting volume shown in fig. 5;
FIG. 7 is an architecture diagram of a volume adjustment module in the intelligent volume adjustment apparatus shown in FIG. 5;
fig. 8 is an architecture diagram of a preferred embodiment of the intelligent volume adjusting device shown in fig. 5;
fig. 9 is an architecture diagram of another preferred embodiment of the apparatus for intelligently adjusting volume shown in fig. 5.
[ detailed description ] embodiments
In order to make the objects, technical solutions and advantageous effects of the present invention more clearly apparent, the present invention is further described in detail below with reference to the accompanying drawings and the detailed description. It should be understood that the detailed description and specific examples, while indicating the preferred embodiment of the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
The technical problem that the volume of the existing terminal equipment cannot be intelligently adjusted so that the use requirement of a user cannot be met is solved.
Referring to fig. 1, in an embodiment of the present invention, a method of intelligently adjusting a volume includes steps (S10, S11, S12, S13).
Step S10: and acquiring preset output volume data and receiving a playing instruction of the audio file.
Step S11: and responding to the playing instruction, and playing the audio file according to the preset output volume data.
It should be noted that the preset output volume data is an initial value set by the user; the playing instruction of the audio file comprises a playing command of a single audio file or a music library consisting of a series of single audio files according to a certain sequence. The audio file may include any type of sound-outputting file that can be played through the playing terminal device, such as a song, pure music, a voiced novel, a vocal presentation, and the like, and also includes an audio portion in any video format.
Further, in a preferred implementation, referring to fig. 2, step S11 includes steps (S111, S112, S113): step S111: it is retrieved in the local file whether an audio file is matched. Step S112: and when the local file is matched with the audio file, playing the audio file according to the preset output volume data. Step S113: and when the audio file is not matched, sending a downloading request of the audio file to the server, receiving the audio file returned by the server according to the downloading request, and playing the audio file according to preset output volume data.
For example, when the terminal device receives a playing instruction of a specific audio file, the audio file in the instruction can be subjected to matching retrieval on the local audio file through the file name. The local file comprises a downloaded file, a file cache and the like. When the local file has no matching result, the terminal directly sends a matching retrieval request to a server (such as a cloud server), and when the server receives the audio file in the matching result output by the request, the terminal sends a downloading request to the server, receives the audio file and plays the audio file. Therefore, the user avoids the problem that playing fails due to the absence of the corresponding local file or repeated downloading due to the presence of the local file.
Step S12: the method comprises the steps of starting detection of environmental noise while playing an audio file, obtaining a sound signal, separating the sound signal into an audio signal and a noise signal, calculating a signal-to-noise ratio and outputting real-time signal-to-noise ratio data.
Specifically, the signal-to-noise ratio is a ratio of the intensity of the audio signal to the intensity of the noise signal, and when the audio signal is fixed, the larger the external noise signal is, the smaller the signal-to-noise ratio is. When a user listens to sound information by using the terminal device, the user feels different in auditory sense to the same output volume under different noise environments, namely, external noise interferes with the user in obtaining specific sound information, and therefore, the volume needs to be adjusted to ensure the auditory experience of the user in different noise environments. Therefore, when the terminal is detected to play the audio file, the detection of the environmental noise is started, the playing volume of the current audio file and the signal to noise ratio of the environmental noise signal are obtained, and the volume of the audio file is adjusted according to the signal to noise ratio.
Step S13: and adjusting the preset output volume data according to the real-time signal-to-noise ratio data.
Specifically, the initial preset output volume data of the user is set by referring to the current noise environment, so that the initial signal-to-noise ratio data detected when the audio file is played is used as a reference, the corresponding amplitude adjustment is performed on the preset output volume data of the terminal equipment according to the change of the real-time signal-to-noise ratio data relative to the initial signal-to-noise ratio, the use psychological expectation of the user is met, and the use experience of the user is improved. The corresponding relationship between the amplitude of the data change and the amplitude of the output volume adjustment is not limited in the present invention.
Specifically, step S13 includes the following steps: acquiring initial signal-to-noise ratio data when the detection of the environmental noise is started, and defining the initial signal-to-noise ratio data as reference signal-to-noise ratio data; judging the change and the change amplitude of the signal-to-noise ratio according to the comparison result of the real-time signal-to-noise ratio data and the reference signal-to-noise ratio data; when the signal-to-noise ratio changes to increase, the preset output volume data is correspondingly reduced according to the change amplitude; and when the change of the signal-to-noise ratio is reduced, correspondingly increasing preset output volume data according to the change amplitude.
Further, in one embodiment, referring to fig. 3, the step S13 is followed by the following steps (S131, S132):
step S131: acquiring an amplitude threshold value of real-time signal-to-noise ratio data change in preset unit time; the real-time signal-to-noise ratio data with the real-time signal-to-noise ratio data change within the amplitude threshold value in unit time are defined as normal data, and the real-time signal-to-noise ratio data exceeding the amplitude threshold value are defined as abnormal data.
Step S132: counting the duration of abnormal data; and when the duration time is less than the preset reference time, filtering and shielding the abnormal data.
Specifically, a maximum range of variation of the snr data in a unit time may be set, and the maximum range of increase or decrease of the snr data in the unit time is a variation amplitude threshold, that is, the amplitude threshold is the maximum range of increase or decrease of the snr data in the unit time. Wherein the amplitude threshold value may be determined according to time information (day or night) according to the current time, information (age, occupation, hearing, etc.) of the user, etc.; in addition, external noise of the terminal device may be increased sharply due to short-time high-frequency sound sources (such as thunder, firecracker sound, explosion sound, etc.), the amplitude of the change of the snr data within a period of time may even exceed a preset amplitude threshold, and if the output volume is adjusted up correspondingly, strong discomfort of the user's hearing may be caused. Therefore, abnormal data can be directly screened out, corresponding adjustment can be carried out according to the amplitude threshold value, and damage to hearing of a user caused by excessive double improvement of environmental noise and preset output volume data of the terminal equipment is avoided.
Of course, an absolute upper limit or an absolute lower limit of the preset output volume data may also be set, for example, if the external noise continuously changes and rises, the part of the preset output volume data that should exceed the absolute upper limit according to the corresponding adjustment rule is treated with the absolute upper limit, and the absolute lower limit is treated with the same principle. Therefore, the technical scheme can avoid that the terminal equipment increases or decreases the output volume according to the increase or decrease of the external noise all the time, and the hearing damage or the hearing unclear is caused to the user.
Further, in one embodiment, referring to fig. 4, the step S13 is followed by the following steps (S141, S142):
step S141: receiving a manual adjustment instruction with volume adjustment information.
Step S142: and presetting output volume data according to the corresponding adjustment of the volume adjustment information, and stopping the detection of the environmental noise.
Specifically, when the user does not need to perform automatic adjustment at present, but outputs the volume through manual adjustment, the terminal receives a manual adjustment instruction with volume adjustment information of the user and performs corresponding adjustment, and meanwhile, detection of the environmental noise is stopped, and operability of the terminal device is improved.
Further, in conjunction with the steps (S141, S142), referring to fig. 4, the step S142 further includes a step S143:
step S143: and after a preset certain time, recovering the detection of the environmental noise, acquiring real-time signal-to-noise ratio data, and adjusting the preset output volume data according to the real-time signal-to-noise ratio data.
The user can freely set the preset time, so that the automatic adjustment of the preset output volume data is more intelligent.
As shown in fig. 5, in one embodiment, there is provided an apparatus 100 for intelligently adjusting volume, including:
the receiving module 10 is configured to obtain preset output volume data and receive a playing instruction of an audio file.
And the playing module 20 is configured to respond to the playing instruction and play the audio file according to the preset output volume data.
The noise detection module 30 is configured to start detection of environmental noise while playing the audio file, acquire a sound signal, separate the sound signal into an audio signal and a noise signal, calculate a signal-to-noise ratio, and output real-time signal-to-noise ratio data; wherein the signal-to-noise ratio is a ratio of the intensity of the audio signal to the intensity of the noise signal.
And the volume adjusting module 40 is used for adjusting the preset output volume data according to the real-time signal-to-noise ratio data.
Specifically, the noise detection module 30 may include a sound receiver and a signal processor, where the sound receiver may be one or more microphones or a plurality of microphone arrays, and is configured to receive sounds in the environment where the device is located, including sounds emitted by the terminal device and external noise; the signal processor is used for processing the sound signal received by the sound receiver and carrying out control logic processing on the signal.
In one embodiment, if the audio file is played using headphones, the sound information received by the noise detection module 30 is almost entirely a noise signal.
In this embodiment, the apparatus 100 for intelligently adjusting volume can achieve the functions and effects of the method for intelligently adjusting volume, which are not described herein again.
As shown in fig. 6, in one embodiment, the playing module 20 includes:
a local retrieval sub-module 21, configured to retrieve whether the audio file matches the local file;
the file playing submodule 22 is configured to play the audio file according to the preset output volume data if the audio file is matched in a local file;
and the download receiving sub-module 23 is configured to send a download request of the audio file to a server if the audio file is not matched in the local file, and receive the audio file returned by the server according to the download request.
In one embodiment, as shown in fig. 7, the volume adjusting module 40 includes:
a reference data acquiring unit 41, configured to acquire initial snr data when starting detection of environmental noise, and define the initial snr data as reference snr data;
a comparing unit 42, configured to determine a change and a change amplitude of the signal-to-noise ratio according to a comparison result between the real-time signal-to-noise ratio data and the reference signal-to-noise ratio data;
the volume adjusting unit 43 is configured to correspondingly reduce the preset output volume data according to the change amplitude when the change of the signal-to-noise ratio is an increase; and when the change of the signal-to-noise ratio is reduced, correspondingly increasing the preset output volume data according to the change amplitude.
In one embodiment, the noise detection module 30 is further configured to obtain an amplitude threshold of the real-time snr data change in a preset unit time; defining the real-time signal-to-noise ratio data with the change of the real-time signal-to-noise ratio data within the amplitude threshold value in unit time as normal data, and defining the real-time signal-to-noise ratio data exceeding the amplitude threshold value as abnormal data; counting the duration of the abnormal data; and when the duration is less than a preset reference time, filtering and shielding the abnormal data.
In one embodiment, as shown in fig. 8, the apparatus 100 for intelligently adjusting volume further includes:
and the manual adjusting module 50 is configured to receive a manual adjusting instruction with volume adjusting information, adjust the preset output volume data according to the volume adjusting information, and stop detecting the environmental noise.
In one embodiment, as shown in fig. 9, the apparatus 100 for intelligently adjusting volume further includes:
and an automatic adjustment recovery module 60, configured to recover detection of the environmental noise after a preset certain time, acquire the real-time signal-to-noise ratio data, and adjust the preset output volume data according to the real-time signal-to-noise ratio data. The device 100 for intelligently adjusting volume in the above embodiments can implement the same functions and achieve the same beneficial effects as the method for intelligently adjusting volume.
The present invention provides a terminal, including:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of intelligently adjusting volume as described in any of the embodiments above.
It is another object of the present invention to provide a readable storage medium, on which a computer program is stored, which when executed by a processor implements the method for intelligently adjusting volume as described in any of the above embodiments.
According to the method, the device, the terminal and the readable storage medium for intelligently adjusting the volume, provided by the invention, when an audio file is played, the environmental noise signal is obtained by detecting the environmental noise, the noise signal is analyzed, the signal to noise ratio is calculated, the output volume of the equipment is correspondingly and automatically adjusted according to the change of the signal to noise ratio, so that the output volume of the equipment is stabilized in a certain range, the user does not need to frequently and manually adjust the volume, the user obtains the optimal sound information obtaining effect, and the user experience is improved.
The invention is not limited solely to that described in the specification and embodiments, and additional advantages and modifications will readily occur to those skilled in the art, so that the invention is not limited to the specific details, representative apparatus, and illustrative examples shown and described herein, without departing from the spirit and scope of the general concept as defined by the appended claims and their equivalents.

Claims (10)

1. A method for intelligently adjusting volume is applied to a device terminal and is characterized by comprising the following steps:
acquiring preset output volume data and receiving a playing instruction of an audio file;
responding to the playing instruction, and playing the audio file according to the preset output volume data;
starting detection on environmental noise while playing the audio file, acquiring a sound signal, separating the sound signal into an audio signal and a noise signal, calculating a signal-to-noise ratio and outputting real-time signal-to-noise ratio data; wherein, the signal-to-noise ratio is the ratio of the intensity of the audio signal to the intensity of the noise signal;
and adjusting the preset output volume data according to the real-time signal-to-noise ratio data.
2. The method for intelligently adjusting the volume according to claim 1, wherein the step of playing the audio file according to the preset output volume data in response to the playing command comprises:
retrieving whether the audio file is matched in the local file;
if so, playing the audio file according to the preset output volume data;
if not, sending a downloading request of the audio file to a server, receiving the audio file returned by the server according to the downloading request, and playing the audio file according to the preset output volume data.
3. The method of claim 1, wherein the step of adjusting the preset output volume data according to the real-time snr data comprises the steps of:
acquiring initial signal-to-noise ratio data when the detection of the environmental noise is started, and defining the initial signal-to-noise ratio data as reference signal-to-noise ratio data;
judging the change and the change amplitude of the signal-to-noise ratio according to the comparison result of the real-time signal-to-noise ratio data and the reference signal-to-noise ratio data;
when the change of the signal to noise ratio is increased, correspondingly reducing the preset output volume data according to the change amplitude;
and when the change of the signal-to-noise ratio is reduced, correspondingly increasing the preset output volume data according to the change amplitude.
4. The method of claim 1, wherein the step of starting detection of environmental noise while playing the audio file, acquiring a sound signal, separating the sound signal into an audio signal and a noise signal, calculating a signal-to-noise ratio, and outputting real-time signal-to-noise ratio data further comprises the steps of:
acquiring an amplitude threshold value of the real-time signal-to-noise ratio data change in preset unit time; defining the real-time signal-to-noise ratio data with the change of the real-time signal-to-noise ratio data within the amplitude threshold value in unit time as normal data, and defining the real-time signal-to-noise ratio data exceeding the amplitude threshold value as abnormal data;
counting the duration of the abnormal data; and when the duration is less than a preset reference time, filtering and shielding the abnormal data.
5. The method of claim 1, wherein the step of adjusting the preset output volume data according to the real-time snr data further comprises the steps of:
receiving a manual adjustment instruction with volume adjustment information;
and correspondingly adjusting the preset output volume data according to the volume adjustment information, and stopping detecting the environmental noise.
6. The method for intelligently adjusting volume according to claim 5, wherein the step of adjusting the preset output volume data according to the volume adjustment information and stopping the detection of the environmental noise further comprises:
and after a preset certain time, recovering the detection of the environmental noise, acquiring the real-time signal-to-noise ratio data, and adjusting the preset output volume data according to the real-time signal-to-noise ratio data.
7. An apparatus for intelligently adjusting volume, comprising:
the receiving module is used for acquiring preset output volume data and receiving a playing instruction of an audio file;
the playing module is used for responding to the playing instruction and playing the audio file according to the preset output volume data;
the noise detection module is used for starting detection on environmental noise while playing the audio file, acquiring a sound signal, separating the sound signal into an audio signal and a noise signal, calculating a signal-to-noise ratio and outputting real-time signal-to-noise ratio data; wherein, the signal-to-noise ratio is the ratio of the intensity of the audio signal to the intensity of the noise signal;
and the volume adjusting module is used for adjusting the preset output volume data according to the real-time signal-to-noise ratio data.
8. The apparatus for intelligently adjusting volume according to claim 7, wherein the playing module comprises:
the local retrieval submodule is used for retrieving whether the audio file is matched in the local file;
the file playing submodule is used for playing the audio file according to the preset output volume data;
and the download receiving submodule is used for sending a download request of the audio file to a server and receiving the audio file returned by the server according to the download request.
9. A terminal, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of intelligently adjusting volume as recited in any of claims 1-6.
10. A readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of intelligently adjusting the volume as claimed in any one of claims 1 to 6.
CN201911084473.3A 2019-11-08 2019-11-08 Method, device and terminal for intelligently adjusting volume and readable storage medium Pending CN110827863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911084473.3A CN110827863A (en) 2019-11-08 2019-11-08 Method, device and terminal for intelligently adjusting volume and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911084473.3A CN110827863A (en) 2019-11-08 2019-11-08 Method, device and terminal for intelligently adjusting volume and readable storage medium

Publications (1)

Publication Number Publication Date
CN110827863A true CN110827863A (en) 2020-02-21

Family

ID=69553340

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911084473.3A Pending CN110827863A (en) 2019-11-08 2019-11-08 Method, device and terminal for intelligently adjusting volume and readable storage medium

Country Status (1)

Country Link
CN (1) CN110827863A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111627416A (en) * 2020-05-13 2020-09-04 广州国音智能科技有限公司 Audio noise elimination method, device, equipment and storage medium
CN111899733A (en) * 2020-07-02 2020-11-06 北京如影智能科技有限公司 Method and device for determining volume
CN112291665A (en) * 2020-10-30 2021-01-29 歌尔光学科技有限公司 Volume adjusting method, device and system of head-mounted display equipment and storage medium
CN114115794A (en) * 2021-12-02 2022-03-01 四川虹美智能科技有限公司 Volume adjustment method and device for voice playing
CN114327332A (en) * 2021-12-22 2022-04-12 深圳Tcl新技术有限公司 Internet of things equipment setting method and device, electronic equipment and storage medium
CN114596871A (en) * 2022-03-22 2022-06-07 镁佳(北京)科技有限公司 Vehicle-mounted machine volume adjusting method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070127737A1 (en) * 2005-11-25 2007-06-07 Benq Corporation Audio/video system
CN1983805A (en) * 2005-12-13 2007-06-20 明基电通股份有限公司 Audio-frequency adjusting system
CN201514273U (en) * 2009-09-27 2010-06-23 深圳市亚泰光电技术有限公司 Mechanical failure stethoscope with function of hearing protection
CN101951235A (en) * 2010-09-08 2011-01-19 成都千帆科技开发有限公司 Method and device for automatically controlling voice volume of parking lot management system
CN105446697A (en) * 2015-12-31 2016-03-30 广东小天才科技有限公司 Method, device and system for automatically adjusting volume of headset
CN105554605A (en) * 2015-12-11 2016-05-04 天津七一二通信广播有限公司 Circuit for automatically adjusting volume of Bluetooth earphone and implementation method
CN108845787A (en) * 2018-06-11 2018-11-20 北京小米移动软件有限公司 Method, apparatus, terminal and the storage medium that audio is adjusted
CN109511037A (en) * 2018-12-19 2019-03-22 努比亚技术有限公司 Earpiece volume adjusting method, device and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070127737A1 (en) * 2005-11-25 2007-06-07 Benq Corporation Audio/video system
CN1983805A (en) * 2005-12-13 2007-06-20 明基电通股份有限公司 Audio-frequency adjusting system
CN201514273U (en) * 2009-09-27 2010-06-23 深圳市亚泰光电技术有限公司 Mechanical failure stethoscope with function of hearing protection
CN101951235A (en) * 2010-09-08 2011-01-19 成都千帆科技开发有限公司 Method and device for automatically controlling voice volume of parking lot management system
CN105554605A (en) * 2015-12-11 2016-05-04 天津七一二通信广播有限公司 Circuit for automatically adjusting volume of Bluetooth earphone and implementation method
CN105446697A (en) * 2015-12-31 2016-03-30 广东小天才科技有限公司 Method, device and system for automatically adjusting volume of headset
CN108845787A (en) * 2018-06-11 2018-11-20 北京小米移动软件有限公司 Method, apparatus, terminal and the storage medium that audio is adjusted
CN109511037A (en) * 2018-12-19 2019-03-22 努比亚技术有限公司 Earpiece volume adjusting method, device and computer readable storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111627416A (en) * 2020-05-13 2020-09-04 广州国音智能科技有限公司 Audio noise elimination method, device, equipment and storage medium
CN111627416B (en) * 2020-05-13 2023-10-20 广州国音智能科技有限公司 Audio noise elimination method, device, equipment and storage medium
CN111899733A (en) * 2020-07-02 2020-11-06 北京如影智能科技有限公司 Method and device for determining volume
CN112291665A (en) * 2020-10-30 2021-01-29 歌尔光学科技有限公司 Volume adjusting method, device and system of head-mounted display equipment and storage medium
CN114115794A (en) * 2021-12-02 2022-03-01 四川虹美智能科技有限公司 Volume adjustment method and device for voice playing
CN114327332A (en) * 2021-12-22 2022-04-12 深圳Tcl新技术有限公司 Internet of things equipment setting method and device, electronic equipment and storage medium
CN114596871A (en) * 2022-03-22 2022-06-07 镁佳(北京)科技有限公司 Vehicle-mounted machine volume adjusting method and device and electronic equipment
CN114596871B (en) * 2022-03-22 2023-03-28 镁佳(北京)科技有限公司 Vehicle-mounted machine volume adjusting method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN110827863A (en) Method, device and terminal for intelligently adjusting volume and readable storage medium
US11626117B2 (en) Contingent device actions during loss of network connectivity
US9609441B2 (en) Smart hearing aid
US9509269B1 (en) Ambient sound responsive media player
WO2019127112A1 (en) Voice interaction method and device and intelligent terminal
US9703524B2 (en) Privacy protection in collective feedforward
US8909537B2 (en) Device capable of playing music and method for controlling music playing in electronic device
JP2017538341A (en) Volume control method, system, device and program
CN112118485B (en) Volume self-adaptive adjusting method, system, equipment and storage medium
US10275209B2 (en) Sharing of custom audio processing parameters
US11218796B2 (en) Annoyance noise suppression
WO2019233361A1 (en) Method and device for adjusting volume of music
US10853025B2 (en) Sharing of custom audio processing parameters
CN104754462A (en) Automatic regulating device and method for volume and earphone
CN115022773A (en) Bluetooth device audio control method, device and storage medium
CN113176870B (en) Volume adjustment method and device, electronic equipment and storage medium
KR20200113058A (en) Apparatus and method for operating a wearable device
CN111800699B (en) Volume adjustment prompting method and device, earphone equipment and storage medium
CN116132869A (en) Earphone volume adjusting method, earphone and storage medium
CN106293607B (en) Method and system for automatically switching audio output modes
CN108769799A (en) A kind of information processing method and electronic equipment
CN112307161B (en) Method and apparatus for playing audio
CN110246517B (en) Radio station music identification method, vehicle-mounted system and vehicle
CN114903473A (en) Hearing detection method, device, electronic equipment and storage medium
US20180254056A1 (en) Sounding device, audio transmission system, and audio analysis method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200221