[go: up one dir, main page]

CN106201420A - Audio-frequency processing method and device - Google Patents

Audio-frequency processing method and device Download PDF

Info

Publication number
CN106201420A
CN106201420A CN201610488193.9A CN201610488193A CN106201420A CN 106201420 A CN106201420 A CN 106201420A CN 201610488193 A CN201610488193 A CN 201610488193A CN 106201420 A CN106201420 A CN 106201420A
Authority
CN
China
Prior art keywords
sound effect
external audio
terminal
audio
pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610488193.9A
Other languages
Chinese (zh)
Inventor
岳鹏飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
LeTV Holding Beijing Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin Co Ltd
LeTV Holding Beijing 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd, LeTV Holding Beijing Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201610488193.9A priority Critical patent/CN106201420A/en
Publication of CN106201420A publication Critical patent/CN106201420A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (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)
  • Circuit For Audible Band Transducer (AREA)

Abstract

本发明实施例提供了一种音频处理方法及装置。在本发明实施例中,当需要播放音频文件时,检测终端是否连接有外接音频输出设备;当终端连接有外接音频输出设备时,则确定用户是想体验在该外接音频输出设备的输出音效模式下的听觉效果,此时终端可以获取该外接音频输出设备的输出音效模式;无论该音频文件的播放音效模式与该外接音频输出设备的输出音效模式是否相同,终端都在该输出音效模式下播放该音频文件,这样在播放该音频文件时就可以输出该外接音频输出设备的输出音效模式的音效效果,如此使得用户能够体验到在该外接音频输出设备的输出音效模式下的听觉效果,从而提高用户体验。

Embodiments of the present invention provide an audio processing method and device. In the embodiment of the present invention, when an audio file needs to be played, it is detected whether the terminal is connected to an external audio output device; when the terminal is connected to an external audio output device, it is determined that the user wants to experience the output sound effect mode of the external audio output device At this time, the terminal can obtain the output sound effect mode of the external audio output device; no matter whether the playback sound effect mode of the audio file is the same as the output sound effect mode of the external audio output device, the terminal will play in this output sound effect mode This audio file, just can output the sound effect of the output sound effect mode of this external audio output device when playing this audio file like this, makes the user can experience the auditory effect under the output sound effect mode of this external audio output device like this, thereby improves user experience.

Description

音频处理方法及装置Audio processing method and device

技术领域technical field

本发明实施例涉及计算机技术领域,尤其涉及一种音频处理方法及装置。Embodiments of the present invention relate to the field of computer technology, and in particular, to an audio processing method and device.

背景技术Background technique

当前,越来越多的用户利用终端来听音乐,有一些用户在听音乐时只喜欢体验在某一音效模式下的听觉效果。例如,喜欢体验在“摇滚”模式下的听觉效果,或者喜欢体验在“爵士”模式下的听觉效果。如果用户在听音乐时只喜欢体验在某一音效模式下的听觉效果,则用户可以在终端上接入输出音效模式为用户喜欢的该音效模式的外接音频输出设备。Currently, more and more users use terminals to listen to music, and some users only like to experience the auditory effect in a certain sound effect mode when listening to music. For example, like to experience the sound effect in the "rock" mode, or enjoy the sound effect in the "jazz" mode. If the user only likes to experience the auditory effect in a certain sound effect mode when listening to music, the user can connect an external audio output device whose output sound effect mode is the sound effect mode that the user likes on the terminal.

然而,唱片公司录制每一首音乐的时候音乐的播放音效模式就已经固定了。例如,某一音乐的播放音效模式为“流行”模式,另一音乐的播放音效模式为“摇滚”模式。其次,并不是每一首音乐的播放音效模式都与外接音频输出设备的输出音效模式相同。终端通过外接音频输出设备播放音乐时,如果该音乐的播放音效模式与外接音频输出设备的输出音效模式相同,用户在听该音乐时才能够体验到在外接音频输出设备的输出音效模式下的听觉效果;如果该音乐的输出音效模式与外接音频输出设备的输出音效模式不同,用户在听该音乐时就无法体验到在外接音频输出设备的输出音效模式下的听觉效果。例如,当该音乐的播放音效模式为“乡村”模式以及外接音频输出设备的输出音效模式为“摇滚”模式时,终端在播放该音乐时,用户就无法体验到在“摇滚”下的听觉效果。However, when the record company records each piece of music, the playback sound mode of the music has been fixed. For example, the playing sound effect mode of a certain music is "pop" mode, and the playing sound effect mode of another music is "rock" mode. Secondly, not every music playback sound effect mode is the same as the output sound effect mode of the external audio output device. When the terminal plays music through an external audio output device, if the playback sound effect mode of the music is the same as the output sound effect mode of the external audio output device, the user can only experience the hearing in the output sound effect mode of the external audio output device when listening to the music effect; if the output sound effect mode of the music is different from the output sound effect mode of the external audio output device, the user cannot experience the auditory effect in the output sound effect mode of the external audio output device when listening to the music. For example, when the playback sound effect mode of the music is "Country" mode and the output sound effect mode of the external audio output device is "Rock" mode, when the terminal plays the music, the user cannot experience the auditory effect under "Rock" .

发明内容Contents of the invention

为克服相关技术中存在的问题,本发明实施例提供一种音频处理方法及装置。In order to overcome the problems existing in related technologies, embodiments of the present invention provide an audio processing method and device.

根据本发明实施例的第一方面,提供一种音频处理方法,应用于终端,所述方法包括:According to the first aspect of the embodiments of the present invention, there is provided an audio processing method applied to a terminal, the method comprising:

当需要播放音频文件时,检测所述终端是否连接有外接音频输出设备;When an audio file needs to be played, detect whether the terminal is connected to an external audio output device;

当所述终端连接有外接音频输出设备时,获取所述外接音频输出设备的输出音效模式;When the terminal is connected with an external audio output device, acquire the output sound effect mode of the external audio output device;

在所述输出音效模式下播放所述音频文件。Play the audio file in the output sound effect mode.

其中,所述检测所述终端是否连接有外接音频输出设备,包括:Wherein, the detecting whether the terminal is connected with an external audio output device includes:

判断所述终端上的用于连接外接音频输出设备的插孔中的左声道弹片与右声道弹片之间是否接通电流;Judging whether a current is connected between the left channel shrapnel and the right sound channel shrapnel in the jack for connecting to an external audio output device on the terminal;

当所述左声道弹片与所述右声道弹片之间接通电流时,确定所述终端连接有外接音频输出设备。When the electric current is connected between the left channel shrapnel and the right sound channel shrapnel, it is determined that an external audio output device is connected to the terminal.

其中,所述获取所述外接音频输出设备的输出音效模式,包括:Wherein, said obtaining the output sound effect mode of said external audio output device includes:

获取与所述终端连接的外接音频输出设备的设备标识;Obtain the device identification of the external audio output device connected to the terminal;

