[go: up one dir, main page]

CN109102816B - Code control method, device and electronic device - Google Patents

Code control method, device and electronic device Download PDF

Info

Publication number
CN109102816B
CN109102816B CN201810925240.0A CN201810925240A CN109102816B CN 109102816 B CN109102816 B CN 109102816B CN 201810925240 A CN201810925240 A CN 201810925240A CN 109102816 B CN109102816 B CN 109102816B
Authority
CN
China
Prior art keywords
call
audio
electronic device
quality information
audio data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810925240.0A
Other languages
Chinese (zh)
Other versions
CN109102816A (en
Inventor
龚金华
严锋贵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810925240.0A priority Critical patent/CN109102816B/en
Publication of CN109102816A publication Critical patent/CN109102816A/en
Application granted granted Critical
Publication of CN109102816B publication Critical patent/CN109102816B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/18Vocoders using multiple modes
    • G10L19/22Mode decision, i.e. based on audio signal content versus external parameters
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/18Vocoders using multiple modes
    • G10L19/20Vocoders using multiple modes using sound class specific coding, hybrid encoders or object based coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a coding control method, a coding control device and electronic equipment. The method comprises the following steps: acquiring a current call characteristic parameter in a call state; acquiring an audio coding type corresponding to the call characteristic parameter; and coding the call audio data transmitted to the audio playing equipment based on the audio coding type. The method comprises the steps of acquiring current call characteristic parameters and audio coding types corresponding to the call characteristic parameters in a call state, and coding call audio data transmitted to audio playing equipment based on the audio coding types. Therefore, in the process of transmitting the audio data in the call process to the audio playing device, the audio coding type of the audio data to be transmitted to the audio playing device can be determined according to the call characteristic parameters, and the determination of the audio coding type can be more flexible.

Description

编码控制方法、装置以及电子设备Code control method, device and electronic device

技术领域technical field

本申请涉及电子设备技术领域,更具体地,涉及一种编码控制方法、装置以及电子设备。The present application relates to the technical field of electronic equipment, and more particularly, to a coding control method, apparatus, and electronic equipment.

背景技术Background technique

随着蓝牙技术的发展与普及,更多的音频播放设备可以支持与电子设备之间通过蓝牙协议来传输数据。例如,车载设备可以和电子设备之间通过蓝牙协议来传输音乐,而耳机可以通过蓝牙协议接收电子设备所传输的通信语音。With the development and popularization of Bluetooth technology, more audio playback devices can support data transmission with electronic devices through the Bluetooth protocol. For example, the in-vehicle device and the electronic device can transmit music through the Bluetooth protocol, and the headset can receive the communication voice transmitted by the electronic device through the Bluetooth protocol.

但是,在电子设备通过蓝牙的方式向其他电子设备传输音频数据时,所采用的音频编码的类型是固定的。However, when an electronic device transmits audio data to other electronic devices by means of Bluetooth, the type of audio coding used is fixed.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,本申请提出了一种编码控制方法、装置以及电子设备,以实现改善上述问题。In view of the above problems, the present application proposes an encoding control method, apparatus, and electronic device to improve the above problems.

第一方面,本申请提供了一种编码控制方法,应用于电子设备,所述方法包括:在通话状态下,获取当前的通话特征参数;获取与所述通话特征参数对应的音频编码类型;基于所述音频编码类型对向音频播放设备传输的通话音频数据进行编码。In a first aspect, the present application provides an encoding control method, which is applied to an electronic device. The method includes: in a call state, obtaining a current call feature parameter; obtaining an audio encoding type corresponding to the call feature parameter; The audio encoding type encodes the call audio data transmitted to the audio playback device.

第二方面,本申请提供了一种传输控制装置,运行于电子设备,所述装置包括:参数获取单元,用于在通话状态下,获取当前的通话特征参数;编码类型获取单元,用于获取与所述通话特征参数对应的音频编码类型;传输控制单元,用于基于所述音频编码类型对向音频播放设备传输的通话音频数据进行编码。In a second aspect, the present application provides a transmission control device that runs on an electronic device, and the device includes: a parameter acquisition unit for acquiring current call feature parameters in a call state; an encoding type acquisition unit for acquiring an audio encoding type corresponding to the call feature parameter; a transmission control unit, configured to encode the call audio data transmitted to the audio playback device based on the audio encoding type.

第三方面,本申请提供了一种电子设备,包括一个或多个处理器以及存储器;一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行上述的方法。In a third aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, The one or more programs are configured to perform the methods described above.

第四方面,本申请提供的一种计算机可读存储介质,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码运行时执行上述的方法。In a fourth aspect, the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, wherein the above-mentioned method is executed when the program code is executed.

本申请提供的一种编码控制方法、装置以及电子设备,在通话状态下,通过获取当前的通话特征参数,再获取与所述通话特征参数对应的音频编码类型,然后基于所述音频编码类型对向音频播放设备传输的通话音频数据进行编码。从而使得在将通话过程的音频数据传输给音频播放设备的过程中,可以根据通话特征参数来确定对于要传输给音频播放设备的音频数据的音频编码类型,从而使得音频编码类型的确定可以更加的灵活。In an encoding control method, device and electronic device provided by the present application, in a call state, the current call characteristic parameter is obtained, and then the audio encoding type corresponding to the call characteristic parameter is obtained, and then based on the audio encoding type Encode the call audio data transmitted to the audio playback device. Therefore, in the process of transmitting the audio data of the call process to the audio playback device, the audio coding type for the audio data to be transmitted to the audio playback device can be determined according to the call characteristic parameter, so that the determination of the audio coding type can be more convenient. flexible.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.

图1示出了本申请提出的一种编码控制方法的流程图;Fig. 1 shows a flow chart of a coding control method proposed by the present application;

图2示出了本申请提出的一种编码控制方法中一种电子设备与其他终端设备交互音频数据的示意图;2 shows a schematic diagram of an electronic device interacting with other terminal devices in audio data in a coding control method proposed by the present application;

图3示出了本申请提出的一种编码控制方法中另一种电子设备与其他终端设备交互音频数据的示意图;FIG. 3 shows a schematic diagram of the interaction of audio data between another electronic device and other terminal devices in an encoding control method proposed by the present application;

图4示出了本申请提出的另一种编码控制方法的流程图;FIG. 4 shows a flowchart of another encoding control method proposed by the present application;

图5示出了本申请提出的一种编码控制装置的结构框图;FIG. 5 shows a structural block diagram of a coding control device proposed by the present application;

图6示出了本申请提出的另一种编码控制装置的结构框图;6 shows a structural block diagram of another encoding control device proposed by the present application;

图7示出了本申请提出的一种电子设备的结构框图;FIG. 7 shows a structural block diagram of an electronic device proposed by the present application;

图8是本申请实施例的用于保存或者携带实现根据本申请实施例的编码控制方法的程序代码的存储单元。FIG. 8 is a storage unit for storing or carrying a program code for implementing an encoding control method according to an embodiment of the present application according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

随着电子设备的用户对于音乐体验的需求,电子设备开始支持播放音频文件。而电子设备的音频架构和计算机的构架类似,主要就是由处理器、内置音频CODEC(编解码器)来完成。其中,处理器接收音频文件的输入后,转化成I2S信号,并传输至CODEC转换成模拟信号,然后进行播放。As users of electronic devices demand music experience, electronic devices begin to support playing audio files. The audio architecture of electronic equipment is similar to that of a computer, and is mainly completed by a processor and a built-in audio CODEC (codec). Among them, after the processor receives the input of the audio file, it converts it into an I2S signal, and transmits it to the CODEC to convert it into an analog signal, and then plays it.

其中,该电子设备可以为移动或便携式并执行无线通信的各种类型的计算机系统设备中的任何一种。Wherein, the electronic device may be any of various types of computer system devices that are mobile or portable and perform wireless communication.

随着用户对于音乐播放的进一步需求,出现了更多的电子设备以外的音频播放设备,该音频播放设备可以接收电子设备传输过来的音频数据,并将音频数据进行播放。常见的音频播放设备包括耳机、音箱以及车载音频播放设备等。其中,作为一种的传输方式,电子设备可以通过蓝牙传输的方式,将音频数据传输给外部的音频播放设备进行播放。此外,电子设备还可以通过基于IEEE802.11协议的方式将音频数据传递给音频播放设备。With the further demands of users for music playback, more audio playback devices other than electronic devices have appeared. The audio playback device can receive audio data transmitted from the electronic device and play the audio data. Common audio playback devices include headphones, speakers, and car audio playback devices. Among them, as a transmission method, the electronic device can transmit the audio data to an external audio playback device for playback by means of Bluetooth transmission. In addition, the electronic device can also transmit audio data to the audio playback device in a manner based on the IEEE802.11 protocol.

其中,电子设备在基于蓝牙的方式将音频数据传递给外部的音频播放设备过程中,会先将待传输的音频数据进行编码。其中,蓝牙音频音频编码方式常见的包括:Apt-X编码方式、SBC编码方式以及AAC编码方式。The electronic device first encodes the audio data to be transmitted in the process of transmitting the audio data to the external audio playback device in a Bluetooth-based manner. Among them, the common Bluetooth audio audio encoding methods include: Apt-X encoding method, SBC encoding method and AAC encoding method.

而发明人在研究中发现,在许多的场景中,电子设备对将要传输给音频播放设备的音频数据的编码方式都是固定的,例如,不论在什么场景下都是基于Apt-X编码方式对音频数据进行编码,或者都是基于SBC编码方式对音频数据进行编码,或者都是基于AAC的方式对音频数据进行编码。In the research, the inventor found that in many scenarios, the encoding method of the audio data to be transmitted to the audio playback device is fixed by the electronic device. For example, in any scenario, the encoding method based on Apt-X The audio data is encoded, or the audio data is encoded based on the SBC encoding method, or the audio data is encoded based on the AAC method.

因此,发明人提出了本申请中可以灵活确定编码方式,提升编码方式灵活性的的编码控制方法、装置以及电子设备。Therefore, the inventor proposes an encoding control method, an apparatus and an electronic device that can flexibly determine the encoding mode and improve the flexibility of the encoding mode in the present application.

下面将结合附图具体描述本申请的各实施例。The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

请参阅图1,本申请提供的一种编码控制方法,应用于电子设备,所述方法包括:Please refer to FIG. 1, a coding control method provided by this application is applied to electronic equipment, and the method includes:

步骤S110:在通话状态下,获取当前的通话特征参数。Step S110: In the call state, obtain the current call feature parameters.

其中,通话状态可以是电子终端处于与其他终端设备之间正在建立语音通信通道的状态,或者是已经建立了语音通信通道的状态。可选的,该语音通信通道可以是基于电路交换方式的语音通信通道也可以是基于分组交换方式建立的语音通信通道。其中,作为一种方式,电路交换方式为以电路连接为目的的交换方式,在通信之前要在通信两方之间建立一条被两方独占的物理通道。而分组交换方式是以分组为单位进行传输和交换的,它是一种存储—转发交换方式,即将到达交换设备的分组先送到存储器临时存储和处理,等到对应的输出电路有空暇时再送出。The call state may be a state in which the electronic terminal is in a state of establishing a voice communication channel with other terminal devices, or a state in which a voice communication channel has been established. Optionally, the voice communication channel may be a voice communication channel based on circuit switching or a voice communication channel established based on packet switching. Among them, as a method, the circuit switching method is a switching method for the purpose of circuit connection. Before communication, a physical channel exclusively occupied by the two parties should be established between the two communicating parties. The packet switching method is based on packet transmission and exchange. It is a store-and-forward switching method. The packets that are about to arrive at the switching device are first sent to the memory for temporary storage and processing, and then sent out when the corresponding output circuit is free. .

其中,电子设备可以有多种方式来判断电子设备是否处于通话状态。可选的,对于操作系统为Android的电子设备,可以通过检测PhoneStateListener类实例化以后的对象的返回值来判读电子设备是否处于通话状态。作为一种方式,电子设备可以将PhoneStateListener对象(一般是自己继承PhoneStateListener类完成一些封装)注册到系统电话管理服务(TelephonyManager)中去,然后通过PhoneStateListener的回调方法onCallStateChanged(int state,String incomingNumber)实现通话状态的检测。例如,若前述的state的值为TelephonyManager.CALL_STATE_IDLE,则表征通话状态下的通话被挂断,而state的值为TelephonyManager.CALL_STATE_RINGING,则表征有来电呼叫但是还未被接听,若state的值为TelephonyManager.CALL_STATE_OFFHOOK,则可以表征电子设备正处于通话。Wherein, the electronic device can use various ways to determine whether the electronic device is in a call state. Optionally, for the electronic device whose operating system is Android, it can be judged whether the electronic device is in a call state by detecting the return value of the object after the PhoneStateListener class is instantiated. As a way, the electronic device can register the PhoneStateListener object (usually by inheriting the PhoneStateListener class to complete some encapsulation) into the system telephony manager, and then implement the call through the callback method onCallStateChanged(int state, String incomingNumber) of the PhoneStateListener. Status detection. For example, if the value of the aforementioned state is TelephonyManager.CALL_STATE_IDLE, it means that the call in the call state is hung up, and the value of state is TelephonyManager.CALL_STATE_RINGING, which means that there is an incoming call but has not been answered, if the value of state is TelephonyManager .CALL_STATE_OFFHOOK, it can indicate that the electronic device is on a call.

此外,还可以通过检测电子装置所发送的一些通信请求或者接收到的通信请求的内容来判断当前是否处于通话状态。例如,若检测到电子设备以移动通信的方式建立语音通信通道的情况下,若检测电子设备向基站发送的为业务信道分配请求,或者接收到的基站发送的业务信道分配指令时,可以判定电子设备处于通话状态。In addition, it can also be determined whether the current state is in a call state by detecting some communication requests sent by the electronic device or the content of the received communication requests. For example, if it is detected that the electronic device establishes a voice communication channel by means of mobile communication, if it detects a traffic channel allocation request sent by the electronic device to the base station, or a traffic channel allocation command sent by the received base station, it can be determined that the electronic device The device is in a call state.

步骤S120:获取与所述通话特征参数对应的音频编码类型。Step S120: Acquire the audio coding type corresponding to the call feature parameter.

可以理解的是,在通话状态下电子设备将要传输给音频播放设备的音频数据为电子设备从另外的终端设备中获取的。例如,若电子设备通过基站与其他的终端进行语音通话,那么在一种情况下是其他的终端将采集的音频数据传输给电子设备,然后电子设备再将该音频数据传输给音频播放设备。那么在这种情况下,其他的终端所处的电磁环境以及其他的终端和电子设备之间的信号环境都会影响音频数据的质量。It can be understood that the audio data to be transmitted by the electronic device to the audio playback device in the call state is obtained by the electronic device from another terminal device. For example, if the electronic device communicates with other terminals through the base station, in one case, the other terminals transmit the collected audio data to the electronic device, and then the electronic device transmits the audio data to the audio playback device. In this case, the electromagnetic environment where other terminals are located and the signal environment between the other terminals and the electronic device will affect the quality of the audio data.

作为一种方式,所述通话特征参数包括通话质量信息。那么所述获取与所述通话特征参数对应的音频编码类型的步骤可以包括:获取与所述通话质量信息对应的音频编码类型,其中,所述通话质量信息所表征的通话质量越低,所述通话质量信息所对应的音频编码类型的码率越高,从而使得在通话环境不好的情况下,电子设备能够最大程度的保真原有的音频数据的质量,进而使得音频播放设备所播放的音频数据能够最大的程度保真,以利于用户听清楚语音内容。In one way, the call characteristic parameter includes call quality information. Then, the step of acquiring the audio coding type corresponding to the call characteristic parameter may include: acquiring the audio coding type corresponding to the call quality information, wherein the lower the call quality represented by the call quality information, the The higher the bit rate of the audio coding type corresponding to the call quality information, so that in the case of a bad call environment, the electronic device can preserve the quality of the original audio data to the greatest extent, and then make the audio data played by the audio playback device. The audio data can be fidelity to the greatest extent, so that the user can hear the voice content clearly.

其中,在通话特征参数包括通话质量信息的情况下,可以通过获取通话过程中的下行语音的参数来确定通话质量信息。在这种情况下,所述获取当前的通话特征参数的步骤包括:获取所述通话过程中的下行语音的参数,根据所述下行语音的参数获取通话质量信息。Wherein, in the case that the call characteristic parameter includes the call quality information, the call quality information may be determined by acquiring the parameters of the downlink voice during the call. In this case, the step of acquiring the current call feature parameters includes: acquiring parameters of the downlink voice during the call, and acquiring call quality information according to the parameters of the downlink voice.

其中,作为一种方式,所获取的下行语音的参数包括下行语音的信噪比。需要说明的是,信噪比,英文名称叫做SNR或S/N(SIGNAL-NOISE RATIO),又称为讯噪比。是指一个电子设备或者电子系统中信号与噪声的比例。这里面的信号可以指的是来自设备外部需要通过这台电子设备进行处理的电子信号(例如前述的包括音频数据的下行语音),噪声是指经过该设备后产生的原信号中并不存在的无规则的额外信号(或信息),并且该种信号并不随原信号的变化而变化。Wherein, as a way, the acquired parameters of the downlink speech include the signal-to-noise ratio of the downlink speech. It should be noted that the signal-to-noise ratio, the English name is called SNR or S/N (SIGNAL-NOISE RATIO), also known as the signal-to-noise ratio. Refers to the ratio of signal to noise in an electronic device or electronic system. The signal here can refer to the electronic signal from outside the device that needs to be processed by this electronic device (such as the aforementioned downlink voice including audio data), and the noise refers to the original signal generated after passing through the device. A random extra signal (or information) that does not change with the original signal.

在本申请中,作为一种方式,通话质量信息包括质量等级,例如数字1表示质量最高的等级,数字2标识质量次高的等级,依次类推。那么在这种情况下,通话质量信息为表征质量等级的数字。作为一种方式,可以建立信噪比与表征质量等级的数字之间的映射关系。如下表所示:In the present application, as a way, the call quality information includes a quality level, for example, the number 1 indicates the level with the highest quality, the number 2 identifies the level with the second highest quality, and so on. In this case, then, the call quality information is a number characterizing the quality level. As one way, a mapping relationship between the signal-to-noise ratio and a number characterizing the quality level can be established. As shown in the table below:

IDID SNRSNR gradegrade 11 aa 11 22 bb 22

表1Table 1

在表1中,字段SNR表示信噪比,而字段grade表示质量等级。那么对于信噪比为a的情况下,对应的质量等级为1。对于信噪比为b的情况下,对应的质量等级为2。相应的,对于不同的质量等级可以确定不同的音频编码类型。例如,对于质量等级最高的等级1可以对应编码的码率一般的音频编码类型。而对于质量等级次高的等级2或者3,可以对应编码码率最高的音频编码类型。其中,可以理解的是,编码码率越高其所编码的音频数据的保真率也就越高,而音频播放设备也就能够更加高质量的播放音频数据本来的内容。In Table 1, the field SNR represents the signal-to-noise ratio, and the field grade represents the quality level. Then for the case where the signal-to-noise ratio is a, the corresponding quality level is 1. For a signal-to-noise ratio of b, the corresponding quality level is 2. Correspondingly, different audio coding types can be determined for different quality levels. For example, the level 1 with the highest quality level may correspond to an audio coding type with a general coding rate. For the next highest quality level, level 2 or 3, it can correspond to the audio coding type with the highest coding rate. It can be understood that the higher the encoding bit rate, the higher the fidelity of the encoded audio data, and the audio playback device can play the original content of the audio data with higher quality.

再者,作为另外一种方式,还可以与所述电子设备建立了语音通信通道的终端设备所处的周围环境来确定通话质量信息。可以理解的是,如图2所示,在图中终端设备99将采集的音频数据传输给基站98,而基站98再将音频数据传输给电子设备100,然后电子设备100再将音频数据传输给音频播放设备(图示为蓝牙耳机97)。作为另外一种方式,如图3所示,与图2中所示的不同,终端设备99为通过无线接入点96接入到网络中,而电子设备100通过无线接入点95接入到网络中,那么终端设备所采集的音频数据可以先经过无线接入点96传输到网络中,再传输到无线接入点95,然后再传输给电子设备100。Furthermore, as another way, the surrounding environment of the terminal device that has established a voice communication channel with the electronic device can also be used to determine the call quality information. It can be understood that, as shown in FIG. 2, in the figure, the terminal device 99 transmits the collected audio data to the base station 98, and the base station 98 transmits the audio data to the electronic device 100, and then the electronic device 100 transmits the audio data to the base station 98. Audio playback device (Bluetooth headset 97 shown). As another way, as shown in FIG. 3 , different from that shown in FIG. 2 , the terminal device 99 is connected to the network through the wireless access point 96 , and the electronic device 100 is connected to the network through the wireless access point 95 . In the network, the audio data collected by the terminal device can be firstly transmitted to the network through the wireless access point 96 , then transmitted to the wireless access point 95 , and then transmitted to the electronic device 100 .

那么在这种情况下,电子设备所要传输给音频播放设备的音频数据最初是由与所述电子设备建立了语音通信通道的终端设备采集的,那么如果与所述电子设备建立了语音通信通道的终端设备所处的周围环境不佳,那么可能会造成音频数据本身质量不佳。例如,如果周围环境中噪音较大,那么所采集的音频数据中会包括较大的环境噪音。再例如,如果与所述电子设备建立了语音通信通道的终端设备与基站之间的信号强度不强,那么会造成传输给基站的音频数据会有较大的损失。In this case, the audio data to be transmitted by the electronic device to the audio playback device is initially collected by the terminal device that has established a voice communication channel with the electronic device. If the surrounding environment of the terminal device is not good, it may cause the poor quality of the audio data itself. For example, if there is a lot of noise in the surrounding environment, then the collected audio data will include the loud ambient noise. For another example, if the signal strength between the terminal device that has established the voice communication channel with the electronic device and the base station is not strong, then the audio data transmitted to the base station will suffer a great loss.

那么作为一种方式,与所述电子设备建立了语音通信通道的终端设备可以将表征当前周围环境的环境参数(表征噪音强度或者与基站连接的信号强度的参数)传递给所述电子设备,以便电子设备根据环境参数确定通话质量信息。其中,与所述电子设备建立了语音通信通道的终端设备可以通过多种方式将环境参数传输给所述电子设备。Then, as a way, the terminal device that has established a voice communication channel with the electronic device can transmit the environmental parameters characterizing the current surrounding environment (parameters characterizing the noise intensity or the signal strength connected to the base station) to the electronic device, so that The electronic device determines the call quality information according to the environmental parameters. Wherein, the terminal device that has established a voice communication channel with the electronic device can transmit the environmental parameters to the electronic device in various ways.

可选的,与所述电子设备建立了语音通信通道的终端设备可以将环境参数添加到音频数据的某个参数中,那么在这种情况下,电子设备可以在接收到音频数据后,从音频数据中提取该某个参数的值,从而获取到环境参数。再者,作为另外一种方式,如果电子设备以及与所述电子设备建立了语音通信通道的终端设备均可以除了建立语音通信通道的网络协议方式以外的通信方式接入网络时,与所述电子设备建立了语音通信通道的终端设备还可以先将环境参数上传到服务器,然后服务器再将环境参数推送给电子设备。Optionally, the terminal device that has established a voice communication channel with the electronic device can add the environmental parameter to a certain parameter of the audio data, then in this case, the electronic device can, after receiving the audio data, The value of the certain parameter is extracted from the data to obtain the environment parameter. Furthermore, as another way, if both the electronic device and the terminal device that has established a voice communication channel with the electronic device can access the network in a communication mode other than the network protocol mode for establishing the voice communication channel, the electronic device can communicate with the electronic device. The terminal device whose device has established a voice communication channel can also upload the environmental parameters to the server first, and then the server pushes the environmental parameters to the electronic device.

例如,若电子设备与前述的终端设备之间是基于2G、3G或者4G等移动通信协议建立的语音通信通道。且电子设备与前述的终端设备均支持WIFI通信或者均支持同时建立分组交换或者电路交换的情况下,终端设备可以将采集的环境参数通过通过WIFI的方式或者通过分组交互的方式传输到服务器,而服务器再通过WIFI的方式或者通过分组交互的方式将环境参数传输给电子设备。可以理解的是,为了便于服务器获取到所接收到的环境参数需要传输给哪一个电子设备,终端设备在上传给服务器数据时,该数据中不仅包括环境参数,还会包括与该环境参数对应的电子设备的标识,例如,电子设备的MAC地址,从而使得服务器可以从已经和自身建立了网络连接的电子设备中确定与该MAC地址对应的电子设备作为环境参数的接收方。For example, if a voice communication channel is established based on a mobile communication protocol such as 2G, 3G or 4G between the electronic device and the aforementioned terminal device. And if the electronic device and the aforementioned terminal device both support WIFI communication or both support the establishment of packet switching or circuit switching at the same time, the terminal device can transmit the collected environmental parameters to the server through WIFI or through packet interaction, and The server then transmits the environmental parameters to the electronic device by means of WIFI or by means of group interaction. It can be understood that, in order to facilitate the server to obtain which electronic device the received environmental parameters need to be transmitted to, when the terminal device uploads data to the server, the data not only includes the environmental parameters, but also includes the corresponding environmental parameters. The identifier of the electronic device, for example, the MAC address of the electronic device, so that the server can determine the electronic device corresponding to the MAC address from the electronic device that has established a network connection with itself as the recipient of the environmental parameter.

其中,作为一种方式,终端设备可以以自定义的数据封装方式来组织向服务器发送的数据的格式。在这种情况下,电子设备向服务器发送的数据可以包括“##”+“44-45-53-54-00-00”+“N”+“80db”+“#*#”。其中,符号“##”表征数据的开始,而符号“#*#”表征数据的结束。而“44-45-53-54-00-00”表示电子设备的MAC地址,而“N”表示词条数据时关于环境噪音的,那么“80db”表示的是环境噪音。可以理解的是,服务器在接收到该条数据后,会查找MAC地址为44-45-53-54-00-00对应的IP地址,若查找到后,会向该IP地址对应的电子设备发送80db这个噪音参数。可以理解的是,服务器也可以基于前述的自定义的数据封装方式来封装要发送的数据。Wherein, as a way, the terminal device can organize the format of the data sent to the server in a self-defined data encapsulation way. In this case, the data sent by the electronic device to the server may include "##"+"44-45-53-54-00-00"+"N"+"80db"+"##*#". Among them, the symbol "##" represents the beginning of the data, and the symbol "###" represents the end of the data. And "44-45-53-54-00-00" indicates the MAC address of the electronic device, and "N" indicates that the entry data is about environmental noise, then "80db" indicates the environmental noise. It is understandable that after receiving this piece of data, the server will look for the IP address corresponding to the MAC address of 44-45-53-54-00-00, and if found, it will send a message to the electronic device corresponding to the IP address. 80db this noise parameter. It can be understood that, the server can also encapsulate the data to be sent based on the aforementioned custom data encapsulation manner.

需要说明的是,在这种情况下,通信质量信息依然可以为前述的质量等级,对于环境参数与质量等级之间的关联关系依然可以采用前述的数据表的方式,此处就不再赘述。It should be noted that, in this case, the communication quality information can still be the aforementioned quality level, and the relationship between the environmental parameters and the quality level can still be in the form of the aforementioned data table, which will not be repeated here.

此外,除了前述的获取通话质量信息的方式外,还可以根据上行语音来确定通话质量信息。在这种情况下,所述获取当前的通话特征参数的步骤包括:识别所述通话过程中上行语音;根据在所述上行语音中识别出的内容获取通话质量信息。In addition, in addition to the aforementioned manner of acquiring the call quality information, the call quality information may also be determined according to the uplink voice. In this case, the step of acquiring the current call characteristic parameter includes: recognizing the uplink voice during the call; and acquiring call quality information according to the content identified in the uplink voice.

可以理解的是上行语音为电子设备采集并发送给通信对端的语音,也即是发送给与电子设备进行通话的终端的语音。那么,电子设备可以预先在本地存储字典库,将表征语音信号质量较差的语音内容存储在该字典库中,那么当电子设备采集到上行语音内容后,会从里面识别所采集到的上行语音的内容,然后识别上行语音内容中是否有存在于字典库中的内容,若有则可以进一步的判断所识别出的内容所对应的通信质量信息。It can be understood that the uplink voice is the voice collected by the electronic device and sent to the communication peer, that is, the voice sent to the terminal talking with the electronic device. Then, the electronic device can store the dictionary database locally in advance, and store the voice content representing the poor quality of the voice signal in the dictionary database. Then, when the electronic device collects the uplink voice content, it will recognize the collected uplink voice from it. content, and then identify whether there is content in the dictionary database in the uplink voice content, and if so, it can further determine the communication quality information corresponding to the identified content.

例如,作为一种方式,若依然采用等级来表示通信质量信息,若识别到上行语音内容中有“我听不清楚”则判断当前的通信质量为2级,若识别到语音内容中有“我完全听不清楚”则判断当前的通信质量为1级。若识别到上行语音内容中并没有出现上述的内容,那么可以判定当前的通信质量为3级。那么对于不同的通信质量等级可以对应不同的蓝牙音频编码。可选的,对于代表通信质量最好的3级可以对应编码码率相对较低的音频编码方式,这样,既可以保证可以较高保真的将音频数据传输给音频播放设备,且不会消耗过多的电子设备的电量以及处理器资源。而对于通信质量较低的2级以及3级在电子设备接收到的音频数据本身的质量就不高的情况下,就采用编码码率相对最高的音频编码方式,从而使得在电子设备向音频播放设备传输音频数据的过程中尽量不会出现音频数据失真,以避免造成音频数据进一步的失真。For example, as a method, if the level is still used to represent the communication quality information, if it is recognized that "I can't hear clearly" in the upstream voice content, the current communication quality is judged to be level 2, and if it is recognized that there is "I can't hear clearly" in the voice content Can't hear at all", the current communication quality is judged to be level 1. If it is recognized that the above-mentioned content does not appear in the upstream voice content, it can be determined that the current communication quality is level 3. Then, for different communication quality levels, different Bluetooth audio codes can be corresponding. Optionally, for Level 3, which represents the best communication quality, it can correspond to an audio coding method with a relatively low coding rate. In this way, it can ensure that the audio data can be transmitted to the audio playback device with high fidelity, and it will not consume too much. power and processor resources of many electronic devices. For the lower communication quality level 2 and level 3, when the quality of the audio data received by the electronic device itself is not high, the audio coding method with the relatively highest coding rate is adopted, so that the electronic device can broadcast the audio to the audio. When the device transmits the audio data, try not to distort the audio data, so as to avoid further distortion of the audio data.

需要说明的是,前述的通话特征参数包括通话质量信息是本申请的一种可选的实施方式,除了这种方式外,所述通话特征参数可以包括通话对象等级。那么在这种情况下,所述获取与所述通话特征参数对应的音频编码类型的步骤包括:获取与所述通话对象等级对应的音频编码类型,其中,所述通话对象等级越高,所述通话对象等级所对应的音频编码类型的码率越高。It should be noted that the aforementioned call characteristic parameter including call quality information is an optional implementation of the present application, and in addition to this method, the call characteristic parameter may include the call object level. Then in this case, the step of acquiring the audio coding type corresponding to the call feature parameter includes: acquiring the audio coding type corresponding to the call object level, wherein the higher the call object level, the The code rate of the audio coding type corresponding to the calling object level is higher.

当用户在使用电子设备进行通信的过程中,对于一些通话对象,用户是可以了解到通信对象因为一些原因可能会存在吐词不清楚或者无法流利的进行语音表达。比如,对于年龄较大的通信对象。那么作为一种方式,电子设备的用户可以在电子设备中对于这些用户进行标记,那么当电子设备检测到电子设备处于通话状态下,可以检测到当前的通信对象是是否为已经被标记为前述的吐词不清楚或者无法流利的进行语音表达的用户,或者说已经被标记为需要较高蓝牙音频编码码率的用户,如果是则将该用户识别为用户等级较高的用户,那么气对应的音频编码类型的码率越高。此外,对于一些比较重要的通信对象,例如重要的客户等,用户也可以标记为需要较高蓝牙音频编码码率的用户。When a user communicates using an electronic device, for some call objects, the user can know that the communication object may be unclear or unable to speak fluently for some reasons. For example, for older communication partners. Then, as a way, the user of the electronic device can mark these users in the electronic device, then when the electronic device detects that the electronic device is in a call state, it can detect whether the current communication object has been marked as the aforementioned Users whose words are unclear or cannot express their voice fluently, or who have been marked as users who need a higher Bluetooth audio coding rate, if so, identify the user as a user with a higher user level, then the corresponding The bit rate of the audio encoding type is higher. In addition, for some more important communication objects, such as important customers, the user can also be marked as a user who needs a higher Bluetooth audio coding rate.

此外,作为另外一种方式,通话特征参数包括电子设备所处的电磁环境的复杂度。在本申请中,电子设备可以通过多种方式来判定当前的电磁环境的复杂度。可选的,作为一种方式,电子设备可以判断当前能够搜索到的WLAN网络的数量,将WLAN网络的数量与电磁环境的复杂度进行对应。例如,当WLAN网络的数量处于0到a区间段,那么所对应的复杂度为1,若WLAN网络的数量处于a到b区间段,那么所对应的复杂度为2,依次类推。在这种情况下,越高的复杂度可以对应编码码率越高的音频编码方式。In addition, in another way, the call characteristic parameter includes the complexity of the electromagnetic environment in which the electronic device is located. In this application, the electronic device can determine the complexity of the current electromagnetic environment in various ways. Optionally, as a method, the electronic device may determine the number of currently searchable WLAN networks, and correspond the number of WLAN networks with the complexity of the electromagnetic environment. For example, when the number of WLAN networks is in the interval from 0 to a, the corresponding complexity is 1; if the number of WLAN networks is in the interval from a to b, the corresponding complexity is 2, and so on. In this case, a higher complexity can correspond to an audio coding mode with a higher coding rate.

可以理解的是,WLAN网络和蓝牙都可以工作在2.4GHz频段上。但是,其具体所广播的信号的信道依然会有差别。那么除了通过检测WLAN网络的数量外,电子设备还可以判断当前广播的蓝牙的信号所在信道有多少其他设备也在使用,进而得到电磁环境的复杂度。例如,当信道占用的数量处于0到a区间段,那么所对应的复杂度为1,若信道占用的数量处于a到b区间段,那么所对应的复杂度为2,依次类推。在这种情况下,越高的复杂度可以对应编码码率越高的音频编码方式。可以理解的是,其中信道占用是指当前当前电子设备广播蓝牙信号所使用的信道同时有其他电子设备也在使用的情况下,其他电子设备的数量。Understandably, both WLAN networks and Bluetooth can work on the 2.4GHz band. However, the channel of the specific broadcast signal will still be different. Then, in addition to detecting the number of WLAN networks, the electronic device can also determine how many other devices are also using the channel where the currently broadcast Bluetooth signal is located, thereby obtaining the complexity of the electromagnetic environment. For example, when the number of channels occupied is in the interval from 0 to a, the corresponding complexity is 1. If the number of channels occupied is in the interval from a to b, the corresponding complexity is 2, and so on. In this case, a higher complexity can correspond to an audio coding mode with a higher coding rate. It can be understood that the channel occupancy refers to the number of other electronic devices when the channel currently used by the current electronic device to broadcast the Bluetooth signal is also used by other electronic devices.

步骤S130:基于所述音频编码类型对向音频播放设备传输的通话音频数据进行编码。Step S130: Encode the call audio data transmitted to the audio playback device based on the audio encoding type.

作为一种方式,电子设备可以在检测到电子设备处于音频播放设备连接状态的情况下,基于所述音频编码类型对向音频播放设备传输的通话音频数据进行编码。其中,需要说明的是,电子设备可以通过自身配置的音频播放模块(例如扬声器或者听筒)来播放音频,也可以将音频数据传递给外部的音频播放设备,以便外部的音频播放设备对音频数据进行播放。那么在这种情况下,音频播放设备连接状态用于表征电子设备当前是将音频数据传输给外部的音频播放设备进行播放。In one way, the electronic device may encode the call audio data transmitted to the audio playback device based on the audio encoding type when detecting that the electronic device is in the audio playback device connection state. Among them, it should be noted that the electronic device can play audio through its own configured audio playback module (such as a speaker or an earpiece), and can also transmit audio data to an external audio playback device, so that the external audio playback device can perform audio data playback on the audio data. play. In this case, the audio playback device connection status is used to indicate that the electronic device is currently transmitting audio data to an external audio playback device for playback.

其中,外部的音频播放设备与电子设备处于有线或者无线的连接状态,均可以触发电子设备进入到音频播放设备连接状态。其中,无线的方式包括基于IEEE802.11协议连接,或者基于蓝牙通信协议连接。Wherein, if the external audio playback device and the electronic device are in a wired or wireless connection state, the electronic device can be triggered to enter the audio playback device connection state. The wireless manner includes connection based on the IEEE802.11 protocol, or connection based on the Bluetooth communication protocol.

那么对于基于蓝牙通信协议连接的情况下,作为一种方式,检测电子设备是否通过蓝牙连接有蓝牙设备,若检测到电子设备连接有蓝牙设备,检测所述蓝牙设备的类型是否为音频设备类型,若是,则判断电子设备处于音频播放设备连接状态。例如,在基于android操作系统的电子设备中,可以通过基于实例化BluetoothClass.Device类所得到的返回值来确定当前通过蓝牙连接的设备类型。若返回的值为AUDIO_VIDEO_CAMCORDER,则表征为图像采集设备。若返回的值为AUDIO_VIDEO_CAR_AUDIO,则表征为车载设备。若返回的值为AUDIO_VIDEO_HIFI_AUDIO,则表征为音频播放设备或者视频播放设备。若返回的值为AUDIO_VIDEO_MICROPHONE,则表征为麦克风。Then, in the case of connection based on the Bluetooth communication protocol, as a way to detect whether the electronic device is connected to a Bluetooth device through Bluetooth, if it is detected that the electronic device is connected to a Bluetooth device, it is detected whether the type of the Bluetooth device is an audio device type, If so, it is determined that the electronic device is in the audio playback device connection state. For example, in an electronic device based on the android operating system, the type of the device currently connected via Bluetooth can be determined based on the return value obtained by instantiating the BluetoothClass.Device class. If the returned value is AUDIO_VIDEO_CAMCORDER, it is characterized as an image acquisition device. If the returned value is AUDIO_VIDEO_CAR_AUDIO, it is a vehicle-mounted device. If the returned value is AUDIO_VIDEO_HIFI_AUDIO, it is characterized as an audio playback device or a video playback device. If the returned value is AUDIO_VIDEO_MICROPHONE, it represents the microphone.

本申请提供的一种编码控制方法,在通话状态下,通过获取当前的通话特征参数,再获取与所述通话特征参数对应的音频编码类型,然后基于所述音频编码类型对向音频播放设备传输的通话音频数据进行编码。从而使得在将通话过程的音频数据传输给音频播放设备的过程中,可以根据通话特征参数来确定对于要传输给音频播放设备的音频数据的音频编码类型,从而使得音频编码类型的确定可以更加的灵活。In an encoding control method provided by the present application, in a call state, the current call feature parameter is obtained, the audio encoding type corresponding to the call feature parameter is obtained, and then the audio encoding type is transmitted to the audio playback device based on the audio encoding type. The call audio data is encoded. Therefore, in the process of transmitting the audio data of the call process to the audio playback device, the audio coding type for the audio data to be transmitted to the audio playback device can be determined according to the call characteristic parameter, so that the determination of the audio coding type can be more convenient. flexible.

请参阅图4,本申请提供的一种编码控制方法,应用于电子设备,所述方法包括:Please refer to FIG. 4 , a coding control method provided by the present application is applied to an electronic device, and the method includes:

步骤S210:在通话状态下,检测所述电子设备是否处于车载模式。Step S210 : in a call state, detect whether the electronic device is in a vehicle-mounted mode.

其中,电子设备可以通过多种方式来判定所在车辆是否处于行驶状态。作为一种方式,当电子设备检测其所安装的导航应用程序开启导航模式或者开始导航时,判定车辆处于行驶状态。其中,电子设备如果在导航开始时刻开始就实时都采集驾驶员的面部特征参数,会消耗更多的电量。并且,在驾驶的开始时刻,驾驶员不易出现驾驶疲劳,驾驶疲劳现象更容易出现在当车辆在较长时间段处于直线行驶过程中,则作为一种方式,电子设备在检测到其所安装的导航应用程序开启导航模式或者开始导航的情况下,进一步检测到在在导航路径上在当前位置以后的路径中有超过预设长度的直行路段时,开始获取驾驶员的面部特征参数。其中,直行路段为在包括的路径中不需要进行变道或者转直角弯的路段。Wherein, the electronic device can determine whether the vehicle in which it is located is in a driving state in various ways. In one way, when the electronic device detects that the installed navigation application program has turned on the navigation mode or starts navigation, it is determined that the vehicle is in a driving state. Among them, if the electronic device collects the driver's facial feature parameters in real time at the start of navigation, it will consume more power. Moreover, at the beginning of driving, the driver is less likely to experience driving fatigue, and the phenomenon of driving fatigue is more likely to occur when the vehicle is driving in a straight line for a long period of time. When the navigation application turns on the navigation mode or starts the navigation, it further detects that there is a straight road section exceeding the preset length on the route after the current position on the navigation route, and starts to obtain the facial feature parameters of the driver. The straight road segment is a road segment that does not need to change lanes or turn right-angle turns in the included route.

作为另外一种方式,电子设备可以在检测到电子设备处于预设频率的抖动时,判定其所在的车辆处于行驶状态。可以理解的是,当车辆处于行驶状态时,会处于相对抖动的状态,且抖动频率会在一定范围内波动,则电子设备检测到自身处于该一定范围内的抖动时,则可以判定所在的车辆已经处于形式状态。In another manner, the electronic device may determine that the vehicle in which the electronic device is located is in a driving state when it is detected that the electronic device is shaking at a preset frequency. It can be understood that when the vehicle is in a driving state, it will be in a state of relative shaking, and the shaking frequency will fluctuate within a certain range. When the electronic device detects that it is shaking within a certain range, it can determine the vehicle it is in. already in form.

步骤S220:若检测到所述电子设备不处于所述车载模式,以基于默认的音频编码类型对向音频播放设备传输的通话音频数据进行编码。Step S220: If it is detected that the electronic device is not in the vehicle-mounted mode, encode the call audio data transmitted to the audio playback device based on the default audio encoding type.

步骤S230:若检测到所述电子设备处于所述车载模式,获取当前的通话特征参数。Step S230: If it is detected that the electronic device is in the vehicle-mounted mode, obtain current call feature parameters.

步骤S240:获取与所述通话特征参数对应的音频编码类型。Step S240: Acquire the audio coding type corresponding to the call feature parameter.

步骤S250:基于所述音频编码类型对向音频播放设备传输的通话音频数据进行编码。Step S250: Encode the call audio data transmitted to the audio playback device based on the audio encoding type.

本申请提供的一种编码控制方法,在通话状态下,检测电子设备是否处于车载模式,若检测到处于车载模式再通过获取当前的通话特征参数,再获取与所述通话特征参数对应的音频编码类型,然后基于所述音频编码类型对向音频播放设备传输的通话音频数据进行编码。从而使得在将通话过程的音频数据传输给音频播放设备的过程中,可以根据通话特征参数来确定对于要传输给音频播放设备的音频数据的音频编码类型,从而使得音频编码类型的确定可以更加的灵活。并且,可以在车载模式下选择传输质量更好的编码方式,可以使得用户可以更好的听清楚音频内容,使得用户不需要分心去辨识所听到的内容,提升了驾驶的安全性。In an encoding control method provided by the present application, in a call state, it is detected whether an electronic device is in a vehicle-mounted mode, and if it is detected that it is in a vehicle-mounted mode, the current call feature parameter is obtained, and then the audio code corresponding to the call feature parameter is obtained. type, and then encode the call audio data transmitted to the audio playback device based on the audio encoding type. Therefore, in the process of transmitting the audio data of the call process to the audio playback device, the audio coding type for the audio data to be transmitted to the audio playback device can be determined according to the call characteristic parameter, so that the determination of the audio coding type can be more convenient. flexible. In addition, an encoding method with better transmission quality can be selected in the in-vehicle mode, so that the user can better hear the audio content, so that the user does not need to be distracted to recognize the content heard, which improves the safety of driving.

请参阅图5,本申请提供的一种传输控制装置300,运行于电子设备,所述装置300包括:参数获取单元310、编码类型获取单元320以及传输控制单元330。Referring to FIG. 5 , a transmission control apparatus 300 provided by the present application operates on an electronic device. The apparatus 300 includes: a parameter acquisition unit 310 , an encoding type acquisition unit 320 , and a transmission control unit 330 .

参数获取单元310,用于在通话状态下,获取当前的通话特征参数。The parameter obtaining unit 310 is configured to obtain current call feature parameters in a call state.

编码类型获取单元320,用于获取与所述通话特征参数对应的音频编码类型。The encoding type acquiring unit 320 is configured to acquire the audio encoding type corresponding to the call feature parameter.

作为一种方式,所述通话特征参数包括通话质量信息。编码类型获取单元320,具体用于获取与所述通话质量信息对应的音频编码类型,其中,所述通话质量信息所表征的通话质量越低,所述通话质量信息所对应的音频编码类型的码率越高。In one way, the call characteristic parameter includes call quality information. The encoding type acquiring unit 320 is specifically configured to acquire the audio encoding type corresponding to the call quality information, wherein the lower the call quality represented by the call quality information, the code of the audio encoding type corresponding to the call quality information higher rate.

可选的,参数获取单元310,具体用于获取所述通话过程中的下行语音的参数,根据所述下行语音的参数获取通话质量信息。Optionally, the parameter obtaining unit 310 is specifically configured to obtain parameters of the downlink voice during the call, and obtain call quality information according to the parameters of the downlink voice.

可选的,参数获取单元310,具体用于识别所述通话过程中上行语音,根据在所述上行语音中识别出的内容获取通话质量信息。Optionally, the parameter obtaining unit 310 is specifically configured to identify the uplink voice during the call, and obtain the call quality information according to the content identified in the uplink voice.

作为另外一种方式,所述通话特征参数包括通话对象等级。编码类型获取单元320,具体用于获取与所述通话对象等级对应的音频编码类型,其中,所述通话对象等级越高,所述通话对象等级所对应的音频编码类型的码率越高。In another manner, the call characteristic parameter includes a call object level. The encoding type acquiring unit 320 is specifically configured to acquire the audio encoding type corresponding to the call object level, wherein the higher the call object level, the higher the bit rate of the audio encoding type corresponding to the call object level.

传输控制单元330,用于基于所述音频编码类型对向音频播放设备传输的通话音频数据进行编码。The transmission control unit 330 is configured to encode the call audio data transmitted to the audio playback device based on the audio encoding type.

请参阅图6,本申请提供的一种传输控制装置400,运行于电子设备,所述装置400包括:Please refer to FIG. 6 , a transmission control apparatus 400 provided by the present application operates on an electronic device, and the apparatus 400 includes:

通话模式检测单元410,用于检测电子设备是否处于通话模式。The call mode detection unit 410 is used to detect whether the electronic device is in the call mode.

车载模式检测单元420,用于通话模式检测单元410检测到电子设备处于通话模式时,检测所述电子设备是否处于车载模式。The in-vehicle mode detection unit 420 is configured to detect whether the electronic device is in the in-vehicle mode when the call mode detection unit 410 detects that the electronic device is in the in-vehicle mode.

传输控制单元430,用于若车载模式检测单元420检测到所述电子设备不处于所述车载模式,以基于默认的音频编码类型对向音频播放设备传输的通话音频数据进行编码。The transmission control unit 430 is configured to encode the call audio data transmitted to the audio playback device based on the default audio encoding type if the in-vehicle mode detection unit 420 detects that the electronic device is not in the in-vehicle mode.

参数获取单元440,用于若车载模式检测单元420检测到所述电子设备处于所述车载模式,获取当前的通话特征参数;The parameter acquisition unit 440 is configured to acquire the current call feature parameter if the vehicle-mounted mode detection unit 420 detects that the electronic device is in the vehicle-mounted mode;

编码类型获取单元450,用于获取与所述通话特征参数对应的音频编码类型。The encoding type acquiring unit 450 is configured to acquire the audio encoding type corresponding to the call feature parameter.

传输控制单元430,还用于基于所述音频编码类型对向音频播放设备传输的通话音频数据进行编码。The transmission control unit 430 is further configured to encode the call audio data transmitted to the audio playback device based on the audio encoding type.

需要说明的是,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and units, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here. . In several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling. In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.

需要说明的是,本申请中具体如何根据音频编码类型对音频数据进行编码是可以采用现有的技术,本申请就不再细述。It should be noted that, in this application, how to encode the audio data according to the audio encoding type can adopt the existing technology, which will not be described in detail in this application.

综上所述,本申请提供的一种编码控制方法、装置以及电子设备,进入预设的内容播放场景后,检测所述电子设备是否处于音频播放设备连接状态,若检测到所述电子设备处于音频播放设备连接状态,则减小将所述音频数据传输给音频播放设备的过程中所途径的缓冲节点的缓冲阈值,从而使得电子设备在播放图像数据以及与该图像数据对应的音频数据时,可以在需要将音频数据传输给音频播放设备的情况下,减小表征触发开始对缓冲节点已经缓冲的音频数据进行处理的值,从而使得对于在缓冲节点的数据可以被更快的处理,以便提升缓冲节点中数据被处理的频率,从而使得将音频数据能够更快的被音频设备播放出来,减小音频播放延迟。To sum up, the encoding control method, device and electronic device provided by the present application, after entering the preset content playback scene, detect whether the electronic device is in the audio playback device connection state, if it is detected that the electronic device is in the audio playback device connection state, The connection state of the audio playback device reduces the buffering threshold of the buffer node in the process of transmitting the audio data to the audio playback device, so that when the electronic device plays the image data and the audio data corresponding to the image data, In the case where audio data needs to be transmitted to the audio playback device, the value that characterizes the trigger to start processing the audio data that has been buffered by the buffer node can be reduced, so that the data in the buffer node can be processed faster, in order to improve The frequency at which the data in the buffer node is processed, so that the audio data can be played out by the audio device faster and the audio playback delay is reduced.

下面将结合图7对本申请提供的一种电子设备进行说明。An electronic device provided by the present application will be described below with reference to FIG. 7 .

请参阅图7,基于上述的编码控制方法、装置,本申请实施例还提供的另一种可以执行前述终端控制方法的电子设备100。电子设备100包括相互耦合的一个或多个(图中仅示出一个)处理器102以及存储器104。其中,该存储器104中存储有可以执行前述实施例中内容的程序,而处理器102可以执行该存储器104中存储的程序。Referring to FIG. 7 , based on the foregoing encoding control method and apparatus, another electronic device 100 that can execute the foregoing terminal control method is further provided by an embodiment of the present application. The electronic device 100 includes one or more (only one shown in the figure) processors 102 and a memory 104 coupled to each other. Wherein, the memory 104 stores a program that can execute the content in the foregoing embodiments, and the processor 102 can execute the program stored in the memory 104 .

其中,处理器102可以包括一个或者多个处理核。处理器102利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器104内的指令、程序、代码集或指令集,以及调用存储在存储器104内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器102可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(ProgrammableLogic Array,PLA)中的至少一种硬件形式来实现。处理器102可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器102中,单独通过一块通信芯片进行实现。The processor 102 may include one or more processing cores. The processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 104, and calling the data stored in the memory 104. Various functions of the electronic device 100 and processing data. Optionally, the processor 102 may use at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA) implemented in hardware. The processor 102 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing of the display content; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 102, and is implemented by a communication chip alone.

