WO2018035928A1 - 自动切换音频输出模式的方法及系统 - Google Patents

自动切换音频输出模式的方法及系统 Download PDF

Info

Publication number
WO2018035928A1
WO2018035928A1 PCT/CN2016/100681 CN2016100681W WO2018035928A1 WO 2018035928 A1 WO2018035928 A1 WO 2018035928A1 CN 2016100681 W CN2016100681 W CN 2016100681W WO 2018035928 A1 WO2018035928 A1 WO 2018035928A1
Authority
WO
WIPO (PCT)
Prior art keywords
output mode
audio output
audio
sound quality
noise
Prior art date
Application number
PCT/CN2016/100681
Other languages
English (en)
French (fr)
Inventor
牛志明
罗亮
Original Assignee
宇龙计算机通信科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Publication of WO2018035928A1 publication Critical patent/WO2018035928A1/zh

Links

Images

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
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • 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

Definitions

  • the present invention relates to the field of audio management, and in particular, to a method and system for automatically switching an audio output mode.
  • HIFI High-Fidelity
  • the user can manually adjust the audio output mode, that is, the normal audio output mode or the HIFI audio output mode can be selected.
  • the audio output mode that is, the normal audio output mode or the HIFI audio output mode can be selected.
  • these electronic devices cannot intelligently switch the audio output mode in time and with the change of the environment, so that the user has to switch manually, which both troubles and affects the user's music experience.
  • HIFI is to achieve high-fidelity sound through hardware, which will increase the power consumption of mobile phones.
  • a method for automatically switching an audio output mode is applied to an electronic device, the method comprising:
  • the audio output mode is switched according to the comparison result.
  • the trigger event information includes: a call state or an audio play state.
  • the preset threshold comprises: an ambient noise figure threshold or an audio file sound quality threshold.
  • the method comprises:
  • the ambient noise detecting method is invoked to detect a noise figure of the ambient noise currently in the electronic device;
  • the current audio output mode is switched to the normal audio output mode.
  • the method further comprises:
  • the current audio output mode is switched to the normal audio output mode.
  • Calling a module configured to call a detection method corresponding to the trigger event information to detect and obtain a detection result
  • Comparing a module configured to compare the detection result with a preset threshold
  • the switching module is set to switch the audio output mode according to the comparison result.
  • the trigger event information includes: a call state or an audio play state.
  • the preset threshold comprises: an ambient noise figure threshold or an audio file sound quality threshold.
  • the calling module when the trigger event information is in a call state, invokes an environmental noise detecting method to detect a noise figure of an environmental noise currently in which the electronic device is located;
  • the comparing module compares the detected noise figure with a preset ambient noise figure threshold
  • the switching module switches the current audio output mode to the HIFI audio output mode when the detected noise figure is greater than the ambient noise coefficient threshold;
  • the switching module switches the current audio output mode to the normal audio output mode when the detected noise figure is less than or equal to the ambient noise coefficient threshold.
  • the calling module calls the audio file sound quality detecting method to detect the sound quality of the audio file currently played by the electronic device when the trigger event information is in an audio playing state;
  • the switching module switches the current audio output mode to the HIFI audio output mode when the detected audio file sound quality is greater than the audio file sound quality threshold;
  • the switching module switches the current audio output mode to the normal audio output mode when the detected audio file sound quality is less than or equal to the audio file sound quality threshold.
  • the method and system for automatically switching the audio output mode according to the present invention can automatically switch the current audio output mode to the normal audio output mode or the HIFI audio output mode according to the external environment noise, thereby eliminating the user.
  • the cumbersome operation of manually switching the audio output mode enables the user to have a good experience while reducing the power consumption of the electronic device.
  • the current audio output mode can be automatically switched to the normal audio output mode or the HIFI audio output mode according to the sound quality of the played audio file, which greatly improves the user's experience of listening to music.
  • FIG. 1 is a block diagram showing the hardware structure of a preferred embodiment of an electronic device for performing a system for automatically switching audio output modes according to the present invention.
  • FIG. 2 is a flow chart of a method of a preferred embodiment of the method for automatically switching audio output modes of the present invention.
  • FIG. 3 is a functional block diagram of a preferred embodiment of the system for automatically switching audio output modes of the present invention.
  • the electronic device 1 includes, but is not limited to, a system 10 that automatically switches audio output modes, a storage unit 20, a processing unit 30, and an audio unit 40.
  • the method of automatically switching the audio output mode of the present invention is implemented by the system 10 in the electronic device 1 that automatically switches the audio output mode.
  • the electronic device 1 includes an electronic device capable of automatically performing numerical calculation and/or information processing according to an instruction set or stored in advance, the hardware of which includes but is not limited to a microprocessor, an application specific integrated circuit, a programmable gate array, Digital processors, embedded devices, etc.
  • the electronic device 1 may also include a user device.
  • the user equipment 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 pad, or a voice control device, such as a personal computer, a tablet computer, a smart phone, and a personal digital device. Assistants, game consoles, interactive web TVs, smart wearable devices, etc.
  • 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.
  • user equipment is only an example, and other existing or future user equipments, such as may be adapted to the present invention, are also included in the scope of the present invention and are incorporated herein by reference.
  • the storage unit 20 is configured 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, such as a plug-in hard disk, a smart media card (SMC), and a secure digital card (Secure Digital Card) on the electronic device 1. SD), flash memory card and other storage units.
  • the storage unit 20 may also include an internal storage unit of the electronic device 1 or an external storage unit.
  • an audio file is pre-stored in the storage unit 20, and the audio file may be an audio file such as WAV, MP3, APE, FLAC, or an audio file carried in the video file.
  • the storage unit 20 further stores parameters such as a noise figure threshold set in advance and/or an audio file sound quality threshold.
  • the processing unit 30 is one or more central processing units (CPUs), microprocessors or other digital processing chips, and the like.
  • the processing unit 30 is operative to execute software program code or operational data, such as the system 10 that performs the described automatic switching of audio output modes.
  • the processing unit 30 can switch between the HIFI audio output mode or the normal audio output mode according to the ambient noise when playing the audio file to implement HIFI playback or normal playback of the audio file.
  • the audio unit 40 is configured to output and/or input an audio signal.
  • the audio unit 40 includes a microphone that is configured to receive an external audio signal when the electronic device 1 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in the storage unit 20 or transmitted via a communication module of the electronic device 1.
  • the audio unit 40 further includes a speaker for outputting an audio signal.
  • the storage unit 20 in the electronic device 1 stores a plurality of instructions to implement a method of automatically switching an audio output mode
  • the processing unit 30 may execute the plurality of instructions Realizing: acquiring trigger event information; calling a detection method corresponding to the trigger event information to detect and obtaining a detection result; comparing the detection result with a preset threshold; and switching the audio output mode according to the comparison result.
  • the trigger event information includes: a call state or an audio play state; and the preset threshold includes: an ambient noise coefficient threshold or an audio file sound quality threshold.
  • the processing unit 30 may further implement: when the trigger event information is in a call state, invoke an environment in which the environmental noise detecting method is currently located in the electronic device. The noise figure of the noise is detected; the detected noise figure is compared with the ambient noise coefficient threshold; when the detected noise figure is greater than the ambient noise figure threshold, the current audio output mode is switched to the HIFI audio output mode Or switching the current audio output mode to the normal audio output mode when the detected noise figure is less than or equal to the ambient noise figure threshold.
  • the processing unit 30 may further implement: when the trigger event information is in an audio playing state, calling an audio file sound quality detecting method to be currently played by the electronic device The audio file sound quality is detected; the detected audio file sound quality is compared with the audio file sound quality threshold; when the detected audio file sound quality is greater than the audio file sound quality threshold, the current audio output mode is switched to HIFI audio The output mode; or when the detected audio file sound quality is less than or equal to the audio file sound quality threshold, the current audio output mode is switched to the normal audio output mode.
  • FIG. 2 it is a flowchart of a method of a preferred embodiment of the method for automatically switching audio output modes of the present invention.
  • the order of execution in the flowchart shown in the figure may vary depending on various requirements, and some may be omitted.
  • the trigger event information may be a trigger signal sent by another electronic device when other electronic devices are in communication connection with the electronic device 1 that executes the method, or may be the electronic device 1 to other electronic devices.
  • the trigger signal sent 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, or the like, or an audio file carried in the video file.
  • the trigger event information includes: a call state and an audio play state.
  • the trigger event information is a call state.
  • the trigger signal of the audio file is played by the electronic device 1, the trigger event information is an audio play state.
  • the system 10 for automatically switching the audio output mode invokes a corresponding detection method according to the trigger event information.
  • two detection methods are pre-stored in the electronic device 1 : an environmental noise detection method and an audio file sound quality detection method.
  • the ambient noise detecting method is configured to detect a noise figure of an environmental noise currently in which the electronic device 1 is located when the electronic device 1 is in a talking state.
  • the noise figure is a figure of merit used to describe the amount of excessive noise present in a system, in decibels dB.
  • the noise figure of the ambient noise may be detected by a noise detector mounted on the electronic device 1, such as a decibel meter or a noise detector.
  • the audio file sound quality detecting method is configured to detect the sound quality of the played audio file when the electronic device 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 regulated by the International Organization for Standardization (ISO) and the International Telecommunications Standardization Group (International Electrical Union telecommunication standardization). Organization, ITU-T) jointly developed, sampling frequency is 48kHz, 44.1kHz, 32kHz, digital rate of 32Kbps ⁇ 448Kbps per channel.
  • the sound quality of the audio file can be expressed by a bit rate, and the unit is Kilo Bit Per Second (Kbps).
  • the bit rate is a sampling rate for converting a digital sound from an analog format to a digital format, and the sampling rate is higher. The sound quality after restoration is better.
  • the system 10 that automatically switches the audio output mode may preset a threshold and store it in the storage unit 20.
  • Pre-set thresholds include: ambient noise figure threshold and audio file sound quality threshold.
  • the threshold of the ambient noise figure may be 50 decibels, and the threshold of the audio file sound quality is 160 Kbps.
  • the preset threshold may be set by the electronic device 1 by default. In some embodiments, since the frequency of the human ear sensitive audio of different users is different, the preset threshold may also be set and modified by the user according to his own needs or personal preferences. When the user sets or modifies the above thresholds, the system 10 that automatically switches the audio output mode invokes the latest set or modified threshold.
  • the system 10 that automatically switches the audio output mode invokes the ambient noise detecting method to detect the noise figure of the environmental noise currently in which the electronic device 1 is located
  • the detected noise figure is The ambient noise figure threshold is compared.
  • the system 10 for automatically switching the audio output mode can sample the noise signal recorded in a certain period of time, and then perform sound decibel detection on the sampled noise signal. Further, in order to improve the accuracy, a high sampling rate of the recorded noise signal is obtained, a plurality of noise signals are obtained, and the noise decibel value of each noise signal is summed and averaged to obtain an average noise decibel value, and the average is obtained.
  • the noise decibel value is used as a noise figure of the environmental noise in which the electronic device 1 is currently located.
  • the system 10 that automatically switches the audio output mode calls the audio file sound quality detecting method to detect the audio quality of the audio file currently played by the electronic device 1
  • the sound quality of the detected audio file is The audio file sound quality thresholds are compared.
  • the system 10 for automatically switching the audio output mode can sample the audio signal recorded in a certain period of time, and then perform sound quality detection on the sampled audio signal. Further, in order to improve the accuracy, a high sampling rate of the recorded audio signal is obtained, a plurality of audio signals are obtained, and the sound quality of each audio signal is summed and averaged to obtain an average audio sound quality, and the average audio quality is taken as The audio file sound quality currently played by the electronic device 1.
  • the system 10 switches the current audio output mode to the HIFI audio output mode, and outputs the user's call voice according to the HIFI audio output mode.
  • the obtained noise figure for example, 35 decibels
  • the environmental noise coefficient threshold for example, 50 decibels
  • the audio file currently played by the electronic device 1 has a higher sound quality.
  • 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 in accordance with the HIFI audio output mode.
  • the obtained audio file sound quality is less than (for example, 128 Kbps) or equal to the audio file sound quality threshold (for example, 160 Kbps)
  • the audio file currently played by the electronic device 1 has a lower sound quality, and the automatic switching audio output is low.
  • the mode system 10 switches the current audio output mode to the normal audio output mode, and plays the audio file in the normal audio output mode.
  • the current audio output mode is the audio output mode that needs to be switched, it is not necessary to perform the above switching action, and the current mode is retained.
  • the method for automatically switching the audio output mode according to the present invention can call the corresponding detection method to detect according to the current mode of the electronic device 1, and obtain the detection result that meets the content, and The detection result is compared with a preset threshold, and the audio output mode is switched according to the comparison result. That is, when the electronic device 1 is in a call state, detecting a noise figure of the ambient noise currently in which the electronic device 1 is located, comparing the noise coefficient with a threshold value of a pre-stored noise figure, and switching the HIFI audio output according to the comparison result. Mode or normal audio output mode.
  • Mode When the electronic device 1 is in the audio playing state, detecting the audio quality of the audio file currently played by the electronic device 1, comparing the sound quality of the audio file with the threshold of the sound quality of the pre-stored audio file, and switching the HIFI audio output according to the comparison result.
  • Mode or normal audio output mode It eliminates the cumbersome operation of the user to manually switch the audio output mode, so that the user can obtain a good experience while reducing the power consumption of the electronic device.
  • FIG. 3 it is a functional block diagram of a preferred embodiment of the system 10 for automatically switching audio output modes.
  • the system 10 for automatically switching the audio output mode can be divided into a plurality of functional modules according to the functions performed by the system.
  • the function module includes: an obtaining module 101, a calling module 102, a comparing module 103, a setting module 104, and a switching module 105.
  • a module referred to in the present invention refers to a series of computer program segments that can be executed by the processing unit 30 and that are capable of performing a fixed function, which are stored in the storage unit 20. In the present embodiment, the functions of the respective modules will be described in detail in the subsequent embodiments.
  • the obtaining module 101 is configured to acquire trigger event information.
  • the trigger event information may be a trigger signal sent by another electronic device when other electronic devices are in communication connection with the electronic device 1 that executes the method, or may be the electronic device 1 to other electronic devices.
  • the trigger signal sent 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, or the like, or an audio file carried in the video file.
  • the trigger event information includes: a call state and an audio play state.
  • the trigger event information is a call state.
  • the trigger signal of the audio file is played by the electronic device 1, the trigger event information is an audio play state.
  • the calling module 102 is configured to invoke a detection method corresponding to the trigger event information to detect the detection result.
  • the calling module 102 invokes a corresponding detection method according to the trigger event information.
  • two detection methods are pre-stored in the electronic device 1 : an environmental noise detection method and an audio file sound quality detection method.
  • the ambient noise detecting method is configured to detect a noise figure of an environmental noise currently in which the electronic device 1 is located when the electronic device 1 is in a talking state.
  • the noise figure is a figure of merit used to describe the amount of excessive noise present in a system, in decibels dB.
  • the noise figure of the ambient noise may be detected by a noise detector mounted on the electronic device 1, such as a decibel meter or a noise detector.
  • the audio file sound quality detecting method is configured to detect the sound quality of the played audio file when the electronic device 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 regulated by the International Organization for Standardization (ISO) and the International Telecommunications Standardization Group (International Electrical Union telecommunication standardization). Organization, ITU-T) jointly developed, sampling frequency is 48kHz, 44.1kHz, 32kHz, digital rate of 32Kbps ⁇ 448Kbps per channel.
  • the sound quality of the audio file can be expressed by a bit rate, and the unit is Kilo Bit Per Second (Kbps).
  • the bit rate is a sampling rate for converting a digital sound from an analog format to a digital format, and the sampling rate is higher. The sound quality after restoration is better.
  • the comparison module 103 is configured to compare the detection result with a preset threshold.
  • the setting module 104 may preset a threshold and store it in the storage unit 20.
  • Pre-set thresholds include: ambient noise figure threshold and audio file sound quality threshold.
  • the threshold of the ambient noise figure may be 50 decibels, and the threshold of the audio file sound quality is 160 Kbps.
  • the preset threshold may be set by the electronic device 1 by default. In some embodiments, since the frequency of the human ear sensitive audio of different users is different, the preset threshold may also be set and modified by the user according to his own needs or personal preferences. After the user sets or modifies the above threshold, the comparison module 103 calls the latest set or modified threshold.
  • the comparing module 103 compares the detected noise figure with The ambient noise figure threshold is compared.
  • the calling module 102 can sample the noise signal recorded in a certain period of time, and then perform sound decibel detection on the sampled noise signal. Further, in order to improve the accuracy, a high sampling rate of the recorded noise signal is obtained, a plurality of noise signals are obtained, and the noise decibel value of each noise signal is summed and averaged to obtain an average noise decibel value, and the average is obtained.
  • the noise decibel value is used as a noise figure of the environmental noise in which the electronic device 1 is currently located.
  • the comparing module 103 detects the sound quality of the audio file.
  • the audio file sound quality thresholds are compared.
  • the calling module 102 may sample the audio signal recorded in a certain period of time, and then perform sound quality detection on the sampled audio signal. Further, in order to improve the accuracy, a high sampling rate of the recorded audio signal is obtained, a plurality of audio signals are obtained, and the sound quality of each audio signal is summed and averaged to obtain an average audio sound quality, and the average audio quality is taken as The audio file sound quality currently played by the electronic device 1.
  • the switching module 105 is configured to switch the audio output mode according to the comparison result.
  • the switching module 105 when the obtained noise figure (for example, 60 decibels) is greater than the environmental noise coefficient threshold (for example, 50 decibels), indicating that the environmental noise is large at this time, the switching module 105 will present the current The audio output mode is switched to the HIFI audio output mode, and the user's call voice is output according to the HIFI audio output mode.
  • the obtained noise figure for example, 35 decibels
  • the environmental noise coefficient threshold for example, 50 decibels
  • the audio file sound quality threshold for example, 160 Kbps
  • the audio file currently played by the electronic device 1 has a higher sound quality.
  • 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.
  • the switching module 105 The current audio output mode is switched to the normal audio output mode, and the audio file is played in the normal audio output mode.
  • the current audio output mode is the audio output mode that needs to be switched, it is not necessary to perform the above switching action, and the current mode is retained.
  • the system for automatically switching the audio output mode can call the corresponding detection method to detect according to the current mode of the electronic device 1, and obtain the detection result that meets the content, and The detection result is compared with a preset threshold, and the audio output mode is switched according to the comparison result. That is, when the electronic device 1 is in a call state, detecting a noise figure of the ambient noise currently in which the electronic device 1 is located, comparing the noise coefficient with a threshold value of a pre-stored noise figure, and switching the HIFI audio output according to the comparison result. Mode or normal audio output mode.
  • Mode When the electronic device 1 is in the audio playing state, detecting the audio quality of the audio file currently played by the electronic device 1, comparing the sound quality of the audio file with the threshold of the sound quality of the pre-stored audio file, and switching the HIFI audio output according to the comparison result.
  • Mode or normal audio output mode It eliminates the cumbersome operation of the user to manually switch the audio output mode, so that the user can obtain a good experience while reducing the power consumption of the electronic device.
  • each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software function modules.
  • the above-described integrated unit implemented in the form of a software function module can be stored in a computer readable storage medium.
  • the above software function module is stored in a storage medium, and includes a plurality of instructions for causing a computer device (which may be a personal computer, a communication terminal, or a network device, etc.) or a processor to execute the method according to various embodiments of the present invention. part.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