根据预先设置的设备标识与输出音效模式之间的第一对应关系,确定与所述设备标识相对应的输出音效模式,并作为所述外接音频输出设备的输出音效模式。According to the preset first corresponding relationship between the device identifier and the output sound effect mode, determine the output sound effect mode corresponding to the device identifier, and use it as the output sound effect mode of the external audio output device.

其中,所述获取与所述终端连接的外接音频输出设备的设备标识,包括:Wherein, the obtaining the device identification of the external audio output device connected to the terminal includes:

获取所述左声道弹片与所述右声道弹片之间的压降;Acquiring the pressure drop between the left channel shrapnel and the right sound channel shrapnel;

根据预先设置的压降与设备标识之间的第二对应关系,确定与所述压降相对应的设备标识,并作为与所述终端连接的外接音频输出设备的设备标识。According to the second preset correspondence between the voltage drop and the device identifier, determine the device identifier corresponding to the voltage drop, and use it as the device identifier of the external audio output device connected to the terminal.

其中,所述在所述输出音效模式下播放所述音频文件,包括:Wherein, the playing the audio file in the output sound effect mode includes:

判断所述音频文件的播放音效模式与所述输出音效模式是否相同;Judging whether the playback sound effect mode of the audio file is the same as the output sound effect mode;

当所述音频文件的播放音效模式与所述输出音效模式不同时,根据预先设置的音效模式与音效参数之间的第三对应关系,确定与所述输出音效模式相对应的音效参数;音效参数至少包括高音的响度、中音的响度和低音的响度;When the playback sound effect mode of the audio file is different from the output sound effect mode, according to the third correspondence between the preset sound effect mode and the sound effect parameters, determine the sound effect parameters corresponding to the output sound effect mode; sound effect parameters Including at least the loudness of the treble, the loudness of the middle and the loudness of the bass;

利用所述确定出的音效参数修改所述音频文件的音效参数,以使修改了音效参数的所述音频文件的播放音效模式与所述输出音效模式相同;Using the determined sound effect parameters to modify the sound effect parameters of the audio file, so that the playback sound effect mode of the audio file with the sound effect parameters modified is the same as the output sound effect mode;

播放修改了音效参数的所述音频文件。Play the audio file with modified sound effect parameters.

根据本发明实施例的第二方面,提供一种音频处理装置,应用于终端,所述装置包括:According to the second aspect of the embodiments of the present invention, there is provided an audio processing device applied to a terminal, the device comprising:

检测模块,用于当需要播放音频文件时,检测所述终端是否连接有外接音频输出设备;A detection module, configured to detect whether the terminal is connected to an external audio output device when an audio file needs to be played;

获取模块,用于当所述终端连接有外接音频输出设备时,获取所述外接音频输出设备的输出音效模式;An acquisition module, configured to acquire the output sound effect mode of the external audio output device when the terminal is connected to an external audio output device;

播放模块,用于在所述输出音效模式下播放所述音频文件。The playing module is used to play the audio file in the output sound effect mode.

其中,所述检测模块包括:Wherein, the detection module includes:

第一判断单元,用于判断所述终端上的用于连接外接音频输出设备的插孔中的左声道弹片与右声道弹片之间是否接通电流;A first judging unit, configured to judge whether a current is connected between the left channel shrapnel and the right sound channel shrapnel in the jack for connecting to an external audio output device on the terminal;

第一确定单元,用于当所述左声道弹片与所述右声道弹片之间接通电流时,确定所述终端连接有外接音频输出设备。The first determining unit is configured to determine that an external audio output device is connected to the terminal when a current is connected between the left sound channel elastic piece and the right sound channel elastic piece.

其中,所述获取模块包括:Wherein, the acquisition module includes:

获取单元,用于获取与所述终端连接的外接音频输出设备的设备标识;an acquisition unit, configured to acquire a device identifier of an external audio output device connected to the terminal;

第二确定单元,用于根据预先设置的设备标识与输出音效模式之间的第一对应关系,确定与所述设备标识相对应的输出音效模式,并作为所述外接音频输出设备的输出音效模式。The second determination unit is configured to determine the output sound effect mode corresponding to the device identification according to the first correspondence between the preset device identification and the output sound effect mode, and use it as the output sound effect mode of the external audio output device .

其中,所述获取单元包括:Wherein, the acquisition unit includes:

获取子单元,用于获取所述左声道弹片与所述右声道弹片之间的压降;An acquisition subunit, configured to acquire the pressure drop between the left channel shrapnel and the right sound channel shrapnel;

确定子单元,用于根据预先设置的压降与设备标识之间的第二对应关系,确定与所述压降相对应的设备标识,并作为与所述终端连接的外接音频输出设备的设备标识。A determining subunit, configured to determine a device identifier corresponding to the voltage drop according to a preset second correspondence between the voltage drop and the device identifier, and use it as the device identifier of the external audio output device connected to the terminal .

其中,所述播放模块包括:Wherein, the playing module includes:

第二判断单元,用于判断所述音频文件的播放音效模式与所述输出音效模式是否相同;The second judging unit is used to judge whether the playback sound effect mode of the audio file is the same as the output sound effect mode;

第三确定单元,用于当所述音频文件的播放音效模式与所述输出音效模式不同时,根据预先设置的音效模式与音效参数之间的第三对应关系,确定与所述输出音效模式相对应的音效参数;音效参数至少包括高音的响度、中音的响度和低音的响度;The third determination unit is used to determine the output sound effect mode corresponding to the output sound effect mode according to the preset third corresponding relationship between the sound effect mode and the sound effect parameter when the playback sound effect mode of the audio file is different from the output sound effect mode. Corresponding sound effect parameters; the sound effect parameters include at least the loudness of the treble, the loudness of the midrange and the loudness of the bass;

修改单元,用于利用所述确定出的音效参数修改所述音频文件的音效参数,以使修改了音效参数的所述音频文件的播放音效模式与所述输出音效模式相同;A modifying unit, configured to use the determined sound effect parameters to modify the sound effect parameters of the audio file, so that the playback sound effect mode of the audio file whose sound effect parameters have been modified is the same as the output sound effect mode;

播放单元,用于播放修改了音效参数的所述音频文件。The playback unit is used to play the audio file with modified sound effect parameters.

根据本发明实施例的第三方面,提供一种终端,其特征在于,所述终端包括:According to a third aspect of the embodiments of the present invention, a terminal is provided, wherein the terminal includes:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

当需要播放音频文件时,检测所述终端是否连接有外接音频输出设备;When an audio file needs to be played, detect whether the terminal is connected to an external audio output device;

当所述终端连接有外接音频输出设备时,获取所述外接音频输出设备的输出音效模式;When the terminal is connected with an external audio output device, acquire the output sound effect mode of the external audio output device;

在所述输出音效模式下播放所述音频文件。Play the audio file in the output sound effect mode.

