CN106293607B - Method and system for automatically switching audio output modes - Google Patents

Method and system for automatically switching audio output modes Download PDF

Info

Publication number
CN106293607B
CN106293607B CN201610702555.XA CN201610702555A CN106293607B CN 106293607 B CN106293607 B CN 106293607B CN 201610702555 A CN201610702555 A CN 201610702555A CN 106293607 B CN106293607 B CN 106293607B
Authority
CN
China
Prior art keywords
audio
audio output
output mode
tone quality
audio file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610702555.XA
Other languages
Chinese (zh)
Other versions
CN106293607A (en
Inventor
牛志明
罗亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201610702555.XA priority Critical patent/CN106293607B/en
Priority to PCT/CN2016/100681 priority patent/WO2018035928A1/en
Publication of CN106293607A publication Critical patent/CN106293607A/en
Application granted granted Critical
Publication of CN106293607B publication Critical patent/CN106293607B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Abstract

A method for automatically switching audio output modes is applied to electronic equipment, and comprises the following steps: acquiring trigger event information; calling a detection method corresponding to the trigger event information for detection and obtaining a detection result; comparing the detection result with a preset threshold value; and switching the audio output mode according to the comparison result. The invention can automatically switch the current audio output mode into the common audio output mode or the HIFI audio output mode, so that a user can obtain good experience and simultaneously can reduce the power consumption of the electronic equipment.

Description

method and system for automatically switching audio output modes
Technical Field
The present invention relates to the field of audio management, and in particular, to a method and system for automatically switching audio output modes.
Background
Due to the requirement for sound quality, more and more mobile phone manufacturers are now implementing High-Fidelity (hereinafter abbreviated as "HIFI") functions in mobile phones, so that any earphone can enjoy the sound effect of HIFI. HIFI refers to the ability of an audio recording and playback system or apparatus to faithfully reflect the original appearance of an audio signal, and the fidelity of the position and movement of an audio image when the apparatus performs specific modification, processing and sound field reproduction on the audio signal.
in some electronic devices in the prior art, a user may manually adjust an audio output mode, that is, may select a normal audio output mode or a HIFI audio output mode. However, when the ambient noise is complex or constantly changing, these electronic devices cannot intelligently switch the audio output mode in time with the change of the environment, so that the user has to switch manually, which is troublesome and affects the music experience of the user.
Secondly, HIFI realizes the hi-fi sound effect through the hardware, can increase the consumption of cell-phone.
Disclosure of Invention
in view of the foregoing, there is a need for a method for automatically switching an audio output mode, which can automatically switch a current audio output mode to a normal audio output mode or a HIFI audio output mode, so that a user can obtain a good experience and reduce power consumption of an electronic device.
It is also necessary to provide a system for automatically switching audio output modes, which can automatically switch the current audio output mode to a normal audio output mode or a HIFI audio output mode, so that a user can obtain good experience and power consumption of the electronic device can be reduced.
A method for automatically switching audio output modes is applied to electronic equipment, and comprises the following steps:
Acquiring trigger event information;
calling a detection method corresponding to the trigger event information for detection and obtaining a detection result;
Comparing the detection result with a preset threshold value; and
And switching the audio output mode according to the comparison result.
According to a preferred embodiment of the present invention, the trigger event information includes: a talk state or an audio play state.
according to a preferred embodiment of the present invention, the preset threshold includes: an ambient noise coefficient threshold or an audio file tone quality threshold.
According to a preferred embodiment of the invention, the method comprises:
When the trigger event information is in a call state, calling an environmental noise detection method to obtain a noise coefficient of the environmental noise of the electronic equipment at present for detection;
Comparing the detected noise figure to the ambient noise figure threshold; and
When the detected noise coefficient is larger than the environmental noise coefficient threshold value, switching the current audio output mode into a HIFI audio output mode; or
and when the detected noise coefficient is less than or equal to the environmental noise coefficient threshold value, switching the current audio output mode into a common audio output mode.
According to a preferred embodiment of the invention, the method further comprises:
When the trigger event information is in an audio playing state, calling an audio file tone quality detection method to detect the tone quality of the audio file currently played by the electronic equipment;
Comparing the detected audio file tone quality with the audio file tone quality threshold; and
When the detected audio file tone quality is larger than the audio file tone quality threshold, switching the current audio output mode into a HIFI audio output mode; or
And when the detected audio file tone quality is less than or equal to the audio file tone quality threshold, switching the current audio output mode into a common audio output mode.
A system for automatically switching an audio output mode, installed in an electronic device, the system comprising:
the acquisition module is used for acquiring trigger event information;
the calling module is used for calling a detection method corresponding to the trigger event information to detect and obtain a detection result;
The comparison module is used for comparing the detection result with a preset threshold value; and
And the switching module is used for switching the audio output mode according to the comparison result.
According to a preferred embodiment of the present invention, the trigger event information includes: a talk state or an audio play state.
According to a preferred embodiment of the present invention, the preset threshold includes: an ambient noise coefficient threshold or an audio file tone quality threshold.
According to a preferred embodiment of the present invention,
When the triggering event information is in a call state, the calling module calls an environmental noise detection method to detect the noise coefficient of the environmental noise of the electronic equipment;
the comparison module compares the detected noise coefficient with a preset environmental noise coefficient threshold value; and
When the detected noise coefficient is larger than the environmental noise coefficient threshold value, the switching module switches the current audio output mode into a HIFI audio output mode; or
And the switching module switches the current audio output mode into a common audio output mode when the detected noise coefficient is less than or equal to the environmental noise coefficient threshold value.
according to a preferred embodiment of the present invention,
When the trigger event information is in an audio playing state, the calling module calls an audio file tone quality detection method to detect the tone quality of the audio file currently played by the electronic equipment;
the comparison module compares the detected audio file tone quality with a preset audio file tone quality threshold; and
When the detected audio file tone quality is greater than the audio file tone quality threshold value, the switching module switches the current audio output mode into a HIFI audio output mode; or
and when the detected audio file tone quality is less than or equal to the audio file tone quality threshold value, the switching module switches the current audio output mode into a common audio output mode.
Compared with the prior art, the method and the system for automatically switching the audio output mode can automatically switch the current audio output mode into the common audio output mode or the HIFI audio output mode according to the external environment noise, avoid the complex operation of manually switching the audio output mode by a user, enable the user to obtain good experience and reduce the power consumption of the electronic equipment. Secondly, when the electronic equipment is used for playing the audio file, the current audio output mode can be automatically switched into a common audio output mode or a HIFI audio output mode according to the tone quality of the played audio file, and the experience of listening to music of a user is greatly improved.
Drawings
Fig. 1 is a schematic diagram of a hardware configuration of an electronic device implementing the system for automatically switching audio output modes according to the present invention.
FIG. 2 is a flowchart illustrating a method of automatically switching audio output modes according to a preferred embodiment of the present invention.
FIG. 3 is a functional block diagram of a preferred embodiment of the system for automatically switching audio output modes according to the present invention.
description of the main elements
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely a few embodiments of the invention, and not all embodiments. Furthermore, it should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
FIG. 1 is a diagram of a hardware architecture of an electronic device according to a preferred embodiment of the present invention for implementing a system for automatically switching audio output modes. As shown in the hardware architecture diagram, the electronic device 1 includes, but is not limited to, a system 10 for automatically switching audio output modes, a storage unit 20, a processing unit 30, and an audio unit 40.
preferably, the method for automatically switching audio output modes of the present invention is implemented by the system 10 for automatically switching audio output modes in the electronic device 1.
The electronic device 1 includes an electronic device capable of automatically performing numerical calculation and/or information processing according to instructions set or stored in advance, and hardware thereof includes, but is not limited to, a microprocessor, an application specific integrated circuit, a programmable gate array, a digital processor, an embedded device, and the like. The electronic device 1 may also comprise a user device. The user device includes, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a personal digital assistant, a game console, an interactive network television, a smart wearable device, and the like. The network where the user equipment is located includes, but is not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a virtual private network, and the like.
It should be noted that the user equipment is only an example, and other existing or future user equipment, such as may be adapted to the present invention, should also be included in the scope of the present invention and is included by reference.
In one embodiment, the storage unit 20 is used to store software programs and data installed in the electronic device 1, such as the system 10 that automatically switches audio output modes. The storage unit 20 may be an internal storage unit of the electronic device 1, such as a hard disk or a memory of the electronic device 1. The storage unit 20 may also be an external storage unit of the electronic device 1, for example, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital Card (SD), a flash Card (flash Card), or other storage units on the electronic device 1. Further, the storage unit 20 may include both an internal storage unit and an external storage unit of the electronic device 1.
In this embodiment, the storage unit 20 stores an audio file in advance, where the audio file may be an audio file such as WAV, MP3, APE, FLAC, or an audio file included in a video file. The storage unit 20 further stores parameters such as a preset noise coefficient threshold and/or an audio file tone quality threshold.
In one embodiment, the Processing unit 30 is one or more Central Processing Units (CPUs), microprocessors or other digital Processing chips, or the like. The processing unit 30 is used for executing software program codes or operation data, such as the system 10 for automatically switching audio output modes. The processing unit 30 can select to switch the HIFI audio output mode or the normal audio output mode according to the environmental noise when playing the audio file, so as to realize HIFI playing or normal playing of the audio file.
in one embodiment, the audio unit 40 is configured to output and/or input audio signals. The audio unit 40 comprises a microphone configured to receive external audio signals when the electronic device 1 is in an operation mode, such as a call mode, a recording mode and a speech recognition mode. The received audio signal may further be stored in the storage unit 20 or transmitted via a communication module of the electronic device 1. In some embodiments, the audio unit 40 further comprises a speaker for outputting audio signals.
in one embodiment of the present invention, the storage unit 20 in the electronic device 1 stores a plurality of instructions to implement a method for automatically switching audio output modes, and the processing unit 30 can execute the plurality of instructions to implement: acquiring trigger event information; calling a detection method corresponding to the trigger event information for detection and obtaining a detection result; comparing the detection result with a preset threshold value; and switching the audio output mode according to the comparison result.
Wherein the trigger event information includes: a call state or an audio play state; the preset threshold includes: an ambient noise coefficient threshold or an audio file tone quality threshold.
in a further embodiment, the processing unit 30 may further implement, according to the stored plurality of instructions: when the trigger event information is in a call state, calling an environmental noise detection method to detect the noise coefficient of the environmental noise where the electronic equipment is located currently; comparing the detected noise figure to the ambient noise figure threshold; when the detected noise coefficient is larger than the environmental noise coefficient threshold value, switching the current audio output mode into a HIFI audio output mode; or when the detected noise coefficient is less than or equal to the environmental noise coefficient threshold value, switching the current audio output mode into a common audio output mode.
In a further embodiment, the processing unit 30 may further implement, according to the stored plurality of instructions: when the trigger event information is in an audio playing state, calling an audio file tone quality detection method to detect the tone quality of the audio file currently played by the electronic equipment; comparing the detected audio file tone quality with the audio file tone quality threshold; when the detected audio file tone quality is larger than the audio file tone quality threshold, switching the current audio output mode into a HIFI audio output mode; or when the detected audio file tone quality is less than or equal to the audio file tone quality threshold, switching the current audio output mode into a common audio output mode.
Referring to fig. 2, a flow chart of a method for automatically switching audio output modes according to a preferred embodiment of the present invention is shown. The execution order in the flow chart shown in the figure may be changed and some may be omitted according to different needs.
And S20, acquiring the trigger event information.
In this embodiment, the trigger event information may be a trigger signal sent by another electronic device when another electronic device is in communication connection with the electronic device 1 executing the method, may also be a trigger signal sent by the electronic device 1 to another electronic device, and may also be a trigger signal generated when the electronic device 1 plays an audio file. The audio file may be an audio file such as WAV, MP3, APE, FLAC, etc., or an audio file contained in a video file.
The trigger event information includes: a call state and an audio play state. When a signal that the electronic device 1 is in communication connection with other electronic devices is received, the trigger event information is a call state. When a trigger signal for playing the audio file by the electronic device 1 is received, the trigger event information is an audio playing state.
and S21, calling a detection method corresponding to the trigger event information to perform detection to obtain a detection result.
In this embodiment, the system 10 for automatically switching audio output modes calls a corresponding detection method according to the trigger event information.
In this embodiment, the electronic device 1 stores two detection methods in advance: an environmental noise detection method and an audio file tone quality detection method.
the environmental noise detection method is used for detecting the noise coefficient of the environmental noise of the electronic equipment 1 when the electronic equipment 1 is in a call state. The noise figure is a figure of merit, in dB, used to describe the amount of excessive noise present in a system. The noise figure of the ambient noise may be detected by a noise detector, such as a decibel meter or a noise detector, mounted on the electronic device 1.
The audio file tone quality detection method is used for detecting the tone quality of the played audio file when the electronic equipment 1 is in an audio playing state. The sound quality of the audio file refers to the fidelity of the transmitted and processed audio signal, the high fidelity audio compression Standard is jointly formulated by an International Standard Organization (ISO) and an International electrical union telecommunication standardization Organization (ITU-T), the sampling frequency is 48kHz, 44.1kHz, 32kHz, and the digital code rate per channel is 32 Kbps-448 Kbps. The tone quality of the audio file can be expressed by a Bit rate, the unit is kilobits Per Second (Kbps), the Bit rate refers to a sampling rate for converting digital sound from an analog format into a digital format, and the higher the sampling rate is, the better the restored tone quality is.
And S22, comparing the detection result with a preset threshold value.
In this embodiment, the system 10 for automatically switching audio output modes may preset a threshold and store the threshold in the storage unit 20. The preset threshold values include: the environmental noise coefficient threshold value and the audio file tone quality threshold value. The threshold of the environmental noise coefficient may be 50 decibels, and the threshold of the sound quality of the audio file is 160 Kbps.
In some embodiments, the preset threshold may be set by the electronic device 1 by default. In some embodiments, since the frequencies of the audio sensitive to the ears of different users are different, the preset threshold value can be set and modified by the user according to the needs or personal preferences of the user. When the user sets or modifies the threshold value, the system 10 for automatically switching the audio output mode calls the newly set or modified threshold value.
In the first embodiment, when the system 10 for automatically switching the audio output mode calls the ambient noise detection method to detect the noise coefficient of the ambient noise in which the electronic device 1 is currently located, the detected noise coefficient is compared with the ambient noise coefficient threshold. The system 10 for automatically switching the audio output mode can sample the noise signal recorded in a certain time period and then perform sound decibel detection on the sampled noise signal. Further, in order to improve the accuracy, the recorded noise signals may be subjected to a high sampling rate to obtain a plurality of noise signals, and the noise decibel values of each noise signal are summed and averaged to obtain an average noise decibel value, and the average noise decibel value is used as the noise coefficient of the environmental noise where the electronic device 1 is currently located.
In the second embodiment, when the system 10 for automatically switching audio output modes calls an audio file sound quality detection method to detect the sound quality of the audio file currently played by the electronic device 1, the detected sound quality of the audio file is compared with the audio file sound quality threshold. The system 10 for automatically switching audio output modes can sample audio signals recorded in a certain time period and then perform sound quality detection on the sampled audio signals. Further, in order to improve the accuracy, the recorded audio signals may be subjected to a high sampling rate to obtain a plurality of audio signals, and the sound quality of each audio signal is summed and averaged to obtain an average audio sound quality, and the average audio sound quality is used as the sound quality of the audio file currently played by the electronic device 1.
And S23, switching the audio output mode according to the comparison result.
In the first embodiment, when the obtained noise figure (e.g., 60 db) is greater than the environmental noise figure threshold (e.g., 50 db), which indicates that the environmental noise is greater, the system 10 for automatically switching audio output mode switches the current audio output mode to the HIFI audio output mode, and outputs the call voice of the user according to the HIFI audio output mode. When the obtained noise figure (e.g., 35 db) is less than or equal to the environmental noise figure threshold (e.g., 50 db), which indicates that the environmental noise is small, the system 10 for automatically switching audio output mode switches the current audio output mode to the normal audio output mode, and outputs the call voice of the user according to the normal audio output mode.
In the second embodiment, when the sound quality of the obtained audio file (e.g. 192Kbps) is greater than the threshold value (e.g. 160Kbps) of the sound quality of the audio file, which indicates that the sound quality of the audio file currently played by the electronic device 1 is higher, the system 10 for automatically switching the audio output mode switches the current audio output mode to the HIFI audio output mode, and plays the audio file according to the HIFI audio output mode. When the sound quality of the obtained audio file is less than (e.g., 128Kbps) or equal to the threshold value of the sound quality of the audio file (e.g., 160Kbps), which indicates that the sound quality of the audio file currently played by the electronic device 1 is high, the system 10 for automatically switching the audio output mode switches the current audio output mode to the normal audio output mode, and plays the audio file according to the normal audio output mode.
If the current audio output mode is the audio output mode that needs to be switched, the current mode may be left without performing the switching operation described above.
in summary, the method for automatically switching the audio output mode according to the present invention can invoke a corresponding detection method to perform detection according to the current mode of the electronic device 1, obtain a detection result that meets the content, compare the detection result with a preset threshold, and switch the audio output mode according to the comparison result. That is, when the electronic device 1 is in a call state, the noise coefficient of the environmental noise in which the electronic device 1 is currently located is detected, the noise coefficient is compared with a threshold of a pre-stored noise coefficient, and the HIFI audio output mode or the normal audio output mode is switched according to the comparison result. When the electronic equipment 1 is in an audio playing state, detecting the tone quality of an audio file currently played by the electronic equipment 1, comparing the tone quality of the audio file with a pre-stored threshold value of the tone quality of the audio file, and switching a HIFI audio output mode or a common audio output mode according to the comparison result. The complicated operation of manually switching the audio output mode by a user is avoided, so that the user can obtain good experience and simultaneously reduce the power consumption of the electronic equipment.
Referring to fig. 3, a functional block diagram of a preferred embodiment of the system 10 for automatically switching audio output modes is shown.
In this embodiment, the system 10 for automatically switching audio output modes may be divided into a plurality of functional modules according to the functions performed by the system. In this embodiment, the functional modules include: the device comprises an acquisition module 101, a calling module 102, a comparison module 103, a setting module 104 and a switching module 105. The module referred to in the present invention refers to a series of computer program segments capable of being executed by the processing unit 30 and performing a fixed function, which are stored in the storage unit 20. In the present embodiment, the functions of the modules will be described in detail in the following embodiments.
The obtaining module 101 is configured to obtain trigger event information.
in this embodiment, the trigger event information may be a trigger signal sent by another electronic device when another electronic device is in communication connection with the electronic device 1 executing the method, may also be a trigger signal sent by the electronic device 1 to another electronic device, and may also be a trigger signal generated when the electronic device 1 plays an audio file. The audio file may be an audio file such as WAV, MP3, APE, FLAC, etc., or an audio file contained in a video file.
The trigger event information includes: a call state and an audio play state. When a signal that the electronic device 1 is in communication connection with other electronic devices is received, the trigger event information is a call state. When a trigger signal for playing the audio file by the electronic device 1 is received, the trigger event information is an audio playing state.
The calling module 102 is configured to call a detection method corresponding to the trigger event information to perform detection, so as to obtain a detection result.
In this embodiment, the invoking module 102 invokes a corresponding detection method according to the trigger event information.
In this embodiment, the electronic device 1 stores two detection methods in advance: an environmental noise detection method and an audio file tone quality detection method.
the environmental noise detection method is used for detecting the noise coefficient of the environmental noise of the electronic equipment 1 when the electronic equipment 1 is in a call state. The noise figure is a figure of merit, in dB, used to describe the amount of excessive noise present in a system. The noise figure of the ambient noise may be detected by a noise detector, such as a decibel meter or a noise detector, mounted on the electronic device 1.
The audio file tone quality detection method is used for detecting the tone quality of the played audio file when the electronic equipment 1 is in an audio playing state. The sound quality of the audio file refers to the fidelity of the transmitted and processed audio signal, the high fidelity audio compression Standard is jointly formulated by an International Standard Organization (ISO) and an International electrical union telecommunication standardization Organization (ITU-T), the sampling frequency is 48kHz, 44.1kHz, 32kHz, and the digital code rate per channel is 32 Kbps-448 Kbps. The tone quality of the audio file can be expressed by a Bit rate, the unit is kilobits Per Second (Kbps), the Bit rate refers to a sampling rate for converting digital sound from an analog format into a digital format, and the higher the sampling rate is, the better the restored tone quality is.
the comparing module 103 is configured to compare the detection result with a preset threshold.
in this embodiment, the setting module 104 may set a threshold in advance and store the threshold in the storage unit 20. The preset threshold values include: the environmental noise coefficient threshold value and the audio file tone quality threshold value. The threshold of the environmental noise coefficient may be 50 decibels, and the threshold of the sound quality of the audio file is 160 Kbps.
In some embodiments, the preset threshold may be set by the electronic device 1 by default. In some embodiments, since the frequencies of the audio sensitive to the ears of different users are different, the preset threshold value can be set and modified by the user according to the needs or personal preferences of the user. When the user sets or modifies the threshold value, the comparing module 103 calls the newly set or modified threshold value.
in the first embodiment, when the calling module 102 calls an ambient noise detection method to detect a noise coefficient of ambient noise in which the electronic device 1 is currently located, the comparing module 103 compares the detected noise coefficient with the ambient noise coefficient threshold. The calling module 102 may sample a noise signal recorded within a certain time period, and then perform sound decibel detection on the sampled noise signal. Further, in order to improve the accuracy, the recorded noise signals may be subjected to a high sampling rate to obtain a plurality of noise signals, and the noise decibel values of each noise signal are summed and averaged to obtain an average noise decibel value, and the average noise decibel value is used as the noise coefficient of the environmental noise where the electronic device 1 is currently located.
In the second embodiment, when the calling module 102 calls an audio file sound quality detection method to detect the sound quality of an audio file currently played by the electronic device 1, the comparing module 103 compares the detected sound quality of the audio file with the audio file sound quality threshold. The calling module 102 may sample an audio signal recorded within a certain time period, and then perform sound quality detection on the sampled audio signal. Further, in order to improve the accuracy, the recorded audio signals may be subjected to a high sampling rate to obtain a plurality of audio signals, and the sound quality of each audio signal is summed and averaged to obtain an average audio sound quality, and the average audio sound quality is used as the sound quality of the audio file currently played by the electronic device 1.
the switching module 105 is configured to switch the audio output mode according to the comparison result.
In the first embodiment, when the obtained noise figure (e.g., 60 db) is greater than the environmental noise figure threshold (e.g., 50 db), which indicates that the environmental noise is greater at this time, the switching module 105 switches the current audio output mode to the HIFI audio output mode, and outputs the call voice of the user according to the HIFI audio output mode. When the obtained noise figure (e.g., 35 db) is smaller than or equal to the environmental noise figure threshold (e.g., 50 db), which indicates that the environmental noise is small, the switching module 105 switches the current audio output mode to the normal audio output mode, and outputs the call voice of the user according to the normal audio output mode.
In the second embodiment, when the sound quality of the obtained audio file (e.g., 192Kbps) is greater than the sound quality threshold of the audio file (e.g., 160Kbps), which indicates that the sound quality of the audio file currently played by the electronic device 1 is higher, the switching module 105 switches the current audio output mode to the HIFI audio output mode, and plays the audio file according to the HIFI audio output mode. When the sound quality of the obtained audio file is less than (e.g., 128Kbps) or equal to the sound quality threshold of the audio file (e.g., 160Kbps), which indicates that the sound quality of the audio file currently played by the electronic device 1 is high or low, the switching module 105 switches the current audio output mode to the normal audio output mode, and plays the audio file according to the normal audio output mode.
If the current audio output mode is the audio output mode that needs to be switched, the current mode may be left without performing the switching operation described above.
in summary, the system for automatically switching audio output modes according to the present invention can invoke a corresponding detection method to perform detection according to the current mode of the electronic device 1, obtain a detection result that meets the content, compare the detection result with a preset threshold, and switch the audio output mode according to the comparison result. That is, when the electronic device 1 is in a call state, the noise coefficient of the environmental noise in which the electronic device 1 is currently located is detected, the noise coefficient is compared with a threshold of a pre-stored noise coefficient, and the HIFI audio output mode or the normal audio output mode is switched according to the comparison result. When the electronic equipment 1 is in an audio playing state, detecting the tone quality of an audio file currently played by the electronic equipment 1, comparing the tone quality of the audio file with a pre-stored threshold value of the tone quality of the audio file, and switching a HIFI audio output mode or a common audio output mode according to the comparison result. The complicated operation of manually switching the audio output mode by a user is avoided, so that the user can obtain good experience and simultaneously reduce the power consumption of the electronic equipment.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
in addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a communication terminal, or a network device) or a processing unit (processor) to execute parts of the methods according to the embodiments of the present invention.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or that the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (4)