一种自动切换音频输出模式的方法,应用于电子设备中,所述方法包括:获取触发事件信息(S20);调用与所述触发事件信息相应的检测方法进行检测并得到检测结果(S21);将所述检测结果与预设的阈值进行比较(S22);根据比较结果切换音频输出模式(S23)。通过该方法能够自动将当前的音频输出模式切换成普通音频输出模式或者HIFI音频输出模式,使用户获得良好体验的同时还能降低电子设备的功耗。

Description

自动切换音频输出模式的方法及系统
本申请要求于2016年8月22日提交中国专利局,申请号为201610702555.X、发明名称为“自动切换音频输出模式的方法及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及音频管理领域,尤其涉及一种自动切换音频输出模式的方法及系统。
背景技术
出于对音质的需求,现在越来越多的手机厂商将高保真(High-Fidelity,下文简称为“HIFI”)功能做在手机中,从而可以使任意耳机均可享受到HIFI的音响效果。HIFI是指声频录音及放音系统或设备具有如实反映声音信号本来面貌的能力,以及设备对声音信号进行特定修饰、加工处理和声场再现时声像位置及其移动的逼真程度。
现有技术中的一些电子设备,用户可通过手动的方式调节音频输出模式,即可以选择普通音频输出模式或者HIFI音频输出模式。然而,当周围环境噪声复杂或不断变化时,这些电子设备不能随着环境的变化及时地智能切换音频输出模式,这样用户不得不通过手动的方式切换,既麻烦又影响了用户的音乐体验。
其次,HIFI是通过硬件实现高保真音效,会增加手机的功耗。
发明内容
鉴于以上内容,有必要提供一种自动切换音频输出模式的方法,能够自动将当前的音频输出模式切换成普通音频输出模式或HIFI音频输出模式,使用户获得良好体验的同时还能降低电子设备的功耗。
还有必要提供一种自动切换音频输出模式的方系统,能够自动将当前的音频输出模式切换成普通音频输出模式或HIFI音频输出模式,使用户获得良好体验的同时还能降低电子设备的功耗。
一种自动切换音频输出模式的方法,应用于电子设备中,所述方法包括:
获取触发事件信息;
调用与所述触发事件信息相应的检测方法进行检测并得到检测结果;
将所述检测结果与预设的阈值进行比较;及
根据比较结果切换音频输出模式。
根据本发明的一个优选实施例,所述触发事件信息包括:通话状态或音频播放状态。
根据本发明的一个优选实施例,所述预设的阈值包括:环境噪声系数阈值或音频文件音质阈值。
根据本发明的一个优选实施例,所述方法包括:
当所述触发事件信息为通话状态时,调用环境噪声检测方法得到对所述电子设备当前所处的环境噪声的噪声系数进行检测;
将检测到的噪声系数与所述环境噪声系数阈值进行比较;及
当检测到的噪声系数大于所述环境噪声系数阈值时,将当前的音频输出模式切换成HIFI音频输出模式;或者
当检测到的噪声系数小于或等于所述环境噪声系数阈值时,将当前的音频输出模式切换成普通音频输出模式。
根据本发明的一个优选实施例,所述方法还包括:
当所述触发事件信息为音频播放状态时,调用音频文件音质检测方法对所述电子设备当前所播放的音频文件音质进行检测;
将检测到的音频文件音质与所述音频文件音质阈值进行比较;及
当检测到的音频文件音质大于所述音频文件音质阈值时,将当前的音频输出模式切换成HIFI音频输出模式;或者
当检测到的音频文件音质小于或等于所述音频文件音质阈值时,将当前的音频输出模式切换成普通音频输出模式。
一种自动切换音频输出模式的系统,安装于电子设备中,所述系统包括:
获取模块,设置为获取触发事件信息;
调用模块,设置为调用与所述触发事件信息相应的检测方法进行检测并得到检测结果;
比较模块,设置为将所述检测结果与预设的阈值进行比较;及
切换模块,设置为根据比较结果切换音频输出模式。
根据本发明的一个优选实施例,所述触发事件信息包括:通话状态或音频播放状态。
根据本发明的一个优选实施例,所述预设的阈值包括:环境噪声系数阈值或音频文件音质阈值。
根据本发明的一个优选实施例,
所述调用模块在所述触发事件信息为通话状态时,调用环境噪声检测方法对所述电子设备当前所处的环境噪声的噪声系数进行检测;
所述比较模块在将检测到的噪声系数与预设的环境噪声系数阈值进行比较;及
所述切换模块在检测到的噪声系数大于所述环境噪声系数阈值时,将当前的音频输出模式切换成HIFI音频输出模式;或者
所述切换模块在检测到的噪声系数小于或等于所述环境噪声系数阈值时,将当前的音频输出模式切换成普通音频输出模式。
根据本发明的一个优选实施例,
所述调用模块在所述触发事件信息为音频播放状态时,调用音频文件音质检测方法对所述电子设备当前所播放的音频文件音质进行检测;
所述比较模块在将检测到的音频文件音质与预设的音频文件音质阈值进行比较;及
所述切换模块在检测到的音频文件音质大于所述音频文件音质阈值时,将当前的音频输出模式切换成HIFI音频输出模式;或者
所述切换模块在检测到的音频文件音质小于或等于所述音频文件音质阈值时,将当前的音频输出模式切换成普通音频输出模式。
相较于现有技术,本发明所述的自动切换音频输出模式的方法及系统,能够根据外界环境噪声自动将当前的音频输出模式切换成普通音频输出模式或者HIFI音频输出模式,免去了用户人工切换音频输出模式的繁琐操作,使用户获得良好体验的同时还能降低电子设备的功耗。其次,在使用电子设备播放音频文件时,还可根据播放的音频文件的音质,自动将当前的音频输出模式切换成普通音频输出模式或者HIFI音频输出模式,大大提升了用户听音乐的体验。
附图说明
图1所示是执行本发明所述自动切换音频输出模式的系统的电子设备的较佳实施例的硬件结构示意图。
图2所示是本发明自动切换音频输出模式的方法较佳实施例的方法流程图。
图3所示是本发明自动切换音频输出模式的系统较佳实施例的功能模块图。
具体实施方式
为了使本发明的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本发明进行详细描述。显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。此外,应当理解,本文所描述的具体实施例,仅用以解释本发明,并不用于限定本发明。
如图1所示,是本发明用于执行一个自动切换音频输出模式的系统的电子设备较佳实施例的硬件架构示意图。如该硬件架构示意图所示,电子设备1包括,但不限于,自动切换音频输出模式的系统10、存储单元20、处理单元30及音频单元40。
优选地,本发明的自动切换音频输出模式的方法通过所述电子设备1中的自动切换音频输出模式的系统10来实现。
所述电子设备1包括一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的电子设备,其硬件包括但不限于微处理器、专用集成电路、可编程门阵列、数字处理器、嵌入式设备等。所述电子设备1还可包括用户设备。所述用户设备包括但不限于任何一种可与用户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、个人数字助理、游戏机、交互式网络电视、智能式穿戴设备等。其中,所述用户设备所处的网络包括但不限于互联网、广域网、城域网、局域网、虚拟专用网络等。
需要说明的是,所述用户设备仅为举例,其他现有的或今后可能出现的用户设备如可适应于本发明,也应包含在本发明的保护范围以内,并以引用方式包含于此。
在一个实施例中,所述存储单元20用于存储安裝于所述电子设备1中的软件程序及数据,例如所述自动切换音频输出模式的系统10。该存储单元20可以是所述电子设备1的内部存储单元,例如所述电子设备1的硬盘或者内存。所述存储单元20也可以是所述电子设备1的外部存储单元,例如所述电子设备1上的插接式硬盘、智能媒体卡(Smart Media Card,SMC)、安全数字卡(Secure Digital Card,SD)、快闪存储器卡(flash card)等储存单元。进一步地,所述存储单元20还可以既包括所述电子设备1的内部存储单元,也可以包括外部存储单元。
本实施例中,所述存储单元20中预先存储有音频文件,所述音频文件可以是WAV、MP3、APE、FLAC等音频文件,也可以是视频文件中带有的音频文件。所述存储单元20中还存储有预先设置的噪声系数阈值及/或音频文件音质阈值等参数。
在一个实施例中,所述处理单元30是一个或者多个中央处理器(Central Processing unit,CPU)、微处理器或其他数字处理芯片等。该处理单元30用于执行软件程序代码或运算数据,例如执行所述的自动切换音频输出模式的系统10。所述处理单元30在播放音频文件时能够根据环境噪声选择切换HIFI音频输出模式或者普通音频输出模式,以实现该音频文件的HIFI播放或者普通播放。
在一个实施例中,所述音频单元40被配置为输出和/或输入音频信号。所述音频单元40包括一个麦克风,当所述电子设备1处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在所述存储单元20中或经由所述电子设备1的通信模块发送。在一些实施例中,所述音频单元40还包括一个扬声器,用于输出音频信号。
在本发明的一个实施例中,所述电子设备1中的所述存储单元20存储多个指令以实现一种自动切换音频输出模式的方法,所述处理单元30可执行所述多个指令从而实现:获取触发事件信息;调用与所述触发事件信息相应的检测方法进行检测并得到检测结果;将所述检测结果与预设的阈值进行比较;根据比较结果切换音频输出模式。
其中,所述触发事件信息包括:通话状态或音频播放状态;所述预设的阈值包括:环境噪声系数阈值或音频文件音质阈值。
在进一步的实施例中,根据所存储的多个指令,所述处理单元30可进一步实现:当所述触发事件信息为通话状态时,调用环境噪声检测方法对所述电子设备当前所处的环境噪声的噪声系数进行检测;将检测到的噪声系数与所述环境噪声系数阈值进行比较;当检测到的噪声系数大于所述环境噪声系数阈值时,将当前的音频输出模式切换成HIFI音频输出模式;或者当检测到的噪声系数小于或等于所述环境噪声系数阈值时,将当前的音频输出模式切换成普通音频输出模式。
在进一步的实施例中,根据所存储的多个指令,所述处理单元30可进一步实现:当所述触发事件信息为音频播放状态时,调用音频文件音质检测方法对所述电子设备当前所播放的音频文件音质进行检测;将检测到的音频文件音质与所述音频文件音质阈值进行比较;当检测到的音频文件音质大于所述音频文件音质阈值时,将当前的音频输出模式切换成HIFI音频输出模式;或者当检测到的音频文件音质小于或等于所述音频文件音质阈值时,将当前的音频输出模式切换成普通音频输出模式。
参考图2所示,是本发明自动切换音频输出模式的方法较佳实施例的方法流程图。根据不同的需求,该图所示流程图中的执行顺序可以改变,某些可以省略。
S20,获取触发事件信息。
在本实施例中,所述触发事件信息,可以是其他电子设备与执行本方法的电子设备1通讯连接时,由其他电子设备发送的触发信号,也可以是所述电子设备1向其他电子设备发送的触发信号,还可以是由所述电子设备1播放音频文件时产生的触发信号。所述音频文件可以是WAV、MP3、APE、FLAC等音频文件,也可以是视频文件中带有的音频文件。
所述触发事件信息包括:通话状态及音频播放状态。当接收到所述电子设备1与其他电子设备通讯连接的信号时,所述触发事件信息为通话状态。当接收到所述电子设备1播放音频文件的触发信号时,所述触发事件信息为音频播放状态。
S21,调用与所述触发事件信息相应的检测方法进行检测得到检测结果。
在本实施例中,所述自动切换音频输出模式的系统10根据所述触发事件信息调用相应的检测方法。
在本实施例中,所述电子设备1中预先存储有两种检测方法:环境噪声检测方法及音频文件音质检测方法。
所述环境噪声检测方法用于当所述电子设备1处于通话状态时,检测所述电子设备1当前所处的环境噪声的噪声系数。所述噪声系数是用来描述一个系统中出现的过多的噪声量的品质因数,单位是分贝dB。所述环境噪声的噪声系数可以由安装在所述电子设备1上的噪声检测器进行检测,例如分贝计或者噪声检测仪。
所述音频文件音质检测方法用于当所述电子设备1处于音频播放状态时,检测所播放的音频文件的音质。所述音频文件音质是指经传输、处理后音频信号的保真度,高保真音频压缩标准由国际标准化组织(International Standard Organization,ISO)和国际电性联盟远程通信标准化组(International electrical union telecommunication standardization organization,ITU-T)联合制订,采样频率为48kHz、44.1kHz、32kHz,每声道数码率32Kbps~448Kbps。所述音频文件音质可以用比特率表示,单位是千位节每秒(Kilo Bit Per Second,Kbps),比特率是指将数字声音由模拟格式转化成数字格式的采样率,采样率越高,还原后的音质就越好。
S22,将所述检测结果与预设的阈值进行比较。
在本实施例中,所述自动切换音频输出模式的系统10可以预先设置阈值并存储于所述存储单元20中。预先设置的阈值包括:环境噪声系数阈值及音频文件音质阈值。其中,所述环境噪声系数的阈值可以为50分贝,所述音频文件音质的阈值160Kbps。
在一些实施例中,所述预先设置的阈值可以是所述电子设备1默认设置的。在一些实施例中,由于不同的用户的人耳敏感的音频的频率不一样,所述预先设置的阈值也可以由用户根据自己的需求或者个人喜好自行设置、修改。当用户自行设置或者修改上述阈值后,所述自动切换音频输出模式的系统10调用最新设置或者修改的阈值。
在第一个实施例中,当所述自动切换音频输出模式的系统10调用环境噪声检测方法对所述电子设备1当前所处的环境噪声的噪声系数进行检测时,将检测到的噪声系数与所述环境噪声系数阈值进行比较。所述自动切换音频输出模式的系统10可以对某一时间段内记录到的噪声信号进行采样,再对采样到的噪声信号进行声音分贝检测。进一步的,为提高准确率,可对记录到的噪声信号进行高采样率,获得多个噪声信号,并对每个噪声信号的噪声分贝值进行求和平均,获得平均噪声分贝值,并将平均噪声分贝值作为所述电子设备1当前所处的环境噪声的噪声系数。
在第二个实施例中,当所述自动切换音频输出模式的系统10调用音频文件音质检测方法对所述电子设备1当前所播放的音频文件音质进行检测时,将检测到的音频文件音质与所述音频文件音质阈值进行比较。所述自动切换音频输出模式的系统10可以对某一时间段内记录到的音频信号进行采样,再对采样到的音频信号进行音质检测。进一步的,为提高准确率,可对记录到的音频信号进行高采样率,获得多个音频信号,并对每个音频信号的音质进行求和平均,获得平均音频音质,并将平均音频音质作为所述电子设备1当前所播放的音频文件音质。
S23,根据比较结果切换音频输出模式。
在上述第一个实施例中,当所得到的噪声系数(例如,60分贝)大于所述环境噪声系数阈值(例如,50分贝),说明此时环境噪声较大,所述自动切换音频输出模式的系统10将当前的音频输出模式切换成HIFI音频输出模式,按照HIFI音频输出模式输出用户的通话语音。当所得到的噪声系数(例如,35分贝)小于或等于所述环境噪声系数阈值(例如,50分贝),说明此时环境噪声较小,所述自动切换音频输出模式的系统10将当前的音频输出模式切换成普通音频输出模式,按照普通音频输出模式输出用户的通话语音。
在上述第二个实施例中,当所得到的音频文件音质(例如,192Kbps)大于所述音频文件音质阈值(例如,160Kbps),说明所述电子设备1当前所播放的音频文件音质较高,所述自动切换音频输出模式的系统10将当前的音频输出模式切换成HIFI音频输出模式,按照HIFI音频输出模式播放所述音频文件。当所得到的音频文件音质小于(例如,128 Kbps)或等于所述音频文件音质阈值(例如,160Kbps),说明所述电子设备1当前所播放的音频文件音质高较低,所述自动切换音频输出模式的系统10将当前的音频输出模式切换成普通音频输出模式,按照普通音频输出模式播放所述音频文件。
需要说明的是,若当前的音频输出模式就是需要切换得到的音频输出模式,则无需执行上述的切换动作,保留当前模式即可。
综上所述,本发明所述的自动切换音频输出模式的方法,能根据所述电子设备1当前所处的模式,调用相应的检测方法进行检测,获取符合内容的检测结果,并将所述检测结果与预先设置的阈值进行比较,根据比较结果切换音频输出模式。即当所述电子设备1处于通话状态时,检测所述电子设备1当前所处的环境噪声的噪声系数,比较所述噪声系数与预先存储的噪声系数的阈值,根据比较的结果切换HIFI音频输出模式或者普通音频输出模式。当所述电子设备1处于音频播放状态时,检测所述电子设备1当前所播放的音频文件音质,比较所述音频文件音质与预先存储的音频文件音质的阈值,根据比较的结果切换HIFI音频输出模式或者普通音频输出模式。免去了用户人工切换音频输出模式的繁琐操作,使用户获得良好体验的同时还能降低电子设备的功耗。
参阅图3所示,是本发自动切换音频输出模式的系统10较佳实施例中的功能模块图。
本实施例中,所述自动切换音频输出模式的系统10根据其所执行的功能,可以被划分为多个功能模块。本实施例中,所述功能模块包括:获取模块101、调用模块102、比较模块103、设置模块104以及切换模块105。本发明所称的模块是指一种能够被处理单元30所执行并且能够完成固定功能的一系列计算机程序段,其存储在存储单元20中。在本实施例中,关于各模块的功能将在后续的实施例中详述。
所述获取模块101,设置为获取触发事件信息。
在本实施例中,所述触发事件信息,可以是其他电子设备与执行本方法的电子设备1通讯连接时,由其他电子设备发送的触发信号,也可以是所述电子设备1向其他电子设备发送的触发信号,还可以是由所述电子设备1播放音频文件时产生的触发信号。所述音频文件可以是WAV、MP3、APE、FLAC等音频文件,也可以是视频文件中带有的音频文件。
所述触发事件信息包括:通话状态及音频播放状态。当接收到所述电子设备1与其他电子设备通讯连接的信号时,所述触发事件信息为通话状态。当接收到所述电子设备1播放音频文件的触发信号时,所述触发事件信息为音频播放状态。
所述调用模块102,设置为调用与所述触发事件信息相应的检测方法进行检测得到检测结果。
在本实施例中,所述调用模块102根据所述触发事件信息调用相应的检测方法。
在本实施例中,所述电子设备1中预先存储有两种检测方法:环境噪声检测方法及音频文件音质检测方法。
所述环境噪声检测方法用于当所述电子设备1处于通话状态时,检测所述电子设备1当前所处的环境噪声的噪声系数。所述噪声系数是用来描述一个系统中出现的过多的噪声量的品质因数,单位是分贝dB。所述环境噪声的噪声系数可以由安装在所述电子设备1上的噪声检测器进行检测,例如分贝计或者噪声检测仪。
所述音频文件音质检测方法用于当所述电子设备1处于音频播放状态时,检测所播放的音频文件的音质。所述音频文件音质是指经传输、处理后音频信号的保真度,高保真音频压缩标准由国际标准化组织(International Standard Organization,ISO)和国际电性联盟远程通信标准化组(International electrical union telecommunication standardization organization,ITU-T)联合制订,采样频率为48kHz、44.1kHz、32kHz,每声道数码率32Kbps~448Kbps。所述音频文件音质可以用比特率表示,单位是千位节每秒(Kilo Bit Per Second,Kbps),比特率是指将数字声音由模拟格式转化成数字格式的采样率,采样率越高,还原后的音质就越好。
所述比较模块103,设置为将所述检测结果与预设的阈值进行比较。
在本实施例中,所述设置模块104可以预先设置阈值并存储于所述存储单元20中。预先设置的阈值包括:环境噪声系数阈值及音频文件音质阈值。其中,所述环境噪声系数的阈值可以为50分贝,所述音频文件音质的阈值160Kbps。
在一些实施例中,所述预先设置的阈值可以是所述电子设备1默认设置的。在一些实施例中,由于不同的用户的人耳敏感的音频的频率不一样,所述预先设置的阈值也可以由用户根据自己的需求或者个人喜好自行设置、修改。当用户自行设置或者修改上述阈值后,所述比较模块103调用最新设置或者修改的阈值。
在第一个实施例中,当所述调用模块102调用环境噪声检测方法对所述电子设备1当前所处的环境噪声的噪声系数进行检测时,所述比较模块103将检测到的噪声系数与所述环境噪声系数阈值进行比较。所述调用模块102可以对某一时间段内记录到的噪声信号进行采样,再对采样到的噪声信号进行声音分贝检测。进一步的,为提高准确率,可对记录到的噪声信号进行高采样率,获得多个噪声信号,并对每个噪声信号的噪声分贝值进行求和平均,获得平均噪声分贝值,并将平均噪声分贝值作为所述电子设备1当前所处的环境噪声的噪声系数。
在第二个实施例中,当所述调用模块102调用音频文件音质检测方法对所述电子设备1当前所播放的音频文件音质进行检测时,所述比较模块103将检测到的音频文件音质与所述音频文件音质阈值进行比较。所述所述调用模块102可以对某一时间段内记录到的音频信号进行采样,再对采样到的音频信号进行音质检测。进一步的,为提高准确率,可对记录到的音频信号进行高采样率,获得多个音频信号,并对每个音频信号的音质进行求和平均,获得平均音频音质,并将平均音频音质作为所述电子设备1当前所播放的音频文件音质。
所述切换模块105,设置为根据比较结果切换音频输出模式。
在上述第一个实施例中,当所得到的噪声系数(例如,60分贝)大于所述环境噪声系数阈值(例如,50分贝),说明此时环境噪声较大,所述切换模块105将当前的音频输出模式切换成HIFI音频输出模式,按照HIFI音频输出模式输出用户的通话语音。当所得到的噪声系数(例如,35分贝)小于或等于所述环境噪声系数阈值(例如,50分贝),说明此时环境噪声较小,所述切换模块105将当前的音频输出模式切换成普通音频输出模式,按照普通音频输出模式输出用户的通话语音。
在上述第二个实施例中,当所得到的音频文件音质(例如,192Kbps)大于所述音频文件音质阈值(例如,160Kbps),说明所述电子设备1当前所播放的音频文件音质较高,所述切换模块105将当前的音频输出模式切换成HIFI音频输出模式,按照HIFI音频输出模式播放所述音频文件。当所得到的音频文件音质小于(例如,128 Kbps)或等于所述音频文件音质阈值(例如,160Kbps),说明所述电子设备1当前所播放的音频文件音质高较低,所述切换模块105将当前的音频输出模式切换成普通音频输出模式,按照普通音频输出模式播放所述音频文件。
需要说明的是,若当前的音频输出模式就是需要切换得到的音频输出模式,则无需执行上述的切换动作,保留当前模式即可。
综上所述,本发明所述的自动切换音频输出模式的系统,能根据所述电子设备1当前所处的模式,调用相应的检测方法进行检测,获取符合内容的检测结果,并将所述检测结果与预先设置的阈值进行比较,根据比较结果切换音频输出模式。即当所述电子设备1处于通话状态时,检测所述电子设备1当前所处的环境噪声的噪声系数,比较所述噪声系数与预先存储的噪声系数的阈值,根据比较的结果切换HIFI音频输出模式或者普通音频输出模式。当所述电子设备1处于音频播放状态时,检测所述电子设备1当前所播放的音频文件音质,比较所述音频文件音质与预先存储的音频文件音质的阈值,根据比较的结果切换HIFI音频输出模式或者普通音频输出模式。免去了用户人工切换音频输出模式的繁琐操作,使用户获得良好体验的同时还能降低电子设备的功耗。
在本发明所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。
上述以软件功能模块的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,通讯终端,或者网络设备等)或处理单元(processor)执行本发明各个实施例所述方法的部分。
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。
最后应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。