本发明的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:

在本发明实施例中,当需要播放音频文件时,检测终端是否连接有外接音频输出设备;当终端连接有外接音频输出设备时,则确定用户是想体验在该外接音频输出设备的输出音效模式下的听觉效果,此时终端可以获取该外接音频输出设备的输出音效模式;无论该音频文件的播放音效模式与该外接音频输出设备的输出音效模式是否相同,终端都在该输出音效模式下播放该音频文件,这样在播放该音频文件时就可以输出该外接音频输出设备的输出音效模式的音效效果,如此使得用户能够体验到在该外接音频输出设备的输出音效模式下的听觉效果,从而提高用户体验。In the embodiment of the present invention, when an audio file needs to be played, it is detected whether the terminal is connected to an external audio output device; when the terminal is connected to an external audio output device, it is determined that the user wants to experience the output sound effect mode of the external audio output device At this time, the terminal can obtain the output sound effect mode of the external audio output device; no matter whether the playback sound effect mode of the audio file is the same as the output sound effect mode of the external audio output device, the terminal will play in this output sound effect mode This audio file, just can output the sound effect of the output sound effect mode of this external audio output device when playing this audio file like this, makes the user can experience the auditory effect under the output sound effect mode of this external audio output device like this, thereby improves user experience.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明实施例。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and are not intended to limit the embodiments of the present invention.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明实施例的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the embodiments of the invention.

图1是根据一示例性实施例示出的一种音频处理方法的流程图;Fig. 1 is a flowchart of an audio processing method shown according to an exemplary embodiment;

图2是根据一示例性实施例示出的一种音频处理方法的流程图;Fig. 2 is a flowchart of an audio processing method shown according to an exemplary embodiment;

图3是根据一示例性实施例示出的一种音频处理方法的流程图;Fig. 3 is a flowchart of an audio processing method according to an exemplary embodiment;

图4是根据一示例性实施例示出的一种音频处理方法的流程图;Fig. 4 is a flowchart of an audio processing method according to an exemplary embodiment;

图5是根据一示例性实施例示出的一种音频处理装置的框图;Fig. 5 is a block diagram of an audio processing device according to an exemplary embodiment;

图6是根据一示例性实施例示出的一种终端的框图。Fig. 6 is a block diagram of a terminal according to an exemplary embodiment.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明实施例的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the embodiments of the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the embodiments of the invention as recited in the appended claims.

图1是根据一示例性实施例示出的一种音频处理方法的流程图,如图1所示,该方法用于终端中,该方法包括以下步骤。Fig. 1 is a flowchart showing an audio processing method according to an exemplary embodiment. As shown in Fig. 1, the method is used in a terminal, and the method includes the following steps.

在步骤S101中,当需要播放音频文件时,检测终端是否连接有外接音频输出设备;In step S101, when the audio file needs to be played, it is detected whether the terminal is connected with an external audio output device;

在本发明实施例中,当用户需要在终端上播放音频文件时,用户可以在终端上点击用于播放该音频文件的播放按钮;当终端接收到用户点击用于播放该音频文件的播放按钮的点击操作时,确定需要播放该音频文件。In the embodiment of the present invention, when the user needs to play an audio file on the terminal, the user can click the play button for playing the audio file on the terminal; When the operation is clicked, it is determined that the audio file needs to be played.

例如,当用户需要听音乐时,用户可以控制终端播放音乐,例如,用户在终端上点击用于播放该音乐的播放按钮,当终端接收到点击用于播放该音乐的播放按钮的点击操作时,确定需要播放该音乐。For example, when the user needs to listen to music, the user can control the terminal to play music. For example, the user clicks the play button for playing the music on the terminal. When the terminal receives the click operation of clicking the play button for playing the music, Determine the need to play the music.

有时候,如果用户在听音乐时只喜欢体验在某一音效模式下的听觉效果,则用户事先在终端上会接入输出音效模式为用户喜欢的该音效模式的外接音频输出设备。这样,终端通过外接音频输出设备播放音频文件时,用户就能够体验到在该外接音频输出设备的输出音效模式下的听觉效果。因此,当确定出需要播放音频文件时,需要检测终端是否连接有外接音频输出设备,当终端连接有外接音频输出设备时,终端就需要通过外接音频输出设备播放音频文件;当终端未连接有外接音频输出设备时,终端就通过终端内置的音频输出设备播放音频文件。Sometimes, if the user only likes to experience the auditory effect in a certain sound effect mode when listening to music, the user will connect an external audio output device whose output sound effect mode is the sound effect mode that the user likes on the terminal in advance. In this way, when the terminal plays the audio file through the external audio output device, the user can experience the auditory effect in the output sound effect mode of the external audio output device. Therefore, when it is determined that an audio file needs to be played, it is necessary to detect whether the terminal is connected to an external audio output device. When the terminal is connected to an external audio output device, the terminal needs to play the audio file through the external audio output device; When the audio output device is selected, the terminal will play the audio file through the built-in audio output device of the terminal.

其中,检测终端是否连接有外接音频输出设备的具体流程可以参见如下图2所示的实施例,在此不做详述。Wherein, the specific process of detecting whether the terminal is connected with an external audio output device can refer to the embodiment shown in FIG. 2 below, and will not be described in detail here.

当终端连接有外接音频输出设备时,在步骤S102中,获取该外接音频输出设备的输出音效模式;When the terminal is connected to an external audio output device, in step S102, the output sound effect mode of the external audio output device is acquired;

在本发明实施例中,当前市面上存在各种各样的外接音频输出设备,例如,各种各样的耳机、各种各样的耳麦以及各种各样的音响等等。In the embodiment of the present invention, there are various external audio output devices currently on the market, for example, various earphones, various headsets, and various stereos.

每一种外接音频设备的输出音效模式都不同,例如,音响A的输出音效模式为“影院”模式,音响B的输出音效模式为“环绕声”模式,以及耳机C的输出音效模式为“重低音”模式。The output sound mode of each external audio device is different, for example, the output sound mode of speaker A is "Cinema" mode, the output sound mode of speaker B is "surround sound", and the output sound mode of headphone C is "reproduced". Bass" mode.

在步骤S103中,在该输出音效模式下播放该音频文件。In step S103, the audio file is played in the output sound effect mode.