存储器104可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器104可用于存储指令、程序、代码、代码集或指令集。存储器104可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 104 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 104 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing the operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area may also store data created by the terminal 100 during use (such as phone book, audio and video data, chat record data) and the like.

所述无线模块106用于接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯,例如和音频播放设备进行通讯。所述无线模块106可包括各种现有的用于执行这些功能的电路元件,例如,天线、射频收发器、数字信号处理器、加密/解密芯片、用户身份模块(SIM)卡、存储器等等。所述无线模块106可与各种网络如互联网、企业内部网、无线网络进行通讯或者通过无线网络与其他设备进行通讯。上述的无线网络可包括蜂窝式电话网、无线局域网或者城域网。上述的无线网络可以使用各种通信标准、协议及技术,包括但并不限于IEEE 802协议以及蓝牙协议,甚至可包括那些当前仍未被开发出来的协议。The wireless module 106 is used for receiving and sending electromagnetic waves, realizing mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, for example, communicate with an audio playback device. The wireless module 106 may include various existing circuit elements for performing these functions, eg, antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, etc. . The wireless module 106 can communicate with various networks such as the Internet, an intranet, a wireless network, or with other devices through a wireless network. The aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network. The above-mentioned wireless network may use various communication standards, protocols and technologies, including but not limited to the IEEE 802 protocol and the Bluetooth protocol, and may even include those protocols that have not yet been developed.