Claims (10)

  1. 一种自动切换音频输出模式的方法,应用于电子设备中,其特征在于,所述方法包括:
    获取触发事件信息;
    调用与所述触发事件信息相应的检测方法进行检测并得到检测结果;
    将所述检测结果与预设的阈值进行比较;
    根据比较结果切换音频输出模式。
  2. 如权利要求1所述的自动切换音频输出模式的方法,其特征在于,所述触发事件信息包括:通话状态或音频播放状态。
  3. 如权利要求2所述的自动切换音频输出模式的方法,其特征在于,所述预设的阈值包括:环境噪声系数阈值或音频文件音质阈值。
  4. 如权利要求3所述的自动切换音频输出模式的方法,其特征在于,所述方法包括:
    当所述触发事件信息为通话状态时,调用环境噪声检测方法对所述电子设备当前所处的环境噪声的噪声系数进行检测;
    将检测到的噪声系数与所述环境噪声系数阈值进行比较;
    当检测到的噪声系数大于所述环境噪声系数阈值时,将当前的音频输出模式切换成HIFI音频输出模式;或者
    当检测到的噪声系数小于或等于所述环境噪声系数阈值时,将当前的音频输出模式切换成普通音频输出模式。
  5. 如权利要求3所述的自动切换音频输出模式的方法,其特征在于,所述方法还包括:
    当所述触发事件信息为音频播放状态时,调用音频文件音质检测方法对所述电子设备当前所播放的音频文件音质进行检测;
    将检测到的音频文件音质与所述音频文件音质阈值进行比较;
    当检测到的音频文件音质大于所述音频文件音质阈值时,将当前的音频输出模式切换成HIFI音频输出模式;或者
    当检测到的音频文件音质小于或等于所述音频文件音质阈值时,将当前的音频输出模式切换成普通音频输出模式。
  6. 一种自动切换音频输出模式的系统,安装于电子设备中,其特征在于,所述系统包括:
    获取模块,设置为获取触发事件信息;
    调用模块,设置为调用与所述触发事件信息相应的检测方法进行并检测得到检测结果;
    比较模块,设置为将所述检测结果与预设的阈值进行比较;及
    切换模块,设置为根据比较结果切换音频输出模式。
  7. 如权利要求6所述的自动切换音频输出模式的系统,其特征在于,所述触发事件信息包括:通话状态或音频播放状态。
  8. 如权利要求7所述的自动切换音频输出模式的系统,其特征在于,所述预设的阈值包括:环境噪声系数阈值或音频文件音质阈值。
  9. 如权利要求8所述的自动切换音频输出模式的系统,其特征在于,
    所述调用模块在所述触发事件信息为通话状态时,调用环境噪声检测方法对所述电子设备当前所处的环境噪声的噪声系数进行检测;
    所述比较模块将检测到的噪声系数与所述环境噪声系数阈值进行比较;
    所述切换模块在检测到的噪声系数大于所述环境噪声系数阈值时,将当前的音频输出模式切换成HIFI音频输出模式;或者
    所述切换模块在检测到的噪声系数小于或等于所述环境噪声系数阈值时,将当前的音频输出模式切换成普通音频输出模式。
  10. 如权利要求8所述的自动切换音频输出模式的系统,其特征在于,
    所述调用模块在所述触发事件信息为音频播放状态时,调用音频文件音质检测方法对所述电子设备当前所播放的音频文件音质进行检测;
    所述比较模块在将检测到的音频文件音质与所述音频文件音质阈值进行比较;及
    所述切换模块在检测到的音频文件音质大于所述音频文件音质阈值时,将当前的音频输出模式切换成HIFI音频输出模式;或者
    所述切换模块在检测到的音频文件音质小于或等于所述音频文件音质阈值时,将当前的音频输出模式切换成普通音频输出模式。