在本发明实施例中,当需要播放音频文件时,检测终端是否连接有外接音频输出设备;当终端连接有外接音频输出设备时,则确定用户是想体验在该外接音频输出设备的输出音效模式下的听觉效果,此时终端可以获取该外接音频输出设备的输出音效模式;无论该音频文件的播放音效模式与该外接音频输出设备的输出音效模式是否相同,终端都在该输出音效模式下播放该音频文件,这样在播放该音频文件时就可以输出该外接音频输出设备的输出音效模式的音效效果,如此使得用户能够体验到在该外接音频输出设备的输出音效模式下的听觉效果,从而提高用户体验。In the embodiment of the present invention, when an audio file needs to be played, it is detected whether the terminal is connected to an external audio output device; when the terminal is connected to an external audio output device, it is determined that the user wants to experience the output sound effect mode of the external audio output device At this time, the terminal can obtain the output sound effect mode of the external audio output device; no matter whether the playback sound effect mode of the audio file is the same as the output sound effect mode of the external audio output device, the terminal will play in this output sound effect mode This audio file, just can output the sound effect of the output sound effect mode of this external audio output device when playing this audio file like this, makes the user can experience the auditory effect under the output sound effect mode of this external audio output device like this, thereby improves user experience.

其中,在本发明另一实施例中,参见图2,步骤S101包括:Wherein, in another embodiment of the present invention, referring to FIG. 2, step S101 includes:

在步骤S201中,判断终端上的用于连接外接音频输出设备的插孔中的左声道弹片与右声道弹片之间是否接通电流;In step S201, it is judged whether an electric current is connected between the left channel shrapnel and the right sound channel shrapnel in the jack for connecting an external audio output device on the terminal;

在本发明实施例中,外接音频输出设备上设置有用于连接终端的插头,相应地,终端上设置有用于连接外接音频输出设备的插孔,插孔中设置有两个弹片,分别为左声道弹片和右声道弹片,这两个弹片中的一个弹片与终端的电源的正极相连接,另一个弹片与终端的电源的负极相连接;因此,当这两个弹片之间连接后,会有电流依次流过这两个弹片。In the embodiment of the present invention, the external audio output device is provided with a plug for connecting to the terminal. Correspondingly, the terminal is provided with a jack for connecting the external audio output device. channel shrapnel and right channel shrapnel, one of these two shrapnels is connected to the positive pole of the terminal power supply, and the other shrapnel is connected to the negative pole of the terminal power supply; therefore, when the two shrapnels are connected, it will A current flows through the two shrapnels in turn.

另外,当外接音频输出设备的插头插入终端上的用于连接外接音频输出设备的插孔之后,外接音频输出设备的插头会分别接触终端的插孔中设置的左声道弹片和右声道弹片,这样,左声道弹片与右声道弹片就通过外接音频输出设备连接,左声道弹片与右声道弹片就通过外接音频输出设备的插头接通电流。即,电流就会从这两个弹片中的一个弹片流经外接音频输出设备的插头,再从外接音频输出设备的插头在流经这两个弹片中的另一个弹片。如此,左声道弹片与右声道弹片之间就会接通电流。In addition, when the plug of the external audio output device is inserted into the jack for connecting the external audio output device on the terminal, the plug of the external audio output device will respectively touch the left channel shrapnel and the right channel shrapnel set in the jack of the terminal In this way, the shrapnel of the left channel and the shrapnel of the right channel are connected through an external audio output device, and the shrapnel of the left channel and the shrapnel of the right channel are connected to the current through the plug of the external audio output device. That is, the current flows from one of the two shrapnels through the plug of the external audio output device, and then flows from the plug of the external audio output device through the other of the two shrapnels. In this way, a current will be connected between the shrapnel of the left sound channel and the shrapnel of the right sound channel.

因此,在本发明实施例中,可以判断左声道弹片与右声道弹片之间是否接通电流,当左声道弹片与右声道弹片之间接通电流时,执行步骤S202;当左声道弹片与右声道弹片之间未接通电流时,执行步骤S203。Therefore, in the embodiment of the present invention, it can be judged whether an electric current is connected between the shrapnel of the left sound channel and the shrapnel of the right sound channel. Step S203 is executed when no current is connected between the dome piece of the channel and the dome piece of the right sound channel.

当终端上的用于连接外接音频输出设备的插孔中的左声道弹片与右声道弹片之间接通电流时,在步骤S202中,确定终端连接有外接音频输出设备;When a current is connected between the left-channel shrapnel and the right-channel shrapnel in the jack on the terminal for connecting to an external audio output device, in step S202, it is determined that the terminal is connected to an external audio output device;

当终端上的用于连接外接音频输出设备的插孔中的左声道弹片与右声道弹片之间未接通电流时,在步骤S203中,确定终端未连接外接音频输出设备。When no current is connected between the left and right channel springs in the jack for connecting to an external audio output device on the terminal, in step S203, it is determined that the terminal is not connected to an external audio output device.

其中,在本发明另一实施例中,参见图3,步骤S102包括:Wherein, in another embodiment of the present invention, referring to FIG. 3, step S102 includes:

在步骤S301中,获取与终端连接的外接音频输出设备的设备标识;In step S301, obtain the device identification of the external audio output device connected to the terminal;

在本发明实施例中,终端的插孔中的左声道弹片与右声道单片之间每一次连接之后,这两个弹片之间接通的电流的电流值都相同,然而,不同的外接音频输出设备的阻抗不一样;因此,当不同的外接音频输出设备的插头插入终端的插孔之后,插孔中的两个弹片之间的压降不同。In the embodiment of the present invention, after each connection between the left channel shrapnel and the right sound channel single piece in the jack of the terminal, the current value of the current connected between the two shrapnels is the same, however, different external The impedance of audio output devices is different; therefore, when the plugs of different external audio output devices are inserted into the jacks of the terminal, the voltage drop between the two shrapnels in the jacks is different.

对于任意一个音频输出设备,技术人员事先可以将该音频输出设备的插头插入终端的插孔中,然后控制终端检测插孔中的左声道弹片与右声道弹片之间的压降,再将该音频输出设备的设备标识与该压降组成一条记录存储在预先设置的设备标识与压降之间的对应关系中;对于其它每一个音频输出设备,同样执行上述操作。For any audio output device, technicians can insert the plug of the audio output device into the jack of the terminal in advance, and then control the terminal to detect the pressure drop between the left channel shrapnel and the right channel shrapnel in the jack, and then insert the The device identifier of the audio output device and the voltage drop form a record and stored in the preset correspondence between the device identifier and the voltage drop; for each of the other audio output devices, the above operation is also performed.

因此,在本步骤中,终端可以获取左声道弹片与右声道弹片之间的压降,例如通过终端内置的电压传感器检测左声道弹片与右声道弹片之间的压降,然后根据预先设置的压降与设备标识之间的第二对应关系,确定与该压降相对应的设备标识,并作为与终端连接的外接音频输出设备的设备标识。Therefore, in this step, the terminal can obtain the pressure drop between the left-channel shrapnel and the right-channel shrapnel, for example, the built-in voltage sensor of the terminal detects the pressure drop between the left The second corresponding relationship between the preset voltage drop and the device identifier determines the device identifier corresponding to the voltage drop and uses it as the device identifier of the external audio output device connected to the terminal.

其中,在本发明实施例中,第二对应关系可以存储在云端中,也可以终端本地。Wherein, in the embodiment of the present invention, the second corresponding relationship may be stored in the cloud, or locally in the terminal.