再者,该音频电路110还可以用于对于要通过蓝牙(当无线模块106基于蓝牙通信协议传输数据时)传输的音频数据进行编码,其中,编码时所采用的音频编码类型可以根据前述实施例提供的方式得到。Furthermore, the audio circuit 110 can also be used to encode the audio data to be transmitted through Bluetooth (when the wireless module 106 transmits data based on the Bluetooth communication protocol), wherein the audio encoding type used in the encoding can be according to the foregoing embodiments. provided by the way.

请参考图8,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 8 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 800 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.

计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质800包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质800具有执行上述方法中的任何方法步骤的程序代码810的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码810可以例如以适当形式进行压缩。The computer readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 800 includes a non-transitory computer-readable storage medium. Computer readable storage medium 800 has storage space for program code 810 to perform any of the method steps in the above-described methods. The program codes can be read from or written to one or more computer program products. Program code 810 may be compressed, for example, in a suitable form.

就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子设备),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。For the purposes of this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport the program for use by or in connection with an instruction execution system, apparatus, or apparatus. More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections with one or more wiring (electronic devices), portable computer disk cartridges (magnetic devices), random access memory (RAM), Read Only Memory (ROM), Erasable Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program may be printed, as the paper or other medium may be optically scanned, for example, followed by editing, interpretation, or other suitable medium as necessary process to obtain the program electronically and then store it in computer memory.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (7)