1. A method for automatically switching audio output modes is applied to electronic equipment, and is characterized in that the method comprises the following steps:
Acquiring trigger event information, wherein the trigger event information comprises: a call state or an audio play state;
When the trigger event information is in the audio playing state, calling an audio file tone quality detection method to perform high sampling on an audio file currently played by the electronic equipment to obtain a plurality of audio signals, summing and averaging tone qualities of each audio signal to obtain an average audio tone quality, and taking the average audio tone quality as the tone quality of the currently played audio file;
Comparing the detected audio file tone quality with a preset audio file tone quality threshold;
When the detected audio file tone quality is larger than the preset audio file tone quality threshold, switching the current audio output mode into a HIFI audio output mode; or
And when the detected audio file tone quality is less than or equal to the preset audio file tone quality threshold, switching the current audio output mode into a common audio output mode.
2. The method of automatically switching audio output modes according to claim 1, wherein when the trigger event information is the call state, the method further comprises:
Calling an environmental noise detection method to detect the noise coefficient of the environmental noise where the electronic equipment is located;
Comparing the detected noise coefficient with a preset environmental noise coefficient threshold value;
When the detected noise coefficient is larger than the preset environmental noise coefficient threshold value, switching the current audio output mode into a HIFI audio output mode; or
And when the detected noise coefficient is less than or equal to the preset environmental noise coefficient threshold value, switching the current audio output mode into a common audio output mode.
3. A system for automatically switching an audio output mode, installed in an electronic device, the system comprising:
An obtaining module, configured to obtain trigger event information, where the trigger event information includes: a call state or an audio play state;
the calling module is used for calling an audio file tone quality detection method to perform high sampling on the currently played audio file of the electronic equipment to obtain a plurality of audio signals when the trigger event information is in the audio playing state, and performing summation and averaging on the tone quality of each audio signal to obtain average audio tone quality, and taking the average audio tone quality as the tone quality of the currently played audio file;
The comparison module is used for comparing the detected audio file tone quality with a preset audio file tone quality threshold value; and
the switching module is used for switching the current audio output mode into a HIFI audio output mode when the detected audio file tone quality is greater than the preset audio file tone quality threshold; or when the detected audio file tone quality is less than or equal to the preset audio file tone quality threshold, switching the current audio output mode into a common audio output mode.
4. The system for automatically switching audio output modes according to claim 3,
The calling module is further configured to call an ambient noise detection method to detect a noise coefficient of ambient noise in which the electronic device is currently located when the trigger event information is in the call state;
the comparison module is also used for comparing the detected noise coefficient with a preset environmental noise coefficient threshold value;
The switching module is further configured to switch the current audio output mode to the HIFI audio output mode when the detected noise coefficient is greater than the preset environmental noise coefficient threshold; or when the detected noise coefficient is less than or equal to the preset environmental noise coefficient threshold value, the switching module switches the current audio output mode into the common audio output mode.
CN201610702555.XA 2016-08-22 2016-08-22 Method and system for automatically switching audio output modes Active CN106293607B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610702555.XA CN106293607B (en) 2016-08-22 2016-08-22 Method and system for automatically switching audio output modes
PCT/CN2016/100681 WO2018035928A1 (en) 2016-08-22 2016-09-28 Method and system for automatically switching audio output mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610702555.XA CN106293607B (en) 2016-08-22 2016-08-22 Method and system for automatically switching audio output modes