在本发明另一实施例中,外接音频输出设备的设备标识还可以为外接音频输出设备的型号或者名称,其中,在外接音频输出设备出厂时,技术人员可以将外接音频输出设备的设备标识存储在外接音频输出设备中。这样,在本步骤中,由于终端已经通过终端插孔、外接音频输出设备的插头与外接音频输出设备相连接,因此,终端可以直接从外接音频输出设备中获取外接音频输出设备的型号或名称并作为外接音频输出设备的设备标识。In another embodiment of the present invention, the device identification of the external audio output device can also be the model or name of the external audio output device, wherein, when the external audio output device leaves the factory, the technician can store the device identification of the external audio output device In the external audio output device. In this way, in this step, since the terminal has been connected to the external audio output device through the terminal jack and the plug of the external audio output device, the terminal can directly obtain the model or name of the external audio output device from the external audio output device and Device ID as an external audio output device.

在步骤S302中,根据预先设置的设备标识与输出音效模式之间的第一对应关系,确定与该设备标识相对应的输出音效模式,并作为该外接音频输出设备的输出音效模式。In step S302, according to the first corresponding relationship between the preset device identifier and the output sound effect mode, determine the output sound effect mode corresponding to the device identifier, and use it as the output sound effect mode of the external audio output device.

在本发明实施例中,当前市面上存在各种各样的外接音频输出设备,例如,各种各样的耳机、各种各样的耳麦以及各种各样的音响等等。In the embodiment of the present invention, there are various external audio output devices currently on the market, for example, various earphones, various headsets, and various stereos.

对于任意一个外接音频输出设备,技术人员事先可以将该外接音频输出设备的设备标识与该外接音频输出设备的输出音效模式组成一条记录存储在预先设置的设备标识与输出音效模式之间的第一对应关系中,对于其他每一个外接音频输出设备,同样如此。For any external audio output device, technicians can form a record in advance between the device identification of the external audio output device and the output sound effect mode of the external audio output device and store it in the first record between the preset device identification and output sound effect mode. In the corresponding relationship, the same is true for every other external audio output device.

因此,在本步骤中,终端可以获取预先设置的设备标识与输出音效模式之间的第一对应关系,然后在第一对应关系中查找与该设备标识相对应的输出音效模式,并将查找到的该输出音效模式确定为外接音频输出设备的输出音效模式。Therefore, in this step, the terminal can obtain the first corresponding relationship between the preset device identifier and the output sound effect mode, and then search for the output sound effect mode corresponding to the device identifier in the first corresponding relationship, and find The output sound effect mode of is determined as the output sound effect mode of the external audio output device.

其中,在本发明实施例中,第一对应关系可以存储在云端中,也可以终端本地。Wherein, in the embodiment of the present invention, the first correspondence may be stored in the cloud, or may be stored locally on the terminal.

其中,在本发明另一实施例中,参见图4,步骤S103包括:Wherein, in another embodiment of the present invention, referring to FIG. 4, step S103 includes:

在步骤S401中,判断音频文件的播放音效模式与外接音频输出设备的输出音效模式是否相同;In step S401, it is determined whether the playback sound effect mode of the audio file is the same as the output sound effect mode of the external audio output device;

当该音频文件的播放音效模式与该外接音频输出设备的输出音效模式不同时,在步骤S402中,根据预先设置的音效模式与音效参数之间的第三对应关系,确定与该输出音效模式相对应的音效参数。When the playback sound effect mode of the audio file is different from the output sound effect mode of the external audio output device, in step S402, according to the third corresponding relationship between the preset sound effect mode and the sound effect parameters, determine the output sound effect mode corresponding to the output sound effect mode. The corresponding sound effect parameters.

在本发明实施例中,音效参数至少包括高音的响度、中音的响度和低音的响度。In the embodiment of the present invention, the sound effect parameters at least include the loudness of treble, the loudness of middle tone and the loudness of bass.

在本发明实施例中,不同的音效模式的音效参数不同,例如,假设“重低音”模式的音效参数包括:低音为-10db、中音为0db以及低音为-12db;“爵士”模式的音效参数包括:低音为0db、中音为6db以及低音为3db。In the embodiment of the present invention, the sound effect parameters of different sound effect modes are different. For example, suppose the sound effect parameters of the "heavy bass" mode include: the bass is -10db, the midrange is 0db, and the bass is -12db; the sound effect of the "jazz" mode Parameters include: bass is 0db, midrange is 6db and bass is 3db.

对于任意一个音效模式,技术人员事先会将该音效模式与该音效模式的音效参数组成一条记录并存储在预先设置的音效模式与音效参数之间的第三对应关系中,对于其他每一个音效模式,均执行上述操作。For any sound effect mode, the technician will form a record of the sound effect mode and the sound effect parameters of the sound effect mode in advance and store it in the third corresponding relationship between the preset sound effect mode and the sound effect parameters. For each other sound effect mode , both perform the above operations.

其中,在本发明实施例中,第三对应关系可以存储在云端中,也可以终端本地。Wherein, in the embodiment of the present invention, the third corresponding relationship may be stored in the cloud, or locally in the terminal.

因此,在本步骤中,当该音频文件的播放音效模式与该外接音频输出设备的输出音效模式不同时,终端可以预先设置的音效模式与音效参数之间的第三对应关系,然后在第一对应关系中查找与该输出音效模式相对应的音效参数。Therefore, in this step, when the playback sound effect mode of the audio file is different from the output sound effect mode of the external audio output device, the terminal can preset the third corresponding relationship between the sound effect mode and the sound effect parameters, and then in the first Find the sound effect parameters corresponding to the output sound effect mode in the corresponding relationship.

其中,当该音频文件的播放音效模式与该外接音频输出设备的输出音效模式相同时,终端可以直接播放该音频文件,如此使得用户能够体验到在该外接音频输出设备的输出音效模式下的听觉效果,提高用户体验。Wherein, when the playback sound effect mode of the audio file is the same as the output sound effect mode of the external audio output device, the terminal can directly play the audio file, so that the user can experience the auditory sense under the output sound effect mode of the external audio output device. effect and improve user experience.

在步骤S403中,利用确定出的该音效参数修改音频文件的音效参数;In step S403, modify the sound effect parameters of the audio file by using the determined sound effect parameters;

以使修改了音效参数的音频文件的播放音效模式与该输出音效模式相同;Make the playback sound effect mode of the audio file with modified sound effect parameters the same as the output sound effect mode;

在本发明实施例中,对音乐文件中的音乐数据进行调制得到音乐数据的波形,在该波形中确定出高音对应的频率、低音对应的频率以及中音对应的频率。In the embodiment of the present invention, the music data in the music file is modulated to obtain the waveform of the music data, and the frequency corresponding to the treble, the frequency corresponding to the bass and the frequency corresponding to the middle tone are determined in the waveform.