PCT/CN2016/100681 2016-08-22 2016-09-28 自动切换音频输出模式的方法及系统 WO2018035928A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610702555.X 2016-08-22
CN201610702555.XA CN106293607B (zh) 2016-08-22 2016-08-22 自动切换音频输出模式的方法及系统

Publications (1)

Publication Number Publication Date
WO2018035928A1 true WO2018035928A1 (zh) 2018-03-01

Family

ID=57662176

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/100681 WO2018035928A1 (zh) 2016-08-22 2016-09-28 自动切换音频输出模式的方法及系统

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107682588B (zh) * 2017-09-26 2023-11-17 珠海迈科智能科技股份有限公司 模拟音视频信号输入输出的切换系统、方法及信号测量仪
CN109218922B (zh) * 2018-08-27 2021-03-23 维沃移动通信有限公司 输出音频信号的控制方法、终端及音频信号输出装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051794A (zh) * 2012-12-18 2013-04-17 广东欧珀移动通信有限公司 动态设置移动终端音效的方法和装置
CN103618835A (zh) * 2013-12-13 2014-03-05 惠州Tcl移动通信有限公司 一种根据周围噪音大小自动切换情景模式的方法及系统
US8798992B2 (en) * 2010-05-19 2014-08-05 Disney Enterprises, Inc. Audio noise modification for event broadcasting
CN104780259A (zh) * 2014-01-14 2015-07-15 深圳富泰宏精密工业有限公司 通话语音质量自动调节系统与方法
CN105262887A (zh) * 2015-09-07 2016-01-20 惠州Tcl移动通信有限公司 移动终端及其音频设置方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100628068B1 (ko) * 2005-01-28 2006-09-27 엘지전자 주식회사 이동 통신 단말기의 배터리 상태에 따른 경고 장치 및 방법
CN101808208B (zh) * 2009-02-17 2013-06-26 深圳Tcl新技术有限公司 电视机音效模式设置的方法及电视机

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8798992B2 (en) * 2010-05-19 2014-08-05 Disney Enterprises, Inc. Audio noise modification for event broadcasting
CN103051794A (zh) * 2012-12-18 2013-04-17 广东欧珀移动通信有限公司 动态设置移动终端音效的方法和装置
CN103618835A (zh) * 2013-12-13 2014-03-05 惠州Tcl移动通信有限公司 一种根据周围噪音大小自动切换情景模式的方法及系统
CN104780259A (zh) * 2014-01-14 2015-07-15 深圳富泰宏精密工业有限公司 通话语音质量自动调节系统与方法
CN105262887A (zh) * 2015-09-07 2016-01-20 惠州Tcl移动通信有限公司 移动终端及其音频设置方法