Publications (2)

Publication Number Publication Date
CN106293607A CN106293607A (en) 2017-01-04
CN106293607B true CN106293607B (en) 2019-12-10

Family

ID=57662176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610702555.XA Active CN106293607B (en) 2016-08-22 2016-08-22 Method and system for automatically switching audio output modes

Country Status (2)

Country Link
CN (1) CN106293607B (en)
WO (1) WO2018035928A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682588B (en) * 2017-09-26 2023-11-17 珠海迈科智能科技股份有限公司 Analog audio/video signal input/output switching system, method and signal measuring instrument
CN109218922B (en) * 2018-08-27 2021-03-23 维沃移动通信有限公司 Control method for outputting audio signal, terminal and audio signal output device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808208A (en) * 2009-02-17 2010-08-18 深圳Tcl新技术有限公司 Television and method for setting sound effect mode of same
CN103051794A (en) * 2012-12-18 2013-04-17 广东欧珀移动通信有限公司 Method and device for dynamically setting sound effect of mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100628068B1 (en) * 2005-01-28 2006-09-27 엘지전자 주식회사 Apparatus and Method for warning based on low battery of mobile communication terminal
US8798992B2 (en) * 2010-05-19 2014-08-05 Disney Enterprises, Inc. Audio noise modification for event broadcasting
CN103618835A (en) * 2013-12-13 2014-03-05 惠州Tcl移动通信有限公司 Method and system for automatically switching scene mode according to magnitude of peripheral noise
CN104780259B (en) * 2014-01-14 2019-05-21 深圳富泰宏精密工业有限公司 Call voice quality automatic regulating system and method
CN105262887B (en) * 2015-09-07 2020-05-05 惠州Tcl移动通信有限公司 Mobile terminal and audio setting method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808208A (en) * 2009-02-17 2010-08-18 深圳Tcl新技术有限公司 Television and method for setting sound effect mode of same
CN103051794A (en) * 2012-12-18 2013-04-17 广东欧珀移动通信有限公司 Method and device for dynamically setting sound effect of mobile terminal