然后将该波形中的高音对应的频率的波峰的峰值设置为该音效参数中的高音的响度;将该波形中的低音对应的频率的波峰的峰值设置为该音效参数中的低音的响度;将该波形中的中音对应的频率的波峰的峰值设置为该音效参数中的中音的响度。Then set the peak value of the peak of the frequency corresponding to the treble in the waveform as the loudness of the treble in the sound effect parameter; set the peak value of the peak of the frequency corresponding to the bass in the waveform as the loudness of the bass in the sound effect parameter; The peak value of the peak of the frequency corresponding to the midrange in the waveform is set as the loudness of the midtone in the sound effect parameter.

在步骤S404中,播放修改了音效参数的该音频文件。In step S404, the audio file with modified sound effect parameters is played.

如此使得用户能够体验到在该外接音频输出设备的输出音效模式下的听觉效果,提高用户体验。In this way, the user can experience the auditory effect in the output sound effect mode of the external audio output device, thereby improving the user experience.

图5是根据一示例性实施例示出的一种音频处理装置的框图。参照图5,该装置包括:Fig. 5 is a block diagram of an audio processing device according to an exemplary embodiment. Referring to Figure 5, the device includes:

检测模块11,用于当需要播放音频文件时,检测所述终端是否连接有外接音频输出设备;The detection module 11 is used to detect whether the terminal is connected with an external audio output device when an audio file needs to be played;

获取模块12,用于当所述终端连接有外接音频输出设备时,获取所述外接音频输出设备的输出音效模式;An acquisition module 12, configured to acquire the output sound effect mode of the external audio output device when the terminal is connected to an external audio output device;

播放模块13,用于在所述输出音效模式下播放所述音频文件。The playing module 13 is configured to play the audio file in the sound output mode.

其中,所述检测模块11包括:Wherein, the detection module 11 includes:

第一判断单元,用于判断所述终端上的用于连接外接音频输出设备的插孔中的左声道弹片与右声道弹片之间是否接通电流;A first judging unit, configured to judge whether a current is connected between the left channel shrapnel and the right sound channel shrapnel in the jack for connecting to an external audio output device on the terminal;

第一确定单元,用于当所述左声道弹片与所述右声道弹片之间接通电流时,确定所述终端连接有外接音频输出设备。The first determining unit is configured to determine that an external audio output device is connected to the terminal when a current is connected between the left sound channel elastic piece and the right sound channel elastic piece.

其中,所述获取模块12包括:Wherein, the acquisition module 12 includes:

获取单元,用于获取与所述终端连接的外接音频输出设备的设备标识;an acquisition unit, configured to acquire a device identifier of an external audio output device connected to the terminal;

第二确定单元,用于根据预先设置的设备标识与输出音效模式之间的第一对应关系,确定与所述设备标识相对应的输出音效模式,并作为所述外接音频输出设备的输出音效模式。The second determination unit is configured to determine the output sound effect mode corresponding to the device identification according to the first correspondence between the preset device identification and the output sound effect mode, and use it as the output sound effect mode of the external audio output device .

其中,所述获取单元包括:Wherein, the acquisition unit includes:

获取子单元,用于获取所述左声道弹片与所述右声道弹片之间的压降;An acquisition subunit, configured to acquire the pressure drop between the left channel shrapnel and the right sound channel shrapnel;

确定子单元,用于根据预先设置的压降与设备标识之间的第二对应关系,确定与所述压降相对应的设备标识,并作为与所述终端连接的外接音频输出设备的设备标识。A determining subunit, configured to determine a device identifier corresponding to the voltage drop according to a preset second correspondence between the voltage drop and the device identifier, and use it as the device identifier of the external audio output device connected to the terminal .

其中,所述播放模块13包括:Wherein, the playing module 13 includes:

第二判断单元,用于判断所述音频文件的播放音效模式与所述输出音效模式是否相同;The second judging unit is used to judge whether the playback sound effect mode of the audio file is the same as the output sound effect mode;

第三确定单元,用于当所述音频文件的播放音效模式与所述输出音效模式不同时,根据预先设置的音效模式与音效参数之间的第三对应关系,确定与所述输出音效模式相对应的音效参数;音效参数至少包括高音的响度、中音的响度和低音的响度;The third determination unit is used to determine the output sound effect mode corresponding to the output sound effect mode according to the preset third corresponding relationship between the sound effect mode and the sound effect parameter when the playback sound effect mode of the audio file is different from the output sound effect mode. Corresponding sound effect parameters; the sound effect parameters include at least the loudness of the treble, the loudness of the midrange and the loudness of the bass;

修改单元,用于利用所述确定出的音效参数修改所述音频文件的音效参数,以使修改了音效参数的所述音频文件的播放音效模式与所述输出音效模式相同;A modifying unit, configured to use the determined sound effect parameters to modify the sound effect parameters of the audio file, so that the playback sound effect mode of the audio file whose sound effect parameters have been modified is the same as the output sound effect mode;

播放单元,用于播放修改了音效参数的所述音频文件。A playback unit, configured to play the audio file with sound effect parameters modified.

在本发明实施例中,当需要播放音频文件时,检测终端是否连接有外接音频输出设备;当终端连接有外接音频输出设备时,则确定用户是想体验在该外接音频输出设备的输出音效模式下的听觉效果,此时终端可以获取该外接音频输出设备的输出音效模式;无论该音频文件的播放音效模式与该外接音频输出设备的输出音效模式是否相同,终端都在该输出音效模式下播放该音频文件,这样在播放该音频文件时就可以输出该外接音频输出设备的输出音效模式的音效效果,如此使得用户能够体验到在该外接音频输出设备的输出音效模式下的听觉效果,从而提高用户体验。In the embodiment of the present invention, when an audio file needs to be played, it is detected whether the terminal is connected to an external audio output device; when the terminal is connected to an external audio output device, it is determined that the user wants to experience the output sound effect mode of the external audio output device At this time, the terminal can obtain the output sound effect mode of the external audio output device; no matter whether the playback sound effect mode of the audio file is the same as the output sound effect mode of the external audio output device, the terminal will play in this output sound effect mode This audio file, just can output the sound effect of the output sound effect mode of this external audio output device when playing this audio file like this, makes the user can experience the auditory effect under the output sound effect mode of this external audio output device like this, thereby improves user experience.

图6是根据一示例性实施例示出的一种终端。参照图6,该终端包括:Fig. 6 shows a terminal according to an exemplary embodiment. Referring to Figure 6, the terminal includes:

处理器21;Processor 21;

用于存储处理器21可执行指令的存储器22;A memory 22 for storing instructions executable by the processor 21;

其中,所述处理器21被配置为:Wherein, the processor 21 is configured as:

当需要播放音频文件时,检测所述终端是否连接有外接音频输出设备;When an audio file needs to be played, detect whether the terminal is connected to an external audio output device;