Also Published As

Publication number Publication date
CN106293607B (zh) 2019-12-10
CN106293607A (zh) 2017-01-04

Similar Documents

Publication Publication Date Title
WO2017071453A1 (zh) 一种语音识别的方法及装置
WO2014044064A1 (zh) 一种自动控制手机双麦克风消噪的方法及手机
WO2011155761A2 (en) Method and system decoding audio data with selective power control
WO2013042968A2 (ko) 스마트 기기를 이용한 음향기기의 특성에 대한 보상 서비스 제공 방법
WO2014021670A1 (en) Mobile apparatus and control method thereof
WO2017026568A1 (ko) 음질 개선을 위한 방법 및 헤드셋
WO2020155088A1 (zh) 耳机降噪方法、智能蓝牙耳机及计算机可读存储介质
WO2015074363A1 (zh) 立体声耳机、终端及两者的音频信号处理方法
WO2019009562A1 (en) SOUND OUTPUT APPARATUS AND ASSOCIATED SIGNAL PROCESSING METHOD
WO2015131451A1 (zh) 移动终端及其铃声的播放方法
WO2016190700A1 (ko) 통화 음질 개선을 위한 시스템 및 방법
WO2018035928A1 (zh) 自动切换音频输出模式的方法及系统
WO2019098499A1 (ko) 전자 장치, 외부 전자 장치 및 이를 포함하는 음향 시스템
WO2019031767A1 (en) DISPLAY APPARATUS AND CONTROL METHOD THEREOF
WO2017128592A1 (zh) 一种基于智能电视提高应用程序适配性的方法和装置
WO2017010609A1 (ko) 헤드셋의 하울링 및 에코 제거 방법 및 컴퓨터 프로그램
WO2023085858A1 (ko) 히어 모드 및 뮤직 모드를 제공하는 보청 이어폰의 모드 제공 방법 및 그 시스템
WO2018218805A1 (zh) 终端响铃提示方法及系统
CN113360117B (zh) 电子设备的控制方法、装置、终端和存储介质
TWI781579B (zh) 音訊信號的處理方法、裝置及電子設備
WO2018076444A1 (zh) 一种终端声音的关闭方法及装置
CN112948003B (zh) 双安卓终端进行操作系统切换的方法和设备
WO2021015315A1 (ko) 보청 기능을 구비한 모바일 단말 및 이를 이용한 이어폰 기반의 보청기 시스템
WO2018105961A2 (ko) 안드로이드 운영체제 기반 휴대용 전자장치의 고음질 오디오 재생 장치 및 그 방법
WO2018040172A1 (zh) 一种来电信息处理方法、装置及移动终端

Legal Events

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

Ref document number: 16913948

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16913948

Country of ref document: EP

Kind code of ref document: A1