1.一种编码控制方法,其特征在于,应用于电子设备,所述方法包括:1. a coding control method, is characterized in that, is applied to electronic equipment, and described method comprises: 在通话状态下,检测所述电子设备是否处于车载模式;In a call state, detecting whether the electronic device is in a vehicle-mounted mode; 若检测到所述电子设备处于所述车载模式,获取当前的通话特征参数,所述通话特征参数包括通话质量信息;If it is detected that the electronic device is in the vehicle-mounted mode, obtain the current call feature parameters, where the call feature parameters include call quality information; 获取与所述通话质量信息对应的音频编码类型,其中,所述通话质量信息所表征的通话质量越低,所述通话质量信息所对应的音频编码类型的码率越高;Acquiring the audio coding type corresponding to the call quality information, wherein the lower the call quality represented by the call quality information, the higher the bit rate of the audio coding type corresponding to the call quality information; 基于所述音频编码类型对向音频播放设备传输的通话音频数据进行编码;encoding the call audio data transmitted to the audio playback device based on the audio encoding type; 若检测到所述电子设备不处于所述车载模式,基于默认的音频编码类型对向音频播放设备传输的通话音频数据进行编码。If it is detected that the electronic device is not in the vehicle-mounted mode, the call audio data transmitted to the audio playback device is encoded based on the default audio encoding type. 2.根据权利要求1所述的方法,其特征在于,所述获取当前的通话特征参数的步骤包括:2. The method according to claim 1, wherein the step of acquiring the current call characteristic parameter comprises: 获取所述通话过程中的下行语音的参数;acquiring the parameters of the downlink voice during the call; 根据所述下行语音的参数获取通话质量信息。The call quality information is acquired according to the parameters of the downlink voice. 3.根据权利要求1所述的方法,其特征在于,所述获取当前的通话特征参数的步骤包括:3. The method according to claim 1, wherein the step of acquiring the current call characteristic parameter comprises: 识别所述通话过程中上行语音;Recognizing the uplink voice during the call; 根据在所述上行语音中识别出的内容获取通话质量信息。The call quality information is acquired according to the content identified in the uplink speech. 4.根据权利要求1所述的方法,其特征在于,所述检测所述电子设备是否处于车载模式的步骤包括:4. The method according to claim 1, wherein the step of detecting whether the electronic device is in a vehicle-mounted mode comprises: 检测所述电子设备是否处于导航状态;detecting whether the electronic device is in a navigation state; 或者检测所述电子设备是否处于预设的抖动状态且以预设的速度移动。Or detect whether the electronic device is in a preset shaking state and moves at a preset speed. 5.一种传输控制装置,其特征在于,运行于电子设备,所述装置包括:5. A transmission control device, characterized in that, running on electronic equipment, the device comprising: 车载模式检测单元,用于在通话状态下,检测所述电子设备是否处于车载模式;an in-vehicle mode detection unit, configured to detect whether the electronic device is in an in-vehicle mode in a call state; 参数获取单元,用于若检测到所述电子设备处于所述车载模式,获取当前的通话特征参数,所述通话特征参数包括通话质量信息;a parameter acquisition unit, configured to acquire current call feature parameters if it is detected that the electronic device is in the vehicle-mounted mode, where the call feature parameters include call quality information; 编码类型获取单元,用于获取与所述通话质量信息对应的音频编码类型,其中,所述通话质量信息所表征的通话质量越低,所述通话质量信息所对应的音频编码类型的码率越高;An encoding type acquiring unit, configured to acquire an audio encoding type corresponding to the call quality information, wherein the lower the call quality represented by the call quality information, the higher the bit rate of the audio encoding type corresponding to the call quality information. high; 传输控制单元,用于基于所述音频编码类型对向音频播放设备传输的通话音频数据进行编码;a transmission control unit, configured to encode the call audio data transmitted to the audio playback device based on the audio encoding type; 所述传输控制单元,还用于若检测到所述电子设备不处于所述车载模式,基于默认的音频编码类型对向音频播放设备传输的通话音频数据进行编码。The transmission control unit is further configured to encode the call audio data transmitted to the audio playback device based on a default audio encoding type if it is detected that the electronic device is not in the vehicle-mounted mode. 6.一种电子设备,其特征在于,包括一个或多个处理器以及存储器;6. An electronic device, comprising one or more processors and a memory; 一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序配置用于执行权利要求1-4任一所述的方法。One or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to perform the method of any of claims 1-4. 7.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,其中,在所述程序代码被处理器运行时执行权利要求1-4任一所述的方法。7. A computer-readable storage medium, wherein a program code is stored in the computer-readable storage medium, wherein, when the program code is run by a processor, any one of claims 1-4 is executed method.
CN201810925240.0A 2018-08-14 2018-08-14 Code control method, device and electronic device Active CN109102816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810925240.0A CN109102816B (en) 2018-08-14 2018-08-14 Code control method, device and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810925240.0A CN109102816B (en) 2018-08-14 2018-08-14 Code control method, device and electronic device