当所述终端连接有外接音频输出设备时,获取所述外接音频输出设备的输出音效模式;When the terminal is connected with an external audio output device, acquire the output sound effect mode of the external audio output device;

在所述输出音效模式下播放所述音频文件。Play the audio file in the output sound effect mode.

在一种可选的实施方式中,所述处理器21被配置为:In an optional implementation manner, the processor 21 is configured to:

判断所述终端上的用于连接外接音频输出设备的插孔中的左声道弹片与右声道弹片之间是否接通电流;Judging whether a current is connected between the left channel shrapnel and the right sound channel shrapnel in the jack for connecting to an external audio output device on the terminal;

当所述左声道弹片与所述右声道弹片之间接通电流时,确定所述终端连接有外接音频输出设备。When the electric current is connected between the left channel shrapnel and the right sound channel shrapnel, it is determined that an external audio output device is connected to the terminal.

在一种可选的实施方式中,所述处理器21被配置为:In an optional implementation manner, the processor 21 is configured to:

获取与所述终端连接的外接音频输出设备的设备标识;Obtain the device identification of the external audio output device connected to the terminal;

根据预先设置的设备标识与输出音效模式之间的第一对应关系,确定与所述设备标识相对应的输出音效模式,并作为所述外接音频输出设备的输出音效模式。According to the preset first corresponding relationship between the device identifier and the output sound effect mode, determine the output sound effect mode corresponding to the device identifier, and use it as the output sound effect mode of the external audio output device.

在一种可选的实施方式中,所述处理器21被配置为:In an optional implementation manner, the processor 21 is configured to:

获取所述左声道弹片与所述右声道弹片之间的压降;Acquiring the pressure drop between the left channel shrapnel and the right sound channel shrapnel;

根据预先设置的压降与设备标识之间的第二对应关系,确定与所述压降相对应的设备标识,并作为与所述终端连接的外接音频输出设备的设备标识。According to the second preset correspondence between the voltage drop and the device identifier, determine the device identifier corresponding to the voltage drop, and use it as the device identifier of the external audio output device connected to the terminal.

在一种可选的实施方式中,所述处理器21被配置为:In an optional implementation manner, the processor 21 is configured to:

判断所述音频文件的播放音效模式与所述输出音效模式是否相同;Judging whether the playback sound effect mode of the audio file is the same as the output sound effect mode;

当所述音频文件的播放音效模式与所述输出音效模式不同时,根据预先设置的音效模式与音效参数之间的第三对应关系,确定与所述输出音效模式相对应的音效参数;音效参数至少包括高音的响度、中音的响度和低音的响度;When the playback sound effect mode of the audio file is different from the output sound effect mode, according to the third correspondence between the preset sound effect mode and the sound effect parameters, determine the sound effect parameters corresponding to the output sound effect mode; sound effect parameters Including at least the loudness of the treble, the loudness of the middle and the loudness of the bass;

利用所述确定出的音效参数修改所述音频文件的音效参数,以使修改了音效参数的所述音频文件的播放音效模式与所述输出音效模式相同;Using the determined sound effect parameters to modify the sound effect parameters of the audio file, so that the playback sound effect mode of the audio file with the sound effect parameters modified is the same as the output sound effect mode;

播放修改了音效参数的所述音频文件。Play the audio file with modified sound effect parameters.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明实施例的其它实施方案。本申请旨在涵盖本发明实施例的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明实施例的一般性原理并包括本发明实施例未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明实施例的真正范围和精神由所附的权利要求指出。Other implementations of the embodiments of the invention will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the embodiments of the present invention, these modifications, uses or adaptations follow the general principles of the embodiments of the present invention and include those in the technical field not disclosed by the embodiments of the present invention Common knowledge or common technical means. It is intended that the specification and examples be considered exemplary only, with a true scope and spirit of the embodiments of the invention being indicated by the appended claims.

应当理解的是,本发明实施例并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明实施例的范围仅由所附的权利要求来限制。It should be understood that the embodiments of the present invention are not limited to the precise structures described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of embodiments of the present invention is limited only by the appended claims.

Claims (11)

1. an audio-frequency processing method, is applied to terminal, it is characterised in that described method includes:
When audio file play by needs, detect described terminal and whether connect and have external audio frequency outut device;
When described terminal connects and has external audio frequency outut device, obtain the output audio mould of described external audio frequency outut device Formula;
Described audio file is play under described output audio pattern.
Method the most according to claim 1, it is characterised in that whether the described terminal of described detection connects has external audio frequency defeated Go out equipment, including:
Judge the L channel shell fragment in the jack connecting external audio frequency outut device in described terminal and R channel shell fragment Between whether turn-on current;
Between described L channel shell fragment and described R channel shell fragment during turn-on current, determine that the connection of described terminal has external audio frequency Outut device.
Method the most according to claim 2, it is characterised in that the output sound of described acquisition described external audio frequency outut device Effect pattern, including:
Obtain the device identification of the external audio frequency outut device being connected with described terminal;
According to the first corresponding relation between the device identification pre-set and output audio pattern, determine and described device identification Corresponding output audio pattern, and as the output audio pattern of described external audio frequency outut device.
Method the most according to claim 3, it is characterised in that the external audio frequency output that described acquisition is connected with described terminal The device identification of equipment, including:
Obtain the pressure drop between described L channel shell fragment and described R channel shell fragment;
According to the second corresponding relation between the pressure drop pre-set and device identification, determine the equipment corresponding with described pressure drop Mark, and as the device identification of the external audio frequency outut device being connected with described terminal.
Method the most according to claim 1, it is characterised in that described play described audio frequency under described output audio pattern File, including:
Judge that the play sound effect pattern of described audio file is the most identical with described output audio pattern;
When the play sound effect pattern of described audio file is different from described output audio pattern, according to the audio mould pre-set The 3rd corresponding relation between formula and sound effect parameters, determines the sound effect parameters corresponding with described output audio pattern;Audio is joined Number at least includes the loudness of high pitch, the loudness of middle pitch and the loudness of bass;
The sound effect parameters determined described in utilization revises the sound effect parameters of described audio file, so that have modified the institute of sound effect parameters The play sound effect pattern stating audio file is identical with described output audio pattern;
Play the described audio file that have modified sound effect parameters.
6. an apparatus for processing audio, is applied to terminal, it is characterised in that described device includes:
Whether detection module, for when audio file play by needs, detecting described terminal and connect and have external audio frequency outut device;
Acquisition module, for when described terminal connects and has external audio frequency outut device, obtaining described external audio frequency outut device Output audio pattern;
Playing module, for playing described audio file under described output audio pattern.
Device the most according to claim 6, it is characterised in that described detection module includes:
First judging unit, for judging the L channel in the jack connecting external audio frequency outut device in described terminal Whether turn-on current between shell fragment and R channel shell fragment;
First determines unit, for during turn-on current, determining described between described L channel shell fragment and described R channel shell fragment Terminal connects external audio frequency outut device.
Device the most according to claim 7, it is characterised in that described acquisition module includes:
Acquiring unit, for obtaining the device identification of the external audio frequency outut device being connected with described terminal;
Second determines unit, the first corresponding relation between the device identification and the output audio pattern that pre-set for basis, Determine the output audio pattern corresponding with described device identification, and as the output audio mould of described external audio frequency outut device Formula.
Device the most according to claim 8, it is characterised in that described acquiring unit includes:
Obtain subelement, for obtaining the pressure drop between described L channel shell fragment and described R channel shell fragment;
Determine subelement, for according to the second corresponding relation between pressure drop and the device identification pre-set, determining with described The device identification that pressure drop is corresponding, and as the device identification of the external audio frequency outut device being connected with described terminal.
Device the most according to claim 6, it is characterised in that described playing module includes:
Second judging unit, for judging the play sound effect pattern of described audio file and described output audio pattern whether phase With;
3rd determines unit, is used for when the play sound effect pattern of described audio file is different from described output audio pattern, root According to the 3rd corresponding relation between audio pattern and the sound effect parameters pre-set, determine corresponding with described output audio pattern Sound effect parameters;Sound effect parameters at least includes the loudness of high pitch, the loudness of middle pitch and the loudness of bass;
Amendment unit, the sound effect parameters being used for determining described in utilizing revises the sound effect parameters of described audio file, so that amendment The play sound effect pattern of the described audio file of sound effect parameters is with described output audio pattern identical;
Broadcast unit, for playing the described audio file that have modified sound effect parameters.
11. 1 kinds of terminals, it is characterised in that described terminal includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When audio file play by needs, detect described terminal and whether connect and have external audio frequency outut device;
When described terminal connects and has external audio frequency outut device, obtain the output audio mould of described external audio frequency outut device Formula;
Described audio file is play under described output audio pattern.
CN201610488193.9A 2016-06-28 2016-06-28 Audio-frequency processing method and device Pending CN106201420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610488193.9A CN106201420A (en) 2016-06-28 2016-06-28 Audio-frequency processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610488193.9A CN106201420A (en) 2016-06-28 2016-06-28 Audio-frequency processing method and device

