WO2018076265A1 - Method for adjusting call audio node, and terminal device - Google Patents

Method for adjusting call audio node, and terminal device Download PDF

Info

Publication number
WO2018076265A1
WO2018076265A1 PCT/CN2016/103710 CN2016103710W WO2018076265A1 WO 2018076265 A1 WO2018076265 A1 WO 2018076265A1 CN 2016103710 W CN2016103710 W CN 2016103710W WO 2018076265 A1 WO2018076265 A1 WO 2018076265A1
Authority
WO
WIPO (PCT)
Prior art keywords
voice
frame
module
node
data
Prior art date
Application number
PCT/CN2016/103710
Other languages
French (fr)
Chinese (zh)
Inventor
杨霖
韩晓
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201680089330.XA priority Critical patent/CN109716666A/en
Priority to PCT/CN2016/103710 priority patent/WO2018076265A1/en
Publication of WO2018076265A1 publication Critical patent/WO2018076265A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/06Receivers
    • H04B1/16Circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a method for adjusting a call audio node and a terminal device.
  • Voice call technology is a must-have feature for smartphones.
  • voice call technology in order to improve the call quality and the call effect, more and more new devices are added to the call, which leads to an increase in power consumption during the call. Therefore, how to ensure the quality of the call Reducing power consumption during a call is a technical problem to be solved by those skilled in the art.
  • Embodiments of the present invention provide a method for adjusting a call audio node and a terminal device, so as to reduce power consumption during a call on the premise of ensuring call quality.
  • an embodiment of the present invention provides a method for adjusting a call audio node, including: receiving, by a terminal device, a voice frame sent by a network side device, and then determining, by the terminal device, whether the voice frame is a silent frame or a no data frame, or determining the Whether the voice data contained in the voice frame is invalid voice data, if yes, the audio downlink (receiving) path is considered to be in an inactive working state, and the node of the audio downlink path is closed at this time, thereby achieving the purpose of reducing power consumption.
  • the determining, by the terminal device, whether the voice frame is a silent frame or a dataless frame is: determining, by the terminal device, whether the format of the voice frame is a SID format or a No data format; The format of the voice frame is SID format or No data format, and the terminal device determines whether the voice frame is a silent frame or no data frame.
  • the terminal device determines whether the voice data included in the voice frame is invalid voice data, where the terminal device determines the voice data included in the voice frame. Whether the amplitude of the voice data is lower than a set threshold; if the amplitude of the voice data included in the voice frame is lower than a set threshold, the terminal device determines that the voice data included in the voice frame is invalid voice data.
  • the node of the audio downlink path includes an audio algorithm module, a digital-to-analog conversion module, and a voice play module, where the terminal device turns off the node of the audio downlink path, and the terminal device turns off the An audio algorithm module, adjusting the digital to analog conversion module to a low power mode, and turning off the voice playback module.
  • the audio algorithm module includes an echo suppression module, a noise reduction module, and a gain adjustment module.
  • the specific implementation manner of the terminal device to close the audio algorithm module is: the terminal device turns off the echo suppression module. And the noise reduction module, and adjusting the digital gain of the gain adjustment module to zero.
  • the digital-to-analog conversion module includes a Codec chip, a SmartPA chip, and a HIFI chip
  • the terminal device adjusts the digital-to-analog conversion module to a low-power mode.
  • the specific implementation manner is: the terminal device is turned off.
  • the DAC conversion function of the codec chip adjusts the analog gain of the codec chip to zero, adjusts the SmartPA chip to a low power mode, and turns off the HIFI chip.
  • the method further includes:
  • the terminal device opens a node of the audio downlink path.
  • the invention provides a terminal device comprising means for performing the method of the first aspect.
  • the present invention provides a terminal device, where the terminal device includes a processor, and the processor is configured to support the network element to perform a corresponding function in a method for adjusting a call audio node provided by the first aspect.
  • the terminal device can also include a memory for coupling with the processor that holds the necessary program instructions and data for the terminal device.
  • the terminal device can also include a communication interface for the network element to communicate with other devices or communication networks.
  • the present invention provides a computer storage medium for storing computer software instructions for a network element provided by the above fifth aspect, comprising a program designed to perform the above aspects.
  • the solution provided by the present invention can be used to reduce power consumption when the user is currently in a speaking state rather than a listening state, at which time the node of the audio downlink path is closed.
  • FIG. 1 is a schematic flowchart of a method for adjusting a call audio node according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an audio portion of a voice downlink path according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a specific format of a voice data frame according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of an audio downlink path algorithm according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of an audio algorithm module according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an internal structure of a conventional codec chip according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of adding a downlink data buffer according to an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of a method for adjusting a call audio node according to an embodiment of the present invention.
  • FIG. 9 is a schematic flowchart of a method for adjusting a call audio node according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • a terminal device also called a User Equipment (UE) is a device that provides voice and/or data connectivity to a user, for example, a handheld device with a wireless connection function, an in-vehicle device, and the like.
  • UE User Equipment
  • Common terminals include, for example, mobile phones, tablets, notebook computers, PDAs, mobile internet devices (MIDs), wearable devices such as smart watches, smart bracelets, pedometers, and the like.
  • the network side device refers to the node device on the network side.
  • the network element may be a radio access network (RAN) device on the access network side of the cellular network, and the so-called RAN device is a terminal device.
  • the device that enters the wireless network including but not limited to: an evolved Node B (eNB), a radio network controller (RNC), a Node B (NB), and a base station controller (Base) Station Controller (BSC), Base Transceiver Station (BTS), home base station (for example, Home evolved NodeB, or Home Node B, HNB), Baseband Unit (BBU); for example, the network element can also It is a node device in a Wireless Local Area Network (WLAN), such as an access controller (AC), a gateway, or a WIFI access point (AP).
  • WLAN Wireless Local Area Network
  • AC access controller
  • AP WIFI access point
  • the so-called data frame is the protocol data unit of the data link layer. It consists of three parts: the frame header, the data part, and the end of the frame. Where the frame header and the end of the frame contain some necessary control information, such as synchronization information, address information, error control information, etc., and the data portion is voice information, then the language Audio data frame.
  • Multiple means two or more. "and/or”, describing the association relationship of the associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately.
  • the character "/" generally indicates that the contextual object is an "or" relationship.
  • FIG. 1 is a schematic flowchart of a method for adjusting a call audio node according to an embodiment of the present invention, including the following steps:
  • the terminal device receives a voice frame sent by a network side.
  • the terminal device determines whether the voice frame is a silent frame or a no data frame, or determines whether the voice data included in the voice frame is invalid voice data.
  • the terminal device turns off a node of the audio downlink path.
  • the terminal device when the terminal device receives the voice frame sent by the network side device, it first determines whether the voice frame is a silent frame or no data frame, or determines whether the voice data included in the voice frame is Invalid voice data, if it is, the audio downlink (receive) path is considered to be in an inactive working state, and the node of the audio downlink path is closed at this time, thereby achieving the purpose of reducing power consumption.
  • the voice downlink path is divided into two parts, the part is the protocol part and the audio path part.
  • the protocol part is responsible for receiving data frames on the network side, and the audio part is responsible for playing sounds.
  • the audio part mainly includes an audio algorithm module (DSP), a digital-to-analog conversion module (Codec/SmartPA/HIFI), and a playback module (handset/headphone, etc.).
  • DSP audio algorithm module
  • Codec/SmartPA/HIFI digital-to-analog conversion module
  • playback module handset/headphone, etc.
  • the terminal device determines whether the voice frame is a silent frame or a no data frame, where the terminal device determines whether the format of the voice frame is a SID. Format or No data format; if the format of the voice frame is SID format or No data format, the terminal device determines whether the voice frame is a silent frame or no data frame.
  • the voice data frame format is divided into data formats such as Good Speech, SID, No data, and Bad Speech.
  • the voice data frames are different according to different coding modes and different data frame formats, but the voice data frames are received from the network side device in a period of 20 ms, and one SID and seven No data are cyclically received.
  • each voice data frame has a period of 20ms.
  • the specific format is shown in Figure 3.
  • Figure 3 is a schematic diagram of the specific format of the voice data frame.
  • the terminal device dynamically configures the audio path to descend all nodes, for example, according to different node module characteristics.
  • the terminal device recognizes that the downlink data frame format is Good Speech or Bad Speech, the terminal device dynamically configures all nodes in the audio path to enter the working state.
  • the terminal device determines whether the voice data included in the voice frame is invalid voice data, where the terminal device determines whether the amplitude of the voice data included in the voice frame is lower than Setting a threshold; if the amplitude of the voice data included in the voice frame is lower than a set threshold, the terminal device determines that the voice data included in the voice frame is invalid voice data.
  • the set threshold value may be, for example, 0, 3, 8, 10, 15, 23, 30 or other values.
  • the terminal device when the terminal device receives the voice frame sent by the network side device, the modem side of the terminal device transmits the voice frame to the DSP algorithm module, and the DSP parses the corresponding PCM voice data from the network data frame.
  • the amplitude of the voice data of the normal call is about 300.
  • the terminal device considers that the voice data included in the downlink voice frame of the network is silent data, and the terminal device is Dynamically configure all nodes of the audio channel to downlink, for example, perform different shutdown/low power/power-off operations according to different node module characteristics.
  • the terminal device dynamically configures the audio. All nodes in the downlink are in the working state.
  • the node of the audio downlink path includes an audio algorithm module, a digital-to-analog conversion module, and a voice play module.
  • the specific implementation manner of the node that closes the audio downlink path in the step S103 is: the terminal device is shut down.
  • the audio algorithm module is configured to adjust the digital to analog conversion module to a low power mode, and to close the voice playback module.
  • the audio path downlink node includes an audio algorithm module, a digital-to-analog conversion module, a voice playback module, and the like.
  • the audio algorithm module mainly involves related operations such as software algorithms, and the specific operations involve shutting down the device driver node, closing the algorithm process/thread, unloading the related audio parameter/algorithm database, and closing the related operations.
  • Digital-to-analog conversion module mainly involves A/D, Codec, SmartPA related filters, etc.
  • the specific operations involve SmartPA low-power setting, turning on and off HIFI chip operation, A/D power-on and power-off operation, Codec low-power setting, and off related FIR, IIR and other filters.
  • HIFI and SmartPA are controlled by I2C interface.
  • the baud rate of I2C interface is generally 400Kbps or 100Kbps.
  • the audio algorithm module includes an echo suppression module, a noise reduction module, and a gain adjustment module, where the terminal device turns off the audio algorithm module, where the terminal device turns off the echo suppression module and the The noise reduction module is described, and the digital gain of the gain adjustment module is adjusted to zero.
  • the audio algorithm includes an uplink algorithm and a downlink algorithm.
  • the structure of the audio downlink path algorithm is generally as shown in FIG. 4 .
  • the network data packet is a data packet sent by the network side device to the terminal device, and the voice decoding module is responsible for parsing the voice information in the network data packet and transmitting the voice information to the voice algorithm module, and the voice algorithm module performs algorithm processing on the received voice data.
  • the downlink algorithm is different according to the hardware platform, and the audio algorithm module structure is slightly different, but the whole can be divided into the echo suppression module, the noise reduction module and the gain adjustment module, as shown in FIG. 5 . Since the audio algorithm modules are all algorithm modules, the switch control can be directly performed by software.
  • the audio algorithm module sends a command or invokes a correlation.
  • the software interface close the echo suppression module and the noise reduction module algorithm, so that the voice data is directly transmitted through, and the digital gain is adjusted to zero, thereby reducing the power consumption.
  • the same shutdown module operation or the close gain operation is also performed, thereby reducing the power consumption.
  • the digital-to-analog conversion module includes a Codec chip, a SmartPA chip, and a HIFI chip, where the terminal device adjusts the digital-to-analog conversion module to a low-power mode, where the terminal device turns off the The DAC conversion function of the codec chip adjusts the analog gain of the codec chip to zero, adjusts the SmartPA chip to a low power mode, and turns off the HIFI chip function.
  • the codec chip and the HIFI chip are mainly responsible for digital-to-analog conversion of voice data, including analog gain, AD conversion and the like.
  • the uplink and downlink modules operate simultaneously.
  • the main operations involve analog gain, DA conversion, and related filtering.
  • the internal structure of the conventional codec is shown in Figure 6. Among them, the codec operation can not simply perform power-on and power-off operations, which will affect normal calls.
  • the program controls the downlink path to turn off the conversion function of the codec chip DAC, and simultaneously adjusts the analog gain to zero, and dynamically turns off the codec chip to pass the conversion function, thereby achieving the effect of reducing power consumption.
  • the SmartPA chip is usually an audio amplifier that amplifies an analog sound signal, but ensures that the amplified signal does not appear distorted.
  • the SmartPA can be powered off. However, in general, in order to avoid the introduction of noise and the like, the power-on and power-off operations are not directly performed.
  • the SmartPA can be configured for sleep/low power consumption and normal operation. Therefore, when detecting no sound in the downlink, the SmartPA is dynamically controlled to enter the low power mode through the I2C interface. When the downlink call is resumed, the normal amplification function of the SmartPA is restored through the I2C interface. Through this dynamic adjustment mode, the SmartPA enters a low power/sleep state when the downlink is silent, thereby achieving the purpose of reducing power consumption.
  • the method further includes:
  • the terminal device opens a node of the audio downlink path.
  • each module when performing audio channel dynamic operation, the electrical characteristics of each module are different due to different hardware.
  • Some modules can operate instantaneously and complete operations within a few milliseconds (ms).
  • Some modules operate for a slightly longer time, which may be Ten milliseconds (ms) or longer, so when performing dynamic configuration, you need to increase the downlink data buffer to ensure the integrity of voice playback.
  • the specific structure is shown in Figure 7. Among them, the FIFO shown in FIG. 7 is a downlink data buffer.
  • the node of the audio downlink path includes an audio algorithm module, a digital-to-analog conversion module, and a voice play module, including:
  • the terminal device receives a voice frame sent by a network side device.
  • the terminal device determines whether a format of the voice frame is an SID format or a No data format.
  • step S803 is performed.
  • step S806 is performed.
  • the audio algorithm module includes an echo suppression module, a noise reduction module, and a gain adjustment module, the terminal device turns off the echo suppression module and the noise reduction module, and adjusts a digital gain of the gain adjustment module to zero. .
  • the digital-to-analog conversion module includes a Codec chip, a SmartPA chip, and a HIFI chip.
  • the terminal device turns off the DAC conversion function of the codec chip, adjusts the analog gain of the codec chip to zero, and adjusts the SmartPA chip. To the low power mode, and to shut down the HIFI chip.
  • the terminal device turns off the voice play module.
  • the terminal device opens a node of an audio downlink path.
  • the node of the audio downlink path includes an audio algorithm module, a digital-to-analog conversion module, and a voice play module, including:
  • the terminal device receives a voice frame sent by the network side device.
  • the terminal device determines whether a magnitude of the voice data included in the voice frame is lower than a set threshold.
  • step S903 is performed.
  • step S906 is performed.
  • the audio algorithm module includes an echo suppression module, a noise reduction module, and a gain adjustment module, the terminal device turns off the echo suppression module and the noise reduction module, and adjusts a digital gain of the gain adjustment module to zero. .
  • the digital-to-analog conversion module includes a Codec chip, a SmartPA chip, and a HIFI chip.
  • the terminal device turns off the DAC conversion function of the codec chip, adjusts the analog gain of the codec chip to zero, and adjusts the SmartPA chip. To the low power mode, and to shut down the HIFI chip.
  • the terminal device turns off the voice play module.
  • the terminal device opens a node of an audio downlink path.
  • the embodiment of the present invention further provides a terminal device 1000, as shown in FIG. 10, including:
  • the receiving module 1001 is configured to receive a voice frame delivered by the network side device.
  • the determining module 1002 is configured to determine whether the voice frame is a silent frame or no data frame, or determine whether the voice data included in the voice frame is invalid voice data;
  • the node adjustment module 1003 is configured to: if the voice frame is a silent frame or no data frame, or the voice data included in the voice frame is invalid voice data, close the node of the audio downlink path.
  • the determining module 1002 is specifically configured to:
  • the format of the voice frame is SID format or No data format, it is determined whether the voice frame is a silent frame or no data frame.
  • the determining module 1002 is specifically configured to:
  • the amplitude of the voice data included in the voice frame is lower than a set threshold, it is determined that the voice data included in the voice frame is invalid voice data.
  • the node of the audio downlink path includes an audio algorithm module, a digital-to-analog conversion module, and a voice play module
  • the node adjustment module 1003 includes:
  • the first node adjustment module 10031 is configured to: close the audio algorithm module;
  • the second node adjustment module 10032 is configured to adjust the digital to analog conversion module to a low power mode
  • the third node adjustment module 10033 is configured to close the voice play module.
  • the audio algorithm module includes an echo suppression module, a noise reduction module, and a gain adjustment
  • the first node adjustment module 10031 is specifically configured to: close the echo suppression module and the noise reduction module, and adjust a digital gain of the gain adjustment module to zero.
  • the digital-to-analog conversion module includes a Codec chip, a SmartPA chip, and a HIFI chip
  • the second node adjustment module 10032 is specifically configured to:
  • the node adjustment module 1003 is further configured to: if the voice data included in the voice frame is voiced data, open a node of the audio downlink path.
  • the foregoing modules (the receiving module 1001, the determining module 1002, the node adjusting module 1003 (the first node adjusting module 10031, the second node adjusting module 10032, and the third node adjusting module 10033)) are used to perform the foregoing method. Related steps.
  • the terminal device 1000 is presented in the form of a module.
  • a “module” herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that executes one or more software or firmware programs, integrated logic circuits, and/or other devices that provide the above functionality.
  • ASIC application-specific integrated circuit
  • the above determining module 1002 and the node adjusting module 1003 can be implemented by the processor 1101 of the terminal device shown in FIG. 11, and the above receiving module 1001 can be implemented by the communication interface 1103 of the terminal device shown in FIG.
  • the terminal device 1100 can be implemented in the structure of FIG. 11, which includes at least one processor 1101, at least one memory 1102, and at least one communication interface 1103.
  • the processor 1101, the memory 1102, and the communication interface 1103 are connected by the communication bus and complete communication with each other.
  • the processor 1101 can be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the communication interface 1103 is configured to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.
  • RAN Radio Access Network
  • WLAN Wireless Local Area Networks
  • the memory 1102 can be a read-only memory (ROM) or can store static Other types of static storage devices for information and instructions, random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or electrically erasable programmable read-only memory (Electrically Erasable Programmable) Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disks A storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of an instruction or data structure and that can be accessed by a computer, but is not limited thereto.
  • the memory can exist independently and be connected to the processor via a bus.
  • the memory can also be integrated with the processor.
  • the memory 1102 is configured to store application code that executes the above solution, and is controlled by the processor 1101 to execute.
  • the processor 1101 is configured to execute application code stored in the memory 1102.
  • the code stored in the memory 1102 can perform the above-mentioned adjustment method of the call audio node performed by the terminal device provided by the terminal device, for example, receiving a voice frame sent by the network side device; determining whether the voice frame is a silent frame or no data frame, or determining Whether the voice data included in the voice frame is invalid voice data; if the voice frame is a silent frame or no data frame, or the voice data included in the voice frame is invalid voice data, the node of the audio downlink path is closed.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of the adjustment method of any of the call audio nodes described in the foregoing method embodiments.
  • the disclosed device may be It's way to achieve it.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Abstract