Publications (2)

Publication Number Publication Date
CN109102816A CN109102816A (en) 2018-12-28
CN109102816B true CN109102816B (en) 2020-12-29

Family

ID=64849650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810925240.0A Active CN109102816B (en) 2018-08-14 2018-08-14 Code control method, device and electronic device

Country Status (1)

Country Link
CN (1) CN109102816B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110072011B (en) * 2019-04-24 2021-07-20 Oppo广东移动通信有限公司 Bit rate adjustment method and related products
CN110689899A (en) * 2019-09-17 2020-01-14 重庆百瑞互联电子技术有限公司 Dynamic adjustment method and system for Bluetooth audio
CN111081264B (en) * 2019-12-06 2022-03-29 北京明略软件系统有限公司 Voice signal processing method, device, equipment and storage medium
CN115223579B (en) * 2021-04-20 2025-09-12 华为技术有限公司 A codec negotiation and switching method
CN114464211A (en) * 2022-02-16 2022-05-10 深圳市瑞云科技有限公司 Method for testing audio quality of cloud game
CN120108406B (en) * 2023-11-30 2025-11-28 荣耀终端股份有限公司 Audio processing methods, in-vehicle audio equipment, electronic devices and vehicles

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728598A (en) * 2004-07-31 2006-02-01 西门子(中国)有限公司 Method for adjusting coding speed in procedure of voice mobile communication
CN102752809A (en) * 2011-04-21 2012-10-24 联芯科技有限公司 Uplink adaptive multiple rate (AMR) regulation and control method and system
CN104219402A (en) * 2014-02-14 2014-12-17 爱沟通网络科技有限公司 System for improving VoIP communication quality
CN105023579A (en) * 2014-04-30 2015-11-04 中国电信股份有限公司 Voice coding realization method and apparatus in voice communication, and communication terminal
CN105280188A (en) * 2014-06-30 2016-01-27 美的集团股份有限公司 Audio signal encoding method and system based on terminal operating environment
CN105374363A (en) * 2014-08-25 2016-03-02 广东美的集团芜湖制冷设备有限公司 Audio signal encoding method and system
CN106028401A (en) * 2016-05-09 2016-10-12 Tcl移动通信科技(宁波)有限公司 Selection method and system for voice coding rate in call
CN107105360A (en) * 2017-06-20 2017-08-29 惠州Tcl移动通信有限公司 A kind of Anti-interference earphone system and its anti-interference method
CN107170460A (en) * 2017-06-30 2017-09-15 深圳Tcl新技术有限公司 Sound quality adjusting method, system, host side and storage medium
CN107404462A (en) * 2016-05-20 2017-11-28 北京小米移动软件有限公司 Adjust the method and device of session parameter

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE9601606D0 (en) * 1996-04-26 1996-04-26 Ericsson Telefon Ab L M Ways for radio telecommunication systems
KR100294701B1 (en) * 1998-03-25 2001-07-12 서평원 method for removal interferemce seguential in CDMA system with multi transmission loss
JP3273599B2 (en) * 1998-06-19 2002-04-08 沖電気工業株式会社 Speech coding rate selector and speech coding device
JP2000091985A (en) * 1998-09-08 2000-03-31 Hitachi Ltd Power control method for communication system
JP3805205B2 (en) * 2000-04-06 2006-08-02 株式会社エヌ・ティ・ティ・ドコモ Method and apparatus for measuring communication quality in CDMA cellular system
CN1275400C (en) * 2002-12-31 2006-09-13 中兴通讯股份有限公司 Velocity regulating method of speech sound self adaptive multivelocity
CN104837042B (en) * 2015-05-06 2018-01-16 腾讯科技(深圳)有限公司 The coding method of digital multimedia data and device
CN106816155B (en) * 2016-12-23 2020-04-24 维沃移动通信有限公司 Method and device for improving signal-to-noise ratio of voice transmission

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1728598A (en) * 2004-07-31 2006-02-01 西门子(中国)有限公司 Method for adjusting coding speed in procedure of voice mobile communication
CN102752809A (en) * 2011-04-21 2012-10-24 联芯科技有限公司 Uplink adaptive multiple rate (AMR) regulation and control method and system
CN104219402A (en) * 2014-02-14 2014-12-17 爱沟通网络科技有限公司 System for improving VoIP communication quality
CN105023579A (en) * 2014-04-30 2015-11-04 中国电信股份有限公司 Voice coding realization method and apparatus in voice communication, and communication terminal
CN105280188A (en) * 2014-06-30 2016-01-27 美的集团股份有限公司 Audio signal encoding method and system based on terminal operating environment
CN105374363A (en) * 2014-08-25 2016-03-02 广东美的集团芜湖制冷设备有限公司 Audio signal encoding method and system
CN106028401A (en) * 2016-05-09 2016-10-12 Tcl移动通信科技(宁波)有限公司 Selection method and system for voice coding rate in call
CN107404462A (en) * 2016-05-20 2017-11-28 北京小米移动软件有限公司 Adjust the method and device of session parameter
CN107105360A (en) * 2017-06-20 2017-08-29 惠州Tcl移动通信有限公司 A kind of Anti-interference earphone system and its anti-interference method
CN107170460A (en) * 2017-06-30 2017-09-15 深圳Tcl新技术有限公司 Sound quality adjusting method, system, host side and storage medium

Also Published As

Publication number Publication date
CN109102816A (en) 2018-12-28

Similar Documents

Publication Publication Date Title
CN109102816B (en) Code control method, device and electronic device
EP3629561B1 (en) Data transmission method and system, and bluetooth headphone
CN109445740B (en) Audio playback method, device, electronic device and storage medium
CN111199743B (en) Audio coding format determining method and device, storage medium and electronic equipment
CN109246671B (en) Data transmission method, device and system
CN109150399B (en) Data transmission method, apparatus, electronic device and computer readable medium
US10950238B2 (en) Bluetooth speaker base, method and system for controlling thereof
KR20230125103A (en) Method for operating a bluetooth device
CN109450851B (en) Device connection method, electronic device, and computer-readable medium
JP2008534999A (en) Wireless communication apparatus having voice-text conversion function
CN109107158B (en) Sound effect processing method and device, electronic equipment and computer readable storage medium
EP4462889A2 (en) Method for operating a bluetooth device
CN109144463B (en) Transmission control method and device and electronic equipment
CN103402171A (en) Method and terminal for sharing background music during communication
US20080299908A1 (en) Communication terminal
CN110189753A (en) Bluetooth speaker and its control method, system and storage medium
CN102131305A (en) Method and system for realizing voice service
CN105895128B (en) A playback method and related device
CN110880949B (en) Bluetooth communication method, device and system
US7738645B2 (en) Mobile terminal and multimedia contents service providing system and method for call connection waiting using the same
CN115841825A (en) Voice transmission method, readable medium and electronic device
CN110366752B (en) A voice frequency division transmission method, source end, playback end, source end circuit and playback end circuit
CN109150400B (en) Data transmission method, apparatus, electronic device and computer readable medium
US20060044120A1 (en) Car audio system and method combining with MP3 player
CN104468479A (en) Terminal communication method, device and system, and terminal

Legal Events

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