Publications (1)

Publication Number Publication Date
CN106201420A true CN106201420A (en) 2016-12-07

Family

ID=57462241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610488193.9A Pending CN106201420A (en) 2016-06-28 2016-06-28 Audio-frequency processing method and device

Country Status (1)

Country Link
CN (1) CN106201420A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112767971A (en) * 2019-10-21 2021-05-07 华为技术有限公司 Audio playing method, model obtaining method, device, terminal and server
CN112822665A (en) * 2019-11-18 2021-05-18 阿里巴巴集团控股有限公司 Audio playing method, device, equipment and system
WO2023193643A1 (en) * 2022-04-08 2023-10-12 海信视像科技股份有限公司 Display device, and processing method for display device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658173A (en) * 2005-03-01 2005-08-24 英特维数位科技股份有限公司 Playing method and system for selecting sound effect on computer device
CN102457793A (en) * 2010-11-02 2012-05-16 深圳富泰宏精密工业有限公司 Earphone interface circuit and electronic device provided with the same
CN102937886A (en) * 2012-10-29 2013-02-20 珠海全志科技股份有限公司 Audio frequency multidevice channel outputting method and device
CN104484150A (en) * 2014-12-29 2015-04-01 宇龙计算机通信科技(深圳)有限公司 Audio play method, audio play device and terminal
CN104810035A (en) * 2015-04-01 2015-07-29 广东欧珀移动通信有限公司 Sound effect control method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658173A (en) * 2005-03-01 2005-08-24 英特维数位科技股份有限公司 Playing method and system for selecting sound effect on computer device
CN102457793A (en) * 2010-11-02 2012-05-16 深圳富泰宏精密工业有限公司 Earphone interface circuit and electronic device provided with the same
CN102937886A (en) * 2012-10-29 2013-02-20 珠海全志科技股份有限公司 Audio frequency multidevice channel outputting method and device
CN104484150A (en) * 2014-12-29 2015-04-01 宇龙计算机通信科技(深圳)有限公司 Audio play method, audio play device and terminal
CN104810035A (en) * 2015-04-01 2015-07-29 广东欧珀移动通信有限公司 Sound effect control method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112767971A (en) * 2019-10-21 2021-05-07 华为技术有限公司 Audio playing method, model obtaining method, device, terminal and server
CN112767971B (en) * 2019-10-21 2022-02-01 华为技术有限公司 Audio playing method, model obtaining method, device, terminal and server
CN112822665A (en) * 2019-11-18 2021-05-18 阿里巴巴集团控股有限公司 Audio playing method, device, equipment and system
WO2023193643A1 (en) * 2022-04-08 2023-10-12 海信视像科技股份有限公司 Display device, and processing method for display device

Similar Documents

Publication Publication Date Title
US9247365B1 (en) Impedance sensing for speaker characteristic information
CN106302997B (en) Output control method, electronic equipment and system
CN105979441B (en) A kind of personalized optimization method for 3D audio Headphone reproducings
US20080112572A1 (en) Earphone and media player
WO2011079720A1 (en) Wired earphone compatible method and device
CN104871566A (en) Collaborative sound system
CN104918069B (en) A playback scene restoration method, system, playback terminal and control terminal
WO2016131266A1 (en) Method and apparatus for adjusting sound field of earphone, terminal and earphone
CN103873988B (en) External device identification circuit, method, device and system based on earphone socket
CN102413402A (en) Audio frequency control method of audio frequency output device and audio frequency output device
WO2017166603A1 (en) Sound quality adjustment method, terminal, electronic device, and non-volatile computer storage medium
CN105630586A (en) Information processing method and electronic device
CN110213707A (en) Earphone and hearing aid method thereof, and computer readable storage medium
WO2020252973A1 (en) Wireless earphone noise reduction method and system, wireless earphone and storage medium
CN105681946A (en) Headphone, headphone channel control method and terminal
EP3276981A1 (en) Information processing device and information processing method thereof
CN105741862A (en) Method and device for recording audios through mobile terminal and mobile terminal
CN106201420A (en) Audio-frequency processing method and device
US20130044888A1 (en) Audio device and audio producing method
CN105741863A (en) Method and device for mobile terminal to play voice frequency, and mobile terminal
CN107404587B (en) Audio playing control method, audio playing control device and mobile terminal
CN103533270A (en) An audio playback device and audio control method
CN105679350A (en) Audio playing method and device
CN105682010B (en) Bluetooth connection control method and device in audio playing system and playing equipment
CN118890720A (en) Audio equipment networking configuration method, device, electronic equipment and 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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161207