

技术领域technical field
本发明属于通信领域,尤其涉及一种安卓系统的音频处理方法及智能终端。The invention belongs to the communication field, and in particular relates to an audio processing method of an Android system and an intelligent terminal.
背景技术Background technique
目前安卓(android)系统的设备在进行音频处理时,尤其是回放音乐时仅支持一种音频的采样率,因此android系统在回放音乐时,先将声音数据源送到android混音系统进行统一采样率处理,处理后的声音数据源输出给声卡,这个处理的过程会造成声音数据源的损失,最终被声卡还原的声音失真会变大,音质变差。At present, Android system devices only support one audio sampling rate when performing audio processing, especially when playing back music. Therefore, when playing back music, the Android system first sends the sound data source to the Android mixing system for unified sampling. Rate processing, the processed sound data source is output to the sound card, this processing process will cause the loss of the sound data source, and the final sound restored by the sound card will be distorted and the sound quality will deteriorate.
发明内容Contents of the invention
本发明实施例的目的在于提供一种安卓系统的音频处理方法,旨在解决现有的技术方法处理音频声音失真的问题。The purpose of the embodiments of the present invention is to provide an audio processing method for an Android system, which aims to solve the problem of audio sound distortion in the existing technical methods.
本发明实施例是这样实现的,一种安卓系统的音频处理方法,所述方法包括:The embodiment of the present invention is achieved in this way, an audio processing method for an Android system, the method comprising:
获取音频数据,获取该音频数据的采样频率;Obtain audio data, obtain the sampling frequency of the audio data;
将音频数据在该采样频率对应的固定频率上播放。Play the audio data at the fixed frequency corresponding to the sampling frequency.
可选的,所述获取音频数据,获取该音频数据的采样频率具体包括:Optionally, the acquisition of audio data, the sampling frequency of the acquisition of the audio data specifically includes:
当获取多个音频数据时,从多个音频数据中选取一个音频数据,并获取该音频数据的采样频率。When obtaining a plurality of audio data, one audio data is selected from the plurality of audio data, and the sampling frequency of the audio data is obtained.
另一方面,本发明还提供一种智能终端,所述智能终端具体包括:On the other hand, the present invention also provides an intelligent terminal, and the intelligent terminal specifically includes:
采样模块,用于获取音频数据,获取该音频数据的采样频率,并将该采样频率发送给播放模块,The sampling module is used to obtain audio data, obtain the sampling frequency of the audio data, and send the sampling frequency to the playback module,
播放模块,用于将音频数据在该采样频率对应的固定频率上回放。The playback module is used to play back the audio data at a fixed frequency corresponding to the sampling frequency.
可选的,所述采样模块具体用于,当获取多个音频数据时,从多个音频数据中选取一个音频数据,并获取该音频数据的采样频率。Optionally, the sampling module is specifically configured to, when acquiring multiple audio data, select one audio data from the multiple audio data, and acquire the sampling frequency of the audio data.
可选的,所述智能终端为:手机、智能电视或平板电脑。Optionally, the smart terminal is: a mobile phone, a smart TV or a tablet computer.
在本发明实施例中,本发明提供的技术方案由于不需要进行混音操作就可以直接播放,所以其无需进行重采样的操作,所以其会减少声音的失真,所以其具有减少声音失真的优点。In the embodiment of the present invention, the technical solution provided by the present invention can be played directly without performing a mixing operation, so it does not need to perform a resampling operation, so it will reduce the distortion of the sound, so it has the advantage of reducing the distortion of the sound .
附图说明Description of drawings
图1是本发明提供的一种安卓系统的音频处理方法的流程图;以及Fig. 1 is the flowchart of the audio processing method of a kind of Android system provided by the present invention; And
图2是本发明提供的一种智能终端的结构图。Fig. 2 is a structural diagram of an intelligent terminal provided by the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明提供一种安卓系统的音频处理方法,该方法由智能终端完成,该方法如图1所示,包括如下步骤:The present invention provides a kind of audio processing method of Android system, and this method is completed by intelligent terminal, and this method is as shown in Figure 1, comprises the following steps:
S11、获取音频数据,获取该音频数据的采样频率;S11. Obtain audio data, and obtain a sampling frequency of the audio data;
S12、将音频数据在该采样频率对应的固定频率上播放。S12. Play the audio data at a fixed frequency corresponding to the sampling frequency.
本发明提供的方法由于不需要进行混音操作就可以直接播放,所以其无需进行重采样的操作,所以其会减少声音的失真,所以其具有减少声音失真的优点。The method provided by the present invention can be played directly without performing a sound mixing operation, so it does not need to perform a resampling operation, so it can reduce the distortion of the sound, so it has the advantage of reducing the distortion of the sound.
可选的,上述方法实现S11的方法具体包括:Optionally, the method for implementing S11 in the above method specifically includes:
当获取多个音频数据时,从多个音频数据中选取一个音频数据,并获取该音频数据的采样频率。此种方式能够在出现多个音频数据时避免多个音频数据之间的互相干扰。When obtaining a plurality of audio data, one audio data is selected from the plurality of audio data, and the sampling frequency of the audio data is obtained. This way can avoid mutual interference between multiple audio data when multiple audio data appear.
本发明还提供一种智能终端,该智能终端的具体表现形式可以为多种,例如手机,平板电脑,当然也可以为其他的形式,例如智能电视等,该智能终端如图2所示,包括:The present invention also provides an intelligent terminal. The intelligent terminal can be in various forms, such as a mobile phone, a tablet computer, or in other forms, such as a smart TV. As shown in FIG. 2 , the intelligent terminal includes :
采样模块21,用于获取音频数据,获取该音频数据的采样频率,并将该采样频率发送给播放模块,The
播放模块22,用于将音频数据在该采样频率对应的固定频率上播放。The
本发明提供的智能终端由于不需要进行混音操作就可以直接播放,所以其无需进行重采样的操作,所以其会减少声音的失真,所以其具有减少声音失真的优点。Since the intelligent terminal provided by the present invention can directly play without performing a sound mixing operation, it does not need to perform a resampling operation, so it can reduce sound distortion, so it has the advantage of reducing sound distortion.
可选的,上述采样模块具体用于,当获取多个音频数据时,从多个音频数据中选取一个音频数据,并获取该音频数据的采样频率。Optionally, the sampling module is specifically configured to, when acquiring multiple audio data, select one audio data from the multiple audio data, and acquire the sampling frequency of the audio data.
值得注意的是,上述实施例中,所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。It is worth noting that in the above embodiments, the units included are only divided according to the functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are also It is only for the convenience of distinguishing each other, and is not intended to limit the protection scope of the present invention.
另外,本领域普通技术人员可以理解实现上述各实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,相应的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘或光盘等。In addition, those of ordinary skill in the art can understand that all or part of the steps in the methods of the above-mentioned embodiments can be completed by instructing related hardware through programs, and the corresponding programs can be stored in a computer-readable storage medium. Storage media, such as ROM/RAM, magnetic disk or optical disk, etc.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210278224XACN102831896A (en) | 2012-08-07 | 2012-08-07 | An Android system audio processing method and intelligent terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201210278224XACN102831896A (en) | 2012-08-07 | 2012-08-07 | An Android system audio processing method and intelligent terminal |
| Publication Number | Publication Date |
|---|---|
| CN102831896Atrue CN102831896A (en) | 2012-12-19 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210278224XAPendingCN102831896A (en) | 2012-08-07 | 2012-08-07 | An Android system audio processing method and intelligent terminal |
| Country | Link |
|---|---|
| CN (1) | CN102831896A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103325402A (en)* | 2013-06-25 | 2013-09-25 | 福州瑞芯微电子有限公司 | Audio playing method and device in android system |
| CN103714837A (en)* | 2013-12-18 | 2014-04-09 | 福州瑞芯微电子有限公司 | Electronic device and method for playing audio files |
| CN103781014A (en)* | 2014-02-14 | 2014-05-07 | 山东共达电声股份有限公司 | Method and system for obtaining stereophonic data from Android system |
| CN104484152A (en)* | 2014-12-31 | 2015-04-01 | 珠海全志科技股份有限公司 | High sampling rate direct-connection audio output method and device based on Android |
| CN105847963A (en)* | 2016-03-31 | 2016-08-10 | 乐视控股(北京)有限公司 | Television audio frequency debugging method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004214827A (en)* | 2002-12-27 | 2004-07-29 | Sony Corp | Sampling rate conversion apparatus and method thereof, and audio apparatus |
| CN1963744A (en)* | 2006-12-13 | 2007-05-16 | 北京中星微电子有限公司 | Self adapting method of sampling frequency of audio frequency interface |
| US20080037805A1 (en)* | 2006-04-17 | 2008-02-14 | Sony Corporation | Audio output device and method for calculating parameters |
| CN101217039A (en)* | 2008-01-08 | 2008-07-09 | 北京中星微电子有限公司 | A method, system and device for echo elimination |
| CN101247187A (en)* | 2008-03-27 | 2008-08-20 | 炬力集成电路设计有限公司 | Audio data recovery method, device and multimedia data receiving system |
| CN101944364A (en)* | 2009-07-09 | 2011-01-12 | 展讯通信(上海)有限公司 | Voice frequency processing method and voice frequency system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004214827A (en)* | 2002-12-27 | 2004-07-29 | Sony Corp | Sampling rate conversion apparatus and method thereof, and audio apparatus |
| US20080037805A1 (en)* | 2006-04-17 | 2008-02-14 | Sony Corporation | Audio output device and method for calculating parameters |
| CN1963744A (en)* | 2006-12-13 | 2007-05-16 | 北京中星微电子有限公司 | Self adapting method of sampling frequency of audio frequency interface |
| CN101217039A (en)* | 2008-01-08 | 2008-07-09 | 北京中星微电子有限公司 | A method, system and device for echo elimination |
| CN101247187A (en)* | 2008-03-27 | 2008-08-20 | 炬力集成电路设计有限公司 | Audio data recovery method, device and multimedia data receiving system |
| CN101944364A (en)* | 2009-07-09 | 2011-01-12 | 展讯通信(上海)有限公司 | Voice frequency processing method and voice frequency system |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103325402A (en)* | 2013-06-25 | 2013-09-25 | 福州瑞芯微电子有限公司 | Audio playing method and device in android system |
| CN103714837A (en)* | 2013-12-18 | 2014-04-09 | 福州瑞芯微电子有限公司 | Electronic device and method for playing audio files |
| CN103781014A (en)* | 2014-02-14 | 2014-05-07 | 山东共达电声股份有限公司 | Method and system for obtaining stereophonic data from Android system |
| CN103781014B (en)* | 2014-02-14 | 2016-08-17 | 山东共达电声股份有限公司 | A kind of method and system obtaining true stereo data from Android system |
| CN104484152A (en)* | 2014-12-31 | 2015-04-01 | 珠海全志科技股份有限公司 | High sampling rate direct-connection audio output method and device based on Android |
| CN104484152B (en)* | 2014-12-31 | 2017-07-28 | 珠海全志科技股份有限公司 | High sampling rate based on Android leads directly to audio-frequency inputting method and equipment |
| CN105847963A (en)* | 2016-03-31 | 2016-08-10 | 乐视控股(北京)有限公司 | Television audio frequency debugging method and device |
| WO2017166486A1 (en)* | 2016-03-31 | 2017-10-05 | 乐视控股(北京)有限公司 | Audio debugging method and device for television |
| EP3249936A4 (en)* | 2016-03-31 | 2017-11-29 | LE Holdings (Beijing) Co., Ltd. | Audio debugging method and device for television |
| Publication | Publication Date | Title |
|---|---|---|
| CN107800708B (en) | Vehicle-mounted machine account automatic login method and vehicle-mounted machine device | |
| US8931062B2 (en) | Remote displaying | |
| CN105701122A (en) | Log collection method, apparatus and system | |
| CN102831896A (en) | An Android system audio processing method and intelligent terminal | |
| CN108495344B (en) | A kind of network switching method, device and terminal | |
| CN103873883B (en) | Video playing method and device and terminal equipment | |
| CN102610267B (en) | Method for improving audio playing quality of playing system | |
| CN111048093A (en) | Conference sound box, conference recording method, device, system and computer storage medium | |
| CN105187976B (en) | Mobile terminal and method for amplifying sound based on Bluetooth sound | |
| CN104837057A (en) | Video file playing method, device and system | |
| CN105188008B (en) | A kind of method and device of testing audio output unit | |
| CN103077733A (en) | Audio frequency information recording method and recording device | |
| US9230529B2 (en) | Music reproducing apparatus | |
| CN107393568A (en) | Method, system and terminal equipment for recording multimedia file | |
| CN102594982A (en) | Portable equipment, system and method for realizing karaoke | |
| CN103000211A (en) | High-definition audio playing system capable of realizing multi-resource sharing | |
| CN104320528A (en) | Safe voice communication method | |
| CN107864448B (en) | A device for realizing dual-channel communication based on Bluetooth 2.0 or 3.0 and its communication method | |
| CN206249297U (en) | Support that the LineOut of various digital input interfaces exports audio switching device | |
| CN111048108A (en) | Audio processing method and device | |
| CN103916798A (en) | Automatic sound effect identifying system of headphone | |
| WO2016107178A1 (en) | Method and device for playing ring back tone | |
| CN108737352A (en) | The radio physical layer processing system and method for compatible multi-protocols and nonstandard protocol | |
| CN105743938A (en) | Software and hardware integrated binding method and system based on wifi chip | |
| CN106464288A (en) | A method for realizing intercom and smart bracelet |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20121219 |