Disclosed is a method for adjusting a call audio node, comprising: receiving a speech frame issued by a network side device; determining whether the speech frame is a silent frame or a no-data frame, or determining whether speech data included in the speech frame is invalid speech data; and if the speech frame is a silent frame or a no-data frame, or the speech data included in the speech frame is invalid speech data, turning off a node of an audio downlink path. Also provided is a terminal device. By means of the embodiments of the present invention, on the premise of ensuring the call quality, the power consumption during a call can be reduced.

Description

一种通话音频节点的调节方法及终端设备Method for adjusting call audio node and terminal device 技术领域Technical field
本发明涉及电子技术领域,尤其涉及一种通话音频节点的调节方法及终端设备。The present invention relates to the field of electronic technologies, and in particular, to a method for adjusting a call audio node and a terminal device.
背景技术Background technique
智能手机的普及率迅速增长使之成为现代生活中的必需品。随着智能手机的不断发展,人们对智能手机的使用功能提出了越来越多的要求,但智能手机电池容量有限,使用功能越多智能手机功耗越大,使用时间越短。The rapid growth of smartphone penetration has made it a necessity in modern life. With the continuous development of smart phones, people have more and more demands on the use of smart phones, but the capacity of smart phones is limited. The more functions they use, the greater the power consumption of smart phones, and the shorter the use time.
语音通话技术是智能手机必备的功能。目前,随着语音通话技术的不断发展,为了提高通话质量与通话效果,越来越多的新器件被加入通话中,进而导致通话时功耗的增加,因此,如何在保证通话质量的前提下,降低通话时功耗是本领域技术人员亟待解决的技术问题。Voice call technology is a must-have feature for smartphones. At present, with the continuous development of voice call technology, in order to improve the call quality and the call effect, more and more new devices are added to the call, which leads to an increase in power consumption during the call. Therefore, how to ensure the quality of the call Reducing power consumption during a call is a technical problem to be solved by those skilled in the art.
发明内容Summary of the invention
本发明实施例提供一种通话音频节点的调节方法及终端设备,以期在保证通话质量的前提下,降低通话时功耗。Embodiments of the present invention provide a method for adjusting a call audio node and a terminal device, so as to reduce power consumption during a call on the premise of ensuring call quality.
第一方面,本发明实施例提供一种通话音频节点的调节方法,包括:终端设备接收网络侧设备发送的语音帧,然后终端设备确定该语音帧是否为静默帧或无数据帧,或者确定该语音帧包含的语音数据是否为无效语音数据,若是,则认为音频下行(接收)通路处于无效的工作状态,此时关闭音频下行通路的节点,进而达到降低功耗的目的。In a first aspect, an embodiment of the present invention provides a method for adjusting a call audio node, including: receiving, by a terminal device, a voice frame sent by a network side device, and then determining, by the terminal device, whether the voice frame is a silent frame or a no data frame, or determining the Whether the voice data contained in the voice frame is invalid voice data, if yes, the audio downlink (receiving) path is considered to be in an inactive working state, and the node of the audio downlink path is closed at this time, thereby achieving the purpose of reducing power consumption.
在一些可行的实施方式中,终端设备确定所述语音帧是否为静默帧或是无数据帧的具体实施方式为:终端设备确定所述语音帧的格式是否为SID格式或No data格式;若所述语音帧的格式为SID格式或No data格式,则终端设备确定所述语音帧为静默帧或是无数据帧。In some implementations, the determining, by the terminal device, whether the voice frame is a silent frame or a dataless frame, is: determining, by the terminal device, whether the format of the voice frame is a SID format or a No data format; The format of the voice frame is SID format or No data format, and the terminal device determines whether the voice frame is a silent frame or no data frame.
在一些可行的实施方式中,终端设备确定所述语音帧包含的语音数据是否为无效语音数据的具体实施方式为:终端设备确定所述语音帧包含的语音数据 的幅值是否低于设置门限;若所述语音帧包含的语音数据的幅值低于设置门限,则终端设备确定所述语音帧包含的语音数据为无效语音数据。In some feasible implementation manners, the terminal device determines whether the voice data included in the voice frame is invalid voice data, where the terminal device determines the voice data included in the voice frame. Whether the amplitude of the voice data is lower than a set threshold; if the amplitude of the voice data included in the voice frame is lower than a set threshold, the terminal device determines that the voice data included in the voice frame is invalid voice data.
在一些可行的实施方式中,所述音频下行通路的节点包括音频算法模块、数模转换模块和语音播放模块,所述终端设备关闭音频下行通路的节点的具体实施方式为:终端设备关闭所述音频算法模块、将所述数模转换模块调节至低功耗模式,以及关闭所述语音播放模块。In some possible implementations, the node of the audio downlink path includes an audio algorithm module, a digital-to-analog conversion module, and a voice play module, where the terminal device turns off the node of the audio downlink path, and the terminal device turns off the An audio algorithm module, adjusting the digital to analog conversion module to a low power mode, and turning off the voice playback module.
在一些可行的实施方式中,所述音频算法模块包括回声抑制模块、降低噪音模块和增益调节模块,所述终端设备关闭所述音频算法模块的具体实施方式为:终端设备关闭所述回声抑制模块和所述降低噪音模块,以及将所述增益调节模块的数字增益调节为零。In some possible implementations, the audio algorithm module includes an echo suppression module, a noise reduction module, and a gain adjustment module. The specific implementation manner of the terminal device to close the audio algorithm module is: the terminal device turns off the echo suppression module. And the noise reduction module, and adjusting the digital gain of the gain adjustment module to zero.
在一些可行的实施方式中,所述数模转换模块包括Codec芯片、SmartPA芯片和HIFI芯片,所述终端设备将所述数模转换模块调节至低功耗模式的具体实施方式为:终端设备关闭所述codec芯片的DAC转换功能,将所述codec芯片的模拟增益调节为零,将所述SmartPA芯片调节至低功耗模式,以及将所述HIFI芯片关闭。In some possible implementations, the digital-to-analog conversion module includes a Codec chip, a SmartPA chip, and a HIFI chip, and the terminal device adjusts the digital-to-analog conversion module to a low-power mode. The specific implementation manner is: the terminal device is turned off. The DAC conversion function of the codec chip adjusts the analog gain of the codec chip to zero, adjusts the SmartPA chip to a low power mode, and turns off the HIFI chip.
在一些可行的实施方式中,所述方法还包括:In some possible implementations, the method further includes:
若所述语音帧包含的语音数据为有声数据,所述终端设备打开音频下行通路的节点。If the voice data included in the voice frame is voiced data, the terminal device opens a node of the audio downlink path.
第二方面,本发明提供一种终端设备,包含用于执行第一方面中的方法的模块。In a second aspect, the invention provides a terminal device comprising means for performing the method of the first aspect.
第三方面,本发明提供一种终端设备,该终端设备中包括处理器,处理器被配置为支持该网元执行第一方面提供的一种通话音频节点的调节方法中相应的功能。该终端设备还可以包括存储器,存储器用于与处理器耦合,其保存该终端设备必要的程序指令和数据。该终端设备还可以包括通信接口,用于该网元与其他设备或通信网络通信。In a third aspect, the present invention provides a terminal device, where the terminal device includes a processor, and the processor is configured to support the network element to perform a corresponding function in a method for adjusting a call audio node provided by the first aspect. The terminal device can also include a memory for coupling with the processor that holds the necessary program instructions and data for the terminal device. The terminal device can also include a communication interface for the network element to communicate with other devices or communication networks.
第四方面,本发明提供一种计算机存储介质,用于储存为上述第五方面提供的网元所用的计算机软件指令,其包含用于执行上述方面所设计的程序。In a fourth aspect, the present invention provides a computer storage medium for storing computer software instructions for a network element provided by the above fifth aspect, comprising a program designed to perform the above aspects.
相较于现有技术,本发明提供的方案可在用户当前处于说话状态而非收听状态,此时关闭音频下行通路的节点,进而达到降低功耗的目的。 Compared with the prior art, the solution provided by the present invention can be used to reduce power consumption when the user is currently in a speaking state rather than a listening state, at which time the node of the audio downlink path is closed.
本发明的这些方面或其他方面在以下实施例的描述中会更加简明易懂。These and other aspects of the invention will be more apparent from the following description of the embodiments.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1为本发明一实施例提供的一种通话音频节点的调节方法的流程示意图;FIG. 1 is a schematic flowchart of a method for adjusting a call audio node according to an embodiment of the present invention;
图2为本发明一实施例提供的语音下行通路的音频部分的示意图;2 is a schematic diagram of an audio portion of a voice downlink path according to an embodiment of the present invention;
图3为本发明一实施例提供的语音数据帧的具体格式示意图;FIG. 3 is a schematic diagram of a specific format of a voice data frame according to an embodiment of the present invention;
图4为本发明一实施例提供的音频下行通路算法结构示意图;4 is a schematic structural diagram of an audio downlink path algorithm according to an embodiment of the present invention;
图5为本发明一实施例提供的音频算法模块结构示意图;FIG. 5 is a schematic structural diagram of an audio algorithm module according to an embodiment of the present invention;
图6为本发明一实施例提供的常规codec芯片内部结构示意图;FIG. 6 is a schematic diagram of an internal structure of a conventional codec chip according to an embodiment of the present invention; FIG.
图7为本发明一实施例提供的增加下行数据缓冲区的结构示意图;FIG. 7 is a schematic structural diagram of adding a downlink data buffer according to an embodiment of the present invention;
图8为本发明一实施例提供的一种通话音频节点的调节方法的流程示意图;FIG. 8 is a schematic flowchart of a method for adjusting a call audio node according to an embodiment of the present invention;
图9为本发明一实施例提供的一种通话音频节点的调节方法的流程示意图;FIG. 9 is a schematic flowchart of a method for adjusting a call audio node according to an embodiment of the present invention;
图10为本发明一实施例提供的一种终端设备的结构示意图;FIG. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
图11为本发明一实施例提供的一种终端设备的结构示意图。FIG. 11 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
以下分别进行详细说明。 The details are described below separately.
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", and "fourth" and the like in the specification and claims of the present invention are used to distinguish different objects, and are not intended to describe a specific order. . Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。References to "an embodiment" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention. The appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
以下,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。Hereinafter, some of the terms in the present application will be explained to be understood by those skilled in the art.
1)、终端设备,又称之为用户设备(User Equipment,UE),是一种向用户提供语音和/或数据连通性的设备,例如,具有无线连接功能的手持式设备、车载设备等。常见的终端例如包括:手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(mobile internet device,MID)、可穿戴设备,例如智能手表、智能手环、计步器等。1) A terminal device, also called a User Equipment (UE), is a device that provides voice and/or data connectivity to a user, for example, a handheld device with a wireless connection function, an in-vehicle device, and the like. Common terminals include, for example, mobile phones, tablets, notebook computers, PDAs, mobile internet devices (MIDs), wearable devices such as smart watches, smart bracelets, pedometers, and the like.
2)、网络侧设备指网络侧的节点设备,例如,网元可以是蜂窝网络中接入网侧的无线接入网(Radio Access Network,RAN)设备,所谓RAN设备即是一种将终端接入到无线网络的设备,包括但不限于:演进型节点B(evolved Node B,eNB)、无线网络控制器(radio network controller,RNC)、节点B(Node B,NB)、基站控制器(Base Station Controller,BSC)、基站收发台(Base Transceiver Station,BTS)、家庭基站(例如,Home evolved NodeB,或Home Node B,HNB)、基带单元(BaseBand Unit,BBU);再如,网元也可以是无线局域网(Wireless Local Area Network,WLAN)中的节点设备,例如接入控制器(access controller,AC),网关,或WIFI接入点(Access Point,AP)等。2) The network side device refers to the node device on the network side. For example, the network element may be a radio access network (RAN) device on the access network side of the cellular network, and the so-called RAN device is a terminal device. The device that enters the wireless network, including but not limited to: an evolved Node B (eNB), a radio network controller (RNC), a Node B (NB), and a base station controller (Base) Station Controller (BSC), Base Transceiver Station (BTS), home base station (for example, Home evolved NodeB, or Home Node B, HNB), Baseband Unit (BBU); for example, the network element can also It is a node device in a Wireless Local Area Network (WLAN), such as an access controller (AC), a gateway, or a WIFI access point (AP).
3)所谓数据帧(Data frame),就是数据链路层的协议数据单元,它包括三部分:帧头,数据部分,帧尾。其中,帧头和帧尾包含一些必要的控制信息,比如同步信息、地址信息、差错控制信息等,数据部分为语音信息的,则为语 音数据帧。3) The so-called data frame is the protocol data unit of the data link layer. It consists of three parts: the frame header, the data part, and the end of the frame. Where the frame header and the end of the frame contain some necessary control information, such as synchronization information, address information, error control information, etc., and the data portion is voice information, then the language Audio data frame.
4)、“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。4) "Multiple" means two or more. "and/or", describing the association relationship of the associated objects, indicating that there may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately. The character "/" generally indicates that the contextual object is an "or" relationship.
下面结合附图对本申请的实施例进行描述。Embodiments of the present application will be described below with reference to the accompanying drawings.
请参见图1,图1为本发明实施例提供的一种通话音频节点的调节方法的流程示意图,包括以下步骤:Referring to FIG. 1 , FIG. 1 is a schematic flowchart of a method for adjusting a call audio node according to an embodiment of the present invention, including the following steps:
S101、所述终端设备接收网络侧下发的语音帧。S101. The terminal device receives a voice frame sent by a network side.
S102、所述终端设备确定所述语音帧是否为静默帧或无数据帧,或者确定所述语音帧包含的语音数据是否为无效语音数据。S102. The terminal device determines whether the voice frame is a silent frame or a no data frame, or determines whether the voice data included in the voice frame is invalid voice data.
S103、若所述语音帧为静默帧或无数据帧,或者所述语音帧包含的语音数据为无效语音数据,则所述终端设备关闭音频下行通路的节点。S103. If the voice frame is a silent frame or no data frame, or the voice data included in the voice frame is invalid voice data, the terminal device turns off a node of the audio downlink path.
目前,当语音通话建立后,音频通路下行所有节点(接收通路)都处于工作状态,即使自己在说话对方无声的时候,音频下行(接收)通路仍然保持工作状态。只有在通话结束时,关闭语音通路,此时音频下行(接收)通路所有节点才会关闭或者进入低功耗状态。也就是说,在正常语音通话过程中,存在大量时间音频下行(接收)通路处于无效的工作状态。为了降低通话时的功耗,本方案,终端设备在接收到网络侧设备发送的语音帧时,先确定该语音帧是否为静默帧或无数据帧,或者确定该语音帧包含的语音数据是否为无效语音数据,若是,认为音频下行(接收)通路处于无效的工作状态,此时关闭音频下行通路的节点,进而达到降低功耗的目的。At present, when a voice call is established, all nodes (receiving paths) in the downlink of the audio channel are in a working state, and the audio downlink (receiving) path remains in operation even when the speaker is silent. Only when the call ends, the voice path is turned off, at which point all nodes of the audio downlink (receive) path will be turned off or enter a low power state. That is to say, during a normal voice call, there is a large amount of time when the audio downlink (receive) path is in an inactive working state. In order to reduce the power consumption during the call, when the terminal device receives the voice frame sent by the network side device, it first determines whether the voice frame is a silent frame or no data frame, or determines whether the voice data included in the voice frame is Invalid voice data, if it is, the audio downlink (receive) path is considered to be in an inactive working state, and the node of the audio downlink path is closed at this time, thereby achieving the purpose of reducing power consumption.
正常通话时,语音下行通路分为两部分,分部为协议部分和音频通路部分。其中协议部分负责接收网络侧的数据帧,音频部分负责播放声音。音频部分主要包括音频算法模块(DSP),数模转换模块(Codec/SmartPA/HIFI),播放模块(听筒/耳机等)。具体如图2所示,图2为语音下行通路的音频部分的示意图。In normal call, the voice downlink path is divided into two parts, the part is the protocol part and the audio path part. The protocol part is responsible for receiving data frames on the network side, and the audio part is responsible for playing sounds. The audio part mainly includes an audio algorithm module (DSP), a digital-to-analog conversion module (Codec/SmartPA/HIFI), and a playback module (handset/headphone, etc.). Specifically, as shown in FIG. 2, FIG. 2 is a schematic diagram of an audio portion of a voice downlink path.
可选地,以上步骤S102所述终端设备确定所述语音帧是否为静默帧或无数据帧的具体实施方式有:所述终端设备确定所述语音帧的格式是否为SID 格式或No data格式;若所述语音帧的格式为SID格式或No data格式,则所述终端设备确定所述语音帧为静默帧或是无数据帧。Optionally, the terminal device determines whether the voice frame is a silent frame or a no data frame, where the terminal device determines whether the format of the voice frame is a SID. Format or No data format; if the format of the voice frame is SID format or No data format, the terminal device determines whether the voice frame is a silent frame or no data frame.
举例来说,根据网络协议规定,语音数据帧格式分为Good Speech、SID、No data、Bad Speech等数据格式。语音数据帧根据不同的编码方式、不同的数据帧格式,每帧的大小是不相同的,但是语音数据帧以20ms为周期从网络侧设备接收的,循环接收1个SID和7个No data的语音数据帧,每一个语音数据帧都是20ms为周期,具体格式如图3所示,图3为语音数据帧的具体格式示意图。当识别出网络下行语音数据帧为SID格式或者No_data格式时,终端设备认为网络下行语音帧为静默帧或无数据帧,此时终端设备为动态配置音频通路下行所有节点,比如根据不同节点模块特性进行不同的关闭/低功耗/下电操作,当终端设备识别出下行数据帧格式为Good Speech或Bad Speech时,终端设备动态配置音频通路下行所有节点进入工作状态。For example, according to the network protocol, the voice data frame format is divided into data formats such as Good Speech, SID, No data, and Bad Speech. The voice data frames are different according to different coding modes and different data frame formats, but the voice data frames are received from the network side device in a period of 20 ms, and one SID and seven No data are cyclically received. For voice data frames, each voice data frame has a period of 20ms. The specific format is shown in Figure 3. Figure 3 is a schematic diagram of the specific format of the voice data frame. When the network downlink voice data frame is identified as the SID format or the No_data format, the terminal device considers that the network downlink voice frame is a silent frame or no data frame. At this time, the terminal device dynamically configures the audio path to descend all nodes, for example, according to different node module characteristics. When the terminal device recognizes that the downlink data frame format is Good Speech or Bad Speech, the terminal device dynamically configures all nodes in the audio path to enter the working state.
可选地,以上步骤S102所述终端设备确定所述语音帧包含的语音数据是否为无效语音数据的具体实施方式有:所述终端设备确定所述语音帧包含的语音数据的幅值是否低于设置门限;若所述语音帧包含的语音数据的幅值低于设置门限,则所述终端设备确定所述语音帧包含的语音数据为无效语音数据。Optionally, the terminal device determines whether the voice data included in the voice frame is invalid voice data, where the terminal device determines whether the amplitude of the voice data included in the voice frame is lower than Setting a threshold; if the amplitude of the voice data included in the voice frame is lower than a set threshold, the terminal device determines that the voice data included in the voice frame is invalid voice data.
其中,上述设置门限值例如可以是0、3、8、10、15、23、30或是其他值。The set threshold value may be, for example, 0, 3, 8, 10, 15, 23, 30 or other values.
举例来说,终端设备在接收到网络侧设备发送的语音帧时,终端设备的Modem侧会把语音帧传递给DSP算法模块,DSP从网络数据帧中解析出对应的PCM语音数据。通常正常通话的语音数据的幅值300左右,当DSP解析出来的PCM语音数据的幅值低于上述设置门限时,终端设备认为网络下行语音帧包含的语音数据为无声数据,此时终端设备为动态配置音频通路下行所有节点,比如根据不同节点模块特性进行不同的关闭/低功耗/下电操作,当DSP解析出来的PCM语音数据的幅值高于上述设置门限时,终端设备动态配置音频通路下行所有节点进入工作状态。For example, when the terminal device receives the voice frame sent by the network side device, the modem side of the terminal device transmits the voice frame to the DSP algorithm module, and the DSP parses the corresponding PCM voice data from the network data frame. Generally, the amplitude of the voice data of the normal call is about 300. When the amplitude of the PCM voice data parsed by the DSP is lower than the set threshold, the terminal device considers that the voice data included in the downlink voice frame of the network is silent data, and the terminal device is Dynamically configure all nodes of the audio channel to downlink, for example, perform different shutdown/low power/power-off operations according to different node module characteristics. When the amplitude of the PCM voice data parsed by the DSP is higher than the above set threshold, the terminal device dynamically configures the audio. All nodes in the downlink are in the working state.
可选地,所述音频下行通路的节点包括音频算法模块、数模转换模块和语音播放模块,以上步骤S103所述终端设备关闭音频下行通路的节点的具体实施方式有:所述终端设备关闭所述音频算法模块、将所述数模转换模块调节至低功耗模式,以及关闭所述语音播放模块。 Optionally, the node of the audio downlink path includes an audio algorithm module, a digital-to-analog conversion module, and a voice play module. The specific implementation manner of the node that closes the audio downlink path in the step S103 is: the terminal device is shut down. The audio algorithm module is configured to adjust the digital to analog conversion module to a low power mode, and to close the voice playback module.
举例来说,正常语音通话时,音频通路下行节点包括音频算法模块、数模转换模块、语音播放模块等。其中,音频算法模块,主要涉及软件算法等相关操作,具体操作涉及关闭设备驱动节点、关闭算法进程/线程、卸载相关的音频参数/算法数据库、关闭相关等操作。数模转换模块,主要涉及A/D、Codec、SmartPA相关滤波器等操作,具体操作涉及SmartPA低功耗设置、打开关闭HIFI芯片操作、A/D上下电操作、Codec低功耗设置、关闭相关FIR、IIR等滤波器等操作。其中,HIFI、SmartPA常规都是通过I2C接口进行控制的,I2C接口的波特率一般为400Kbps或者100Kbps,SmartPA控制一般是一个8Bit的寄存器,所以,对SmartPA的基本操作可以在网络数据帧间隔内完成。以100Kbps计算,100bit*1000/1000ms=100bit/ms,故I2C接口速率=12.5Byte/ms。所以,即使是100Kbps的低速I2C接口,也可以满足对SmartPA的实时操作。For example, in a normal voice call, the audio path downlink node includes an audio algorithm module, a digital-to-analog conversion module, a voice playback module, and the like. The audio algorithm module mainly involves related operations such as software algorithms, and the specific operations involve shutting down the device driver node, closing the algorithm process/thread, unloading the related audio parameter/algorithm database, and closing the related operations. Digital-to-analog conversion module mainly involves A/D, Codec, SmartPA related filters, etc. The specific operations involve SmartPA low-power setting, turning on and off HIFI chip operation, A/D power-on and power-off operation, Codec low-power setting, and off related FIR, IIR and other filters. Among them, HIFI and SmartPA are controlled by I2C interface. The baud rate of I2C interface is generally 400Kbps or 100Kbps. SmartPA control is generally an 8Bit register. Therefore, the basic operation of SmartPA can be within the network data frame interval. carry out. Calculated at 100Kbps, 100bit*1000/1000ms=100bit/ms, so the I2C interface rate is 12.5 Byte/ms. Therefore, even the 100Kbps low-speed I2C interface can meet the real-time operation of the SmartPA.
可选地,所述音频算法模块包括回声抑制模块、降低噪音模块和增益调节模块,所述终端设备关闭所述音频算法模块的具体实施方式有:所述终端设备关闭所述回声抑制模块和所述降低噪音模块,以及将所述增益调节模块的数字增益调节为零。Optionally, the audio algorithm module includes an echo suppression module, a noise reduction module, and a gain adjustment module, where the terminal device turns off the audio algorithm module, where the terminal device turns off the echo suppression module and the The noise reduction module is described, and the digital gain of the gain adjustment module is adjusted to zero.
举例来说,在正常通话时,音频算法包括上行算法和下行算法两个部分,通常音频下行通路算法结构如图4所示。其中网络数据包为网络侧设备发给终端设备的数据包,语音解码模块负责把网络数据包中的语音信息解析出来并传递给语音算法模块,语音算法模块对接收到的语音数据进行算法处理,其中下行算法根据硬件平台不同,音频算法模块结构略有不同,但整体可以分为回声抑制模块、降低噪音模块和增益调节模块这几个模块,如图5所示。由于音频算法模块都是算法模块,可以通过软件直接进行开关控制,当网络解析模块检测到网络下行的数据帧为静音帧(SID)或者No_Data等语音帧时,给音频算法模块发送命令或调用相关的软件接口,关闭回声抑制模块和降噪模块算法,使语音数据直接透传下去,同时把数字增益调节为零,从而达到降低功耗的作用。For example, in a normal call, the audio algorithm includes an uplink algorithm and a downlink algorithm. The structure of the audio downlink path algorithm is generally as shown in FIG. 4 . The network data packet is a data packet sent by the network side device to the terminal device, and the voice decoding module is responsible for parsing the voice information in the network data packet and transmitting the voice information to the voice algorithm module, and the voice algorithm module performs algorithm processing on the received voice data. The downlink algorithm is different according to the hardware platform, and the audio algorithm module structure is slightly different, but the whole can be divided into the echo suppression module, the noise reduction module and the gain adjustment module, as shown in FIG. 5 . Since the audio algorithm modules are all algorithm modules, the switch control can be directly performed by software. When the network parsing module detects that the downlink data frame of the network is a silent frame (SID) or a voice frame such as No_Data, the audio algorithm module sends a command or invokes a correlation. The software interface, close the echo suppression module and the noise reduction module algorithm, so that the voice data is directly transmitted through, and the digital gain is adjusted to zero, thereby reducing the power consumption.
对于音频算法中其他的相关模块,也进行同样的关闭模块操作或关闭增益操作,从而达到降低功耗的作用。 For other related modules in the audio algorithm, the same shutdown module operation or the close gain operation is also performed, thereby reducing the power consumption.
可选地,所述数模转换模块包括Codec芯片、SmartPA芯片和HIFI芯片,所述终端设备将所述数模转换模块调节至低功耗模式的具体实施方式有:所述终端设备关闭所述codec芯片的DAC转换功能,将所述codec芯片的模拟增益调节为零,将所述SmartPA芯片调节至低功耗模式,以及关闭所述HIFI芯片功能。Optionally, the digital-to-analog conversion module includes a Codec chip, a SmartPA chip, and a HIFI chip, where the terminal device adjusts the digital-to-analog conversion module to a low-power mode, where the terminal device turns off the The DAC conversion function of the codec chip adjusts the analog gain of the codec chip to zero, adjusts the SmartPA chip to a low power mode, and turns off the HIFI chip function.
举例来说,由于codec芯片和HIFI芯片主要负责语音数据的数模转换,其中包括模拟增益、AD转换等操作。在通话时,上下行模块同时操作,对于下行通路来说,主要操作涉及模拟增益、DA转换和相关滤波等操作,常规codec内部结构图6所示。其中,对codec操作不能简单的进行上下电操作,这样会影响正常通话。当判断下行数据为静默帧或者No_DATA帧时,程序控制下行通路关闭codec芯片DAC的转换功能,同时调节模拟增益为零,动态关闭codec芯片下行通过转换功能,从而达到降低功耗的作用。For example, since the codec chip and the HIFI chip are mainly responsible for digital-to-analog conversion of voice data, including analog gain, AD conversion and the like. During the call, the uplink and downlink modules operate simultaneously. For the downlink path, the main operations involve analog gain, DA conversion, and related filtering. The internal structure of the conventional codec is shown in Figure 6. Among them, the codec operation can not simply perform power-on and power-off operations, which will affect normal calls. When it is judged that the downlink data is a silent frame or a No_DATA frame, the program controls the downlink path to turn off the conversion function of the codec chip DAC, and simultaneously adjusts the analog gain to zero, and dynamically turns off the codec chip to pass the conversion function, thereby achieving the effect of reducing power consumption.
SmartPA芯片通常是一种音频放大器,它可以将一个模拟的声音信号进行放大,但是又保证放大之后的信号不出现失真现象。当需要动态调节SmartPA时,可以进行SmartPA下电操作。但通常情况下,为避免引入噪音等问题,并不直接进行上下电操作。通过I2C接口,可以对SmartPA进行睡眠/低功耗和正常工作等配置,所以在检测出下行没有声音时,通过I2C接口,动态控制SmartPA进入低功耗模式。当恢复下行通话时,再通过I2C接口,恢复SmartPA的正常放大功能。通过这种动态调节方式,使下行无声时SmartPA进入低功耗/睡眠状态,实现降低功耗的目的。The SmartPA chip is usually an audio amplifier that amplifies an analog sound signal, but ensures that the amplified signal does not appear distorted. When the SmartPA needs to be dynamically adjusted, the SmartPA can be powered off. However, in general, in order to avoid the introduction of noise and the like, the power-on and power-off operations are not directly performed. Through the I2C interface, the SmartPA can be configured for sleep/low power consumption and normal operation. Therefore, when detecting no sound in the downlink, the SmartPA is dynamically controlled to enter the low power mode through the I2C interface. When the downlink call is resumed, the normal amplification function of the SmartPA is restored through the I2C interface. Through this dynamic adjustment mode, the SmartPA enters a low power/sleep state when the downlink is silent, thereby achieving the purpose of reducing power consumption.
可选地,所述方法还包括:Optionally, the method further includes:
若所述语音帧包含的语音数据为有声数据,所述终端设备打开音频下行通路的节点。If the voice data included in the voice frame is voiced data, the terminal device opens a node of the audio downlink path.
可选地,在进行音频通路动态操作时,由于硬件不同,各个模块的电气特性也不同,有些模块可以瞬时操作,在几个毫秒(ms)内完成操作,有些模块操作时间略长,可能是十个毫秒(ms)或者更长,所以在进行动态配置时,需要增加下行数据缓冲区,确保语音播放的完整性。具体结构如图7所示。其中,图7中所示的FIFO为下行数据缓冲区。 Optionally, when performing audio channel dynamic operation, the electrical characteristics of each module are different due to different hardware. Some modules can operate instantaneously and complete operations within a few milliseconds (ms). Some modules operate for a slightly longer time, which may be Ten milliseconds (ms) or longer, so when performing dynamic configuration, you need to increase the downlink data buffer to ensure the integrity of voice playback. The specific structure is shown in Figure 7. Among them, the FIFO shown in FIG. 7 is a downlink data buffer.
本发明实施例还提供了另一更为详细的方法流程,如图8所示,所述音频下行通路的节点包括音频算法模块、数模转换模块和语音播放模块,包括:The embodiment of the present invention further provides another more detailed method, as shown in FIG. 8, the node of the audio downlink path includes an audio algorithm module, a digital-to-analog conversion module, and a voice play module, including:
S801、所述终端设备接收网络侧设备下发的语音帧。S801. The terminal device receives a voice frame sent by a network side device.
S802、所述终端设备确定所述语音帧的格式是否为SID格式或No data格式。S802. The terminal device determines whether a format of the voice frame is an SID format or a No data format.
若是,则执行步骤S803。If yes, step S803 is performed.
若否,则执行步骤S806。If no, step S806 is performed.
S803、所述音频算法模块包括回声抑制模块、降低噪音模块和增益调节模块,所述终端设备关闭所述回声抑制模块和所述降低噪音模块,以及将所述增益调节模块的数字增益调节为零。S803. The audio algorithm module includes an echo suppression module, a noise reduction module, and a gain adjustment module, the terminal device turns off the echo suppression module and the noise reduction module, and adjusts a digital gain of the gain adjustment module to zero. .
S804、所述数模转换模块包括Codec芯片、SmartPA芯片和HIFI芯片,所述终端设备关闭所述codec芯片的DAC转换功能,将所述codec芯片的模拟增益调节为零,将所述SmartPA芯片调节至低功耗模式,以及将所述HIFI芯片关闭操作。S804. The digital-to-analog conversion module includes a Codec chip, a SmartPA chip, and a HIFI chip. The terminal device turns off the DAC conversion function of the codec chip, adjusts the analog gain of the codec chip to zero, and adjusts the SmartPA chip. To the low power mode, and to shut down the HIFI chip.
S805、所述终端设备关闭所述语音播放模块。S805. The terminal device turns off the voice play module.
S806、所述终端设备打开音频下行通路的节点。S806. The terminal device opens a node of an audio downlink path.
需要说明的是,图8所示的方法的各个步骤的具体实现过程可参见上述方法所述的具体实现过程,在此不再叙述。It should be noted that the specific implementation process of each step of the method shown in FIG. 8 can be referred to the specific implementation process described in the foregoing method, and is not described herein.
本发明实施例还提供了另一更为详细的方法流程,如图9所示,所述音频下行通路的节点包括音频算法模块、数模转换模块和语音播放模块,包括:The embodiment of the present invention further provides another more detailed method, as shown in FIG. 9, the node of the audio downlink path includes an audio algorithm module, a digital-to-analog conversion module, and a voice play module, including:
S901、所述终端设备接收网络侧设备下发的语音帧。S901: The terminal device receives a voice frame sent by the network side device.
S902、所述终端设备确定所述语音帧包含的语音数据的幅值是否低于设置门限。S902. The terminal device determines whether a magnitude of the voice data included in the voice frame is lower than a set threshold.
若是,则执行步骤S903。If yes, step S903 is performed.
若否,则执行步骤S906。If no, step S906 is performed.
S903、所述音频算法模块包括回声抑制模块、降低噪音模块和增益调节模块,所述终端设备关闭所述回声抑制模块和所述降低噪音模块,以及将所述增益调节模块的数字增益调节为零。 S903. The audio algorithm module includes an echo suppression module, a noise reduction module, and a gain adjustment module, the terminal device turns off the echo suppression module and the noise reduction module, and adjusts a digital gain of the gain adjustment module to zero. .
S904、所述数模转换模块包括Codec芯片、SmartPA芯片和HIFI芯片,所述终端设备关闭所述codec芯片的DAC转换功能,将所述codec芯片的模拟增益调节为零,将所述SmartPA芯片调节至低功耗模式,以及将所述HIFI芯片关闭操作。S904. The digital-to-analog conversion module includes a Codec chip, a SmartPA chip, and a HIFI chip. The terminal device turns off the DAC conversion function of the codec chip, adjusts the analog gain of the codec chip to zero, and adjusts the SmartPA chip. To the low power mode, and to shut down the HIFI chip.
S905、所述终端设备关闭所述语音播放模块。S905. The terminal device turns off the voice play module.
S906、所述终端设备打开音频下行通路的节点。S906. The terminal device opens a node of an audio downlink path.
需要说明的是,图9所示的方法的各个步骤的具体实现过程可参见上述方法所述的具体实现过程,在此不再叙述。It should be noted that the specific implementation process of each step of the method shown in FIG. 9 can be referred to the specific implementation process described in the foregoing method, and is not described herein.
本发明实施例还提供了一种终端设备1000,如图10所示,包括:The embodiment of the present invention further provides a terminal device 1000, as shown in FIG. 10, including:
接收模块1001,用于接收网络侧设备下发的语音帧;The receiving module 1001 is configured to receive a voice frame delivered by the network side device.
确定模块1002,用于确定所述语音帧是否为静默帧或无数据帧,或者确定所述语音帧包含的语音数据是否为无效语音数据;The determining module 1002 is configured to determine whether the voice frame is a silent frame or no data frame, or determine whether the voice data included in the voice frame is invalid voice data;
节点调节模块1003,用于若所述语音帧为静默帧或无数据帧,或者所述语音帧包含的语音数据为无效语音数据,则关闭音频下行通路的节点。The node adjustment module 1003 is configured to: if the voice frame is a silent frame or no data frame, or the voice data included in the voice frame is invalid voice data, close the node of the audio downlink path.
可选地,所述确定模块1002具体用于:Optionally, the determining module 1002 is specifically configured to:
确定所述语音帧的格式是否为SID格式或No data格式;Determining whether the format of the voice frame is a SID format or a No data format;
若所述语音帧的格式为SID格式或No data格式,则确定所述语音帧为静默帧或是无数据帧。If the format of the voice frame is SID format or No data format, it is determined whether the voice frame is a silent frame or no data frame.
可选地,所述确定模块1002具体用于:Optionally, the determining module 1002 is specifically configured to:
确定所述语音帧包含的语音数据的幅值是否低于设置门限;Determining whether the amplitude of the voice data included in the voice frame is lower than a set threshold;
若所述语音帧包含的语音数据的幅值低于设置门限,则确定所述语音帧包含的语音数据为无效语音数据。If the amplitude of the voice data included in the voice frame is lower than a set threshold, it is determined that the voice data included in the voice frame is invalid voice data.
可选地,所述音频下行通路的节点包括音频算法模块、数模转换模块和语音播放模块,所述节点调节模块1003,包括:Optionally, the node of the audio downlink path includes an audio algorithm module, a digital-to-analog conversion module, and a voice play module, and the node adjustment module 1003 includes:
第一节点调节模块10031用于,关闭所述音频算法模块;The first node adjustment module 10031 is configured to: close the audio algorithm module;
第二节点调节模块10032用于,将所述数模转换模块调节至低功耗模式;The second node adjustment module 10032 is configured to adjust the digital to analog conversion module to a low power mode;
第三节点调节模块10033用于,关闭所述语音播放模块。The third node adjustment module 10033 is configured to close the voice play module.
可选地,所述音频算法模块包括回声抑制模块、降低噪音模块和增益调节 模块,所述第一节点调节模块10031具体用于:关闭所述回声抑制模块和所述降低噪音模块,以及将所述增益调节模块的数字增益调节为零。Optionally, the audio algorithm module includes an echo suppression module, a noise reduction module, and a gain adjustment The first node adjustment module 10031 is specifically configured to: close the echo suppression module and the noise reduction module, and adjust a digital gain of the gain adjustment module to zero.
可选地,所述数模转换模块包括Codec芯片、SmartPA芯片和HIFI芯片,第二节点调节模块10032具体用于:Optionally, the digital-to-analog conversion module includes a Codec chip, a SmartPA chip, and a HIFI chip, and the second node adjustment module 10032 is specifically configured to:
关闭所述codec芯片的DAC转换功能,将所述codec芯片的模拟增益调节为零,将所述SmartPA芯片调节至低功耗模式,以及将所述HIFI芯片关闭操作。Turning off the DAC conversion function of the codec chip, adjusting the analog gain of the codec chip to zero, adjusting the SmartPA chip to a low power mode, and turning off the HIFI chip.
可选地,所述节点调节模块1003,还用于若所述语音帧包含的语音数据为有声数据,打开音频下行通路的节点。Optionally, the node adjustment module 1003 is further configured to: if the voice data included in the voice frame is voiced data, open a node of the audio downlink path.
需要说明的是,上述各模块(接收模块1001、确定模块1002、节点调节模块1003(第一节点调节模块10031、第二节点调节模块10032和第三节点调节模块10033))用于执行上述方法的相关步骤。It should be noted that the foregoing modules (the receiving module 1001, the determining module 1002, the node adjusting module 1003 (the first node adjusting module 10031, the second node adjusting module 10032, and the third node adjusting module 10033)) are used to perform the foregoing method. Related steps.
在本实施例中,终端设备1000是以模块的形式来呈现。这里的“模块”可以指特定应用集成电路(application-specific integrated circuit,ASIC),执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。此外,以上确定模块1002、节点调节模块1003可通过图11所示的终端设备的处理器1101来实现,以上接收模块1001可通过图11所示的终端设备的通信接口1103来实现。In the present embodiment, the terminal device 1000 is presented in the form of a module. A "module" herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that executes one or more software or firmware programs, integrated logic circuits, and/or other devices that provide the above functionality. . In addition, the above determining module 1002 and the node adjusting module 1003 can be implemented by the processor 1101 of the terminal device shown in FIG. 11, and the above receiving module 1001 can be implemented by the communication interface 1103 of the terminal device shown in FIG.
如图11所示,终端设备1100可以以图11中的结构来实现,该终端设备1100包括至少一个处理器1101,至少一个存储器1102以及至少一个通信接口1103。所述处理器1101、所述存储器1102和所述通信接口1103通过所述通信总线连接并完成相互间的通信。As shown in FIG. 11, the terminal device 1100 can be implemented in the structure of FIG. 11, which includes at least one processor 1101, at least one memory 1102, and at least one communication interface 1103. The processor 1101, the memory 1102, and the communication interface 1103 are connected by the communication bus and complete communication with each other.
处理器1101可以是通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制以上方案程序执行的集成电路。The processor 1101 can be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the above program.
通信接口1103,用于与其他设备或通信网络通信,如以太网,无线接入网(RAN),无线局域网(Wireless Local Area Networks,WLAN)等。The communication interface 1103 is configured to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.
存储器1102可以是只读存储器(read-only memory,ROM)或可存储静态 信息和指令的其他类型的静态存储设备,随机存取存储器(randomaccess memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过总线与处理器相连接。存储器也可以和处理器集成在一起。The memory 1102 can be a read-only memory (ROM) or can store static Other types of static storage devices for information and instructions, random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or electrically erasable programmable read-only memory (Electrically Erasable Programmable) Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disks A storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of an instruction or data structure and that can be accessed by a computer, but is not limited thereto. The memory can exist independently and be connected to the processor via a bus. The memory can also be integrated with the processor.
其中,所述存储器1102用于存储执行以上方案的应用程序代码,并由处理器1101来控制执行。所述处理器1101用于执行所述存储器1102中存储的应用程序代码。The memory 1102 is configured to store application code that executes the above solution, and is controlled by the processor 1101 to execute. The processor 1101 is configured to execute application code stored in the memory 1102.
存储器1102存储的代码可执行以上提供的终端设备执行的上述通话音频节点的调节方法,比如接收网络侧设备下发的语音帧;确定所述语音帧是否为静默帧或无数据帧,或者确定所述语音帧包含的语音数据是否为无效语音数据;若所述语音帧为静默帧或无数据帧,或者所述语音帧包含的语音数据为无效语音数据,则关闭音频下行通路的节点。The code stored in the memory 1102 can perform the above-mentioned adjustment method of the call audio node performed by the terminal device provided by the terminal device, for example, receiving a voice frame sent by the network side device; determining whether the voice frame is a silent frame or no data frame, or determining Whether the voice data included in the voice frame is invalid voice data; if the voice frame is a silent frame or no data frame, or the voice data included in the voice frame is invalid voice data, the node of the audio downlink path is closed.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种通话音频节点的调节方法的部分或全部步骤。The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and the program includes some or all of the steps of the adjustment method of any of the call audio nodes described in the foregoing method embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the details that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其 它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In several embodiments provided herein, it should be understood that the disclosed device may be It's way to achieve it. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a memory. A number of instructions are included to cause a computer device (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing memory includes: a U disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。A person skilled in the art can understand that all or part of the steps of the foregoing embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable memory, and the memory can include: a flash drive , read-only memory (English: Read-Only Memory, referred to as: ROM), random accessor (English: Random Access Memory, referred to as: RAM), disk or CD.
以上对本发明实施例进行了详细介绍,本文中应用了具体个例对本发明的 原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上上述,本说明书内容不应理解为对本发明的限制。 The embodiments of the present invention have been described in detail above, and specific examples are applied herein to the present invention. The principles and implementations are set forth, and the description of the above embodiments is only for helping to understand the method of the present invention and its core ideas; at the same time, for those skilled in the art, according to the idea of the present invention, in the specific embodiments and application scope There is a change in the above, and the contents of the present specification should not be construed as limiting the present invention.

Claims (15)

  1. 一种通话音频节点的调节方法,其特征在于,包括:A method for adjusting a call audio node, comprising:
    接收网络侧设备下发的语音帧;Receiving a voice frame delivered by the network side device;
    确定所述语音帧是否为静默帧或无数据帧,或者确定所述语音帧包含的语音数据是否为无效语音数据;Determining whether the voice frame is a silent frame or no data frame, or determining whether the voice data included in the voice frame is invalid voice data;
    若所述语音帧为静默帧或无数据帧,或者所述语音帧包含的语音数据为无效语音数据,则关闭音频下行通路的节点。If the voice frame is a silent frame or no data frame, or the voice data included in the voice frame is invalid voice data, the node of the audio downlink path is closed.
  2. 根据权利要求1所述的方法,其特征在于,所述确定所述语音帧是否为静默帧或是无数据帧,包括:The method according to claim 1, wherein the determining whether the voice frame is a silent frame or a no data frame comprises:
    确定所述语音帧的格式是否为SID格式或No data格式;Determining whether the format of the voice frame is a SID format or a No data format;
    若所述语音帧的格式为SID格式或No data格式,则确定所述语音帧为静默帧或是无数据帧。If the format of the voice frame is SID format or No data format, it is determined whether the voice frame is a silent frame or no data frame.
  3. 根据权利要求1所述的方法,其特征在于,所述确定所述语音帧包含的语音数据是否为无效语音数据,包括:The method according to claim 1, wherein the determining whether the voice data included in the voice frame is invalid voice data comprises:
    确定所述语音帧包含的语音数据的幅值是否低于设置门限;Determining whether the amplitude of the voice data included in the voice frame is lower than a set threshold;
    若所述语音帧包含的语音数据的幅值低于设置门限,则确定所述语音帧包含的语音数据为无效语音数据。If the amplitude of the voice data included in the voice frame is lower than a set threshold, it is determined that the voice data included in the voice frame is invalid voice data.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述音频下行通路的节点包括音频算法模块、数模转换模块和语音播放模块,所述关闭音频下行通路的节点,包括:关闭所述音频算法模块、将所述数模转换模块调节至低功耗模式,以及关闭所述语音播放模块。The method according to any one of claims 1-3, wherein the node of the audio downlink path comprises an audio algorithm module, a digital-to-analog conversion module and a voice play module, and the node for closing the audio downlink path comprises: Turning off the audio algorithm module, adjusting the digital to analog conversion module to a low power mode, and turning off the voice playback module.
  5. 根据权利要求4所述的方法,其特征在于,所述音频算法模块包括回声抑制模块、降低噪音模块和增益调节模块,所述关闭所述音频算法模块,包括:The method according to claim 4, wherein the audio algorithm module comprises an echo suppression module, a noise reduction module and a gain adjustment module, and the closing the audio algorithm module comprises:
    关闭所述回声抑制模块和所述降低噪音模块,以及将所述增益调节模块的数字增益调节为零。The echo suppression module and the noise reduction module are turned off, and the digital gain of the gain adjustment module is adjusted to zero.
  6. 根据权利要求4所述的方法,其特征在于,所述数模转换模块包括Codec芯片、SmartPA芯片和HIFI芯片,所述将所述数模转换模块调节至低功耗模 式,包括:The method according to claim 4, wherein the digital to analog conversion module comprises a Codec chip, a SmartPA chip and a HIFI chip, and the digital to analog conversion module is adjusted to a low power mode , including:
    关闭所述codec芯片的DAC转换功能,将所述codec芯片的模拟增益调节为零,将所述SmartPA芯片调节至低功耗模式,以及将所述HIFI芯片关闭。Turning off the DAC conversion function of the codec chip, adjusting the analog gain of the codec chip to zero, adjusting the SmartPA chip to a low power mode, and turning off the HIFI chip.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 6, wherein the method further comprises:
    若所述语音帧包含的语音数据为有声数据,打开音频下行通路的节点。If the voice data contained in the voice frame is voiced data, the node of the audio downlink path is opened.
  8. 一种终端设备,其特征在于,包括:A terminal device, comprising:
    接收模块,用于接收网络侧设备下发的语音帧;a receiving module, configured to receive a voice frame delivered by the network side device;
    确定模块,用于确定所述语音帧是否为静默帧或无数据帧,或者确定所述语音帧包含的语音数据是否为无效语音数据;a determining module, configured to determine whether the voice frame is a silent frame or no data frame, or determine whether the voice data included in the voice frame is invalid voice data;
    节点调节模块,用于若所述语音帧为静默帧或无数据帧,或者所述语音帧包含的语音数据为无效语音数据,则关闭音频下行通路的节点。The node adjustment module is configured to close the node of the audio downlink path if the voice frame is a silent frame or no data frame, or the voice data included in the voice frame is invalid voice data.
  9. 根据权利要求8所述的终端设备,其特征在于,所述确定模块具体用于:The terminal device according to claim 8, wherein the determining module is specifically configured to:
    确定所述语音帧的格式是否为SID格式或No data格式;Determining whether the format of the voice frame is a SID format or a No data format;
    若所述语音帧的格式为SID格式或No data格式,则确定所述语音帧为静默帧或是无数据帧。If the format of the voice frame is SID format or No data format, it is determined whether the voice frame is a silent frame or no data frame.
  10. 根据权利要求8所述的终端设备,其特征在于,所述确定模块具体用于:The terminal device according to claim 8, wherein the determining module is specifically configured to:
    确定所述语音帧包含的语音数据的幅值是否低于设置门限;Determining whether the amplitude of the voice data included in the voice frame is lower than a set threshold;
    若所述语音帧包含的语音数据的幅值低于设置门限,则确定所述语音帧包含的语音数据为无效语音数据。If the amplitude of the voice data included in the voice frame is lower than a set threshold, it is determined that the voice data included in the voice frame is invalid voice data.
  11. 根据权利要求8-10任一项所述的终端设备,其特征在于,所述音频下行通路的节点包括音频算法模块、数模转换模块和语音播放模块,所述节点调节模块,包括:The terminal device according to any one of claims 8 to 10, wherein the node of the audio downlink path comprises an audio algorithm module, a digital-to-analog conversion module, and a voice playback module, and the node adjustment module includes:
    第一节点调节模块用于,关闭所述音频算法模块;The first node adjustment module is configured to close the audio algorithm module;
    第二节点调节模块用于,将所述数模转换模块调节至低功耗模式;a second node adjustment module is configured to adjust the digital to analog conversion module to a low power mode;
    第三节点调节模块用于,关闭所述语音播放模块。The third node adjustment module is configured to close the voice play module.
  12. 根据权利要求11所述的终端设备,其特征在于,所述音频算法模块包括回声抑制模块、降低噪音模块和增益调节模块,所述第一节点调节模块具 体用于:关闭所述回声抑制模块和所述降低噪音模块,以及将所述增益调节模块的数字增益调节为零。The terminal device according to claim 11, wherein the audio algorithm module comprises an echo suppression module, a noise reduction module and a gain adjustment module, and the first node adjustment module has The body is configured to: close the echo suppression module and the noise reduction module, and adjust a digital gain of the gain adjustment module to zero.
  13. 根据权利要求11所述的终端设备,其特征在于,所述数模转换模块包括Codec芯片、SmartPA芯片和HIFI芯片,第二节点调节模块具体用于:The terminal device according to claim 11, wherein the digital-to-analog conversion module comprises a Codec chip, a SmartPA chip and a HIFI chip, and the second node adjustment module is specifically configured to:
    关闭所述codec芯片的DAC转换功能,将所述codec芯片的模拟增益调节为零,将所述SmartPA芯片调节至低功耗模式,以及将所述HIFI芯片关闭。Turning off the DAC conversion function of the codec chip, adjusting the analog gain of the codec chip to zero, adjusting the SmartPA chip to a low power mode, and turning off the HIFI chip.
  14. 根据权利要求8-13任一项所述的终端设备,其特征在于,A terminal device according to any one of claims 8 to 13, characterized in that
    所述节点调节模块,还用于若所述语音帧包含的语音数据为有声数据,打开音频下行通路的节点。The node adjustment module is further configured to: if the voice data included in the voice frame is voiced data, open a node of the audio downlink path.
  15. 一种终端设备,其特征在于,包括:A terminal device, comprising:
    存储有可执行程序代码的存储器;a memory storing executable program code;
    与所述存储器耦合的处理器;a processor coupled to the memory;
    所述处理器调用所述存储器中存储的所述可执行程序代码,执行如权利要求1至7任一项所述的方法。 The processor invokes the executable program code stored in the memory to perform the method of any one of claims 1 to 7.
PCT/CN2016/103710 2016-10-28 2016-10-28 Method for adjusting call audio node, and terminal device WO2018076265A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201680089330.XA CN109716666A (en) 2016-10-28 2016-10-28 A kind of adjusting method and terminal device of audio node of conversing
PCT/CN2016/103710 WO2018076265A1 (en) 2016-10-28 2016-10-28 Method for adjusting call audio node, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/103710 WO2018076265A1 (en) 2016-10-28 2016-10-28 Method for adjusting call audio node, and terminal device

Publications (1)

Publication Number Publication Date
WO2018076265A1 true WO2018076265A1 (en) 2018-05-03

Family

ID=62024414

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/103710 WO2018076265A1 (en) 2016-10-28 2016-10-28 Method for adjusting call audio node, and terminal device

Country Status (2)

Country Link
CN (1) CN109716666A (en)
WO (1) WO2018076265A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125616A (en) * 2020-07-31 2022-03-01 华为技术有限公司 Low power consumption method and device of wireless earphone, wireless earphone and readable storage medium
CN114828170A (en) * 2021-01-27 2022-07-29 华为技术有限公司 Method and device for improving endurance time of communication device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111179973B (en) * 2020-01-06 2022-04-05 思必驰科技股份有限公司 Speech synthesis quality evaluation method and system
CN111309282B (en) * 2020-02-11 2023-08-22 RealMe重庆移动通信有限公司 Audio equipment power consumption control method and device, audio equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1765088A (en) * 2003-03-27 2006-04-26 飞思卡尔半导体公司 Communication of conversational data between terminals over a radio link
US20090124298A1 (en) * 2007-11-09 2009-05-14 Sony Ericsson Mobile Communications Japan, Inc. Mobile phone terminal and communication system
CN101990743A (en) * 2008-04-09 2011-03-23 爱立信电话股份有限公司 Discontinuous reception of bursts for voice calls
CN102131211A (en) * 2010-12-27 2011-07-20 大唐移动通信设备有限公司 Method and device for shutting off downlink service time slot in TD-SCDMA (Time Division-Synchronization Code Division Multiple Access) system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104754711A (en) * 2015-03-04 2015-07-01 广东欧珀移动通信有限公司 Call ending method and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1765088A (en) * 2003-03-27 2006-04-26 飞思卡尔半导体公司 Communication of conversational data between terminals over a radio link
US20090124298A1 (en) * 2007-11-09 2009-05-14 Sony Ericsson Mobile Communications Japan, Inc. Mobile phone terminal and communication system
CN101990743A (en) * 2008-04-09 2011-03-23 爱立信电话股份有限公司 Discontinuous reception of bursts for voice calls
CN102131211A (en) * 2010-12-27 2011-07-20 大唐移动通信设备有限公司 Method and device for shutting off downlink service time slot in TD-SCDMA (Time Division-Synchronization Code Division Multiple Access) system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114125616A (en) * 2020-07-31 2022-03-01 华为技术有限公司 Low power consumption method and device of wireless earphone, wireless earphone and readable storage medium
CN114828170A (en) * 2021-01-27 2022-07-29 华为技术有限公司 Method and device for improving endurance time of communication device

Also Published As

Publication number Publication date
CN109716666A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
US9635493B2 (en) Audio transfer using the bluetooth low energy standard
WO2018076265A1 (en) Method for adjusting call audio node, and terminal device
US9531501B2 (en) Data transfer between electronic devices
EP2392150B1 (en) Audio coding selection based on device operating condition
JP4913906B2 (en) Suppressing output offset in audio device
CN101652766B (en) Ad-hoc network power save system and method
WO2018018705A1 (en) Voice communication method, device, and terminal
US9008580B2 (en) Configuring a codec for communicating audio data using a Bluetooth network connection
WO2021160040A1 (en) Audio transmission method and electronic device
US9426569B2 (en) Audio signal bandwidth to codec bandwidth analysis and response
CN114339519A (en) Control method of wireless earphone and wireless earphone
US20140257800A1 (en) Error concealment for speech decoder
JP2007282090A (en) Portable information terminal and sound reproducing method
US9031619B2 (en) Visual indication of active speech reception
US20240029755A1 (en) Intelligent speech or dialogue enhancement
WO2023160286A1 (en) Noise reduction parameter adaptation method and apparatus
TWM626406U (en) Audio device supporting bluetooth encoding selection
JP2009089055A (en) Radio communication apparatus
CN114629987A (en) Method and related device for realizing ear return of Bluetooth headset
JP6603594B2 (en) Audio signal transmitting apparatus, audio signal transmitting method, control program, and computer-readable recording medium
CN115278461A (en) Control method and device of Bluetooth headset, bluetooth headset and storage medium
CN117042096A (en) Energy saving method, device and equipment for wireless communication equipment and readable storage medium
CA2852116C (en) Audio signal bandwith to codec bandwith analysis and response
CN114554335A (en) Device and method for improving call quality applied to wireless earphone
JP2018049124A (en) Radio communication device, radio communication system, and noise reduction method

Legal Events

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

Ref document number: 16919716

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16919716

Country of ref document: EP

Kind code of ref document: A1