Also Published As

Publication number Publication date
CN106293607A (en) 2017-01-04
WO2018035928A1 (en) 2018-03-01

Similar Documents

Publication Publication Date Title
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
CN107105367B (en) Audio signal processing method and terminal
JP6489563B2 (en) Volume control method, system, device and program
US9299333B2 (en) System for adaptive audio signal shaping for improved playback in a noisy environment
WO2019033986A1 (en) Sound playback device detection method, apparatus, storage medium, and terminal
WO2019033987A1 (en) Prompting method and apparatus, storage medium, and terminal
US9704497B2 (en) Method and system of audio power reduction and thermal mitigation using psychoacoustic techniques
US9769567B2 (en) Audio system and method
US11201598B2 (en) Volume adjusting method and mobile terminal
CN107465824B (en) Volume adjusting method and device, mobile terminal and storage medium
US9633667B2 (en) Adaptive audio signal filtering
CN107526570B (en) Volume adjusting method and device, terminal equipment and storage medium
WO2019033942A1 (en) Volume adjustment method and apparatus, terminal device, and storage medium
CN106293607B (en) Method and system for automatically switching audio output modes
CN110799936A (en) Volume adjusting method and device, terminal equipment and storage medium
CN107506168B (en) Volume adjusting method and device, terminal equipment and storage medium
KR102110515B1 (en) Hearing aid device of playing audible advertisement or audible data
CN104754099A (en) Conversation volume adjusting method
CN111556406B (en) Audio processing method, audio processing device and earphone
CN109274826B (en) Voice playing mode switching method and device, terminal and computer readable storage medium
CN111324331A (en) Interactive message prompting method and device, electronic equipment and storage medium
KR101696997B1 (en) Output Audio Size Automatic Adjustment Apparatus According to the Nosie using the DSP Codec Built
KR20110088721A (en) Method and apparatus for controlling volume during voice source playing
CN104754120A (en) Terminal
CN115729510A (en) Audio playing method, audio playing device and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant