CN114898760A - Voice coding method, device, electronic equipment and storage medium - Google Patents

Voice coding method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114898760A
CN114898760A CN202210225602.1A CN202210225602A CN114898760A CN 114898760 A CN114898760 A CN 114898760A CN 202210225602 A CN202210225602 A CN 202210225602A CN 114898760 A CN114898760 A CN 114898760A
Authority
CN
China
Prior art keywords
terminal
electric quantity
voice coding
coding mode
adopted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210225602.1A
Other languages
Chinese (zh)
Inventor
宋威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202210225602.1A priority Critical patent/CN114898760A/en
Publication of CN114898760A publication Critical patent/CN114898760A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/18Vocoders using multiple modes
    • G10L19/22Mode decision, i.e. based on audio signal content versus external parameters
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • G10L19/18Vocoders using multiple modes
    • G10L19/24Variable rate codecs, e.g. for generating different qualities using a scalable representation such as hierarchical encoding or layered encoding
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the disclosure discloses a voice coding method, which is executed by a terminal and comprises the following steps: acquiring electric quantity information of the terminal; determining a voice coding mode to be adopted in a call process according to the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode; and coding the voice data in the call process according to the determined voice coding mode. Therefore, the voice coding mode to be adopted in the call process can be adaptive to the electric quantity information of the terminal, compared with the mode of adopting a single fixed voice coding mode to carry out call, the terminal can determine the voice coding mode suitable for the current electric quantity according to the electric quantity information, and the voice data is coded by utilizing the voice coding mode, so that the technical effect of reducing the power consumption in the scene of low electric quantity can be realized while the high-quality call quality is ensured to be provided for a user.

Description

Voice coding method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of wireless communications technologies, but not limited to the field of wireless communications technologies, and in particular, to a speech coding method and apparatus, an electronic device, and a storage medium.
Background
In a mobile communication system, a call voice is encoded by an Adaptive Multi-Rate (AMR) voice encoder, and the AMR voice encoding method is divided into: a Narrow-Band speech coding (AMR-NB, AMR-Narrow Band) mode and a Wide-Band speech coding (AMR-WB, AMR-Wide Band) mode. The two differ in their voice bandwidth and/or sampling frequency. The speech coding method using the AMR-WB coding method can provide high quality speech quality for a call, but increases the power consumption of the terminal compared to the AMR-NB coding method. The AMR-NB coding mode is not as effective as the AMR-WB coding mode, but the call quality can also reach the basic requirement. Therefore, how to select the speech coding method for the call is an aspect to be considered.
Disclosure of Invention
The embodiment of the disclosure discloses a voice coding method, a voice coding device, electronic equipment and a storage medium.
According to a first aspect of the disclosed embodiments, there is provided a speech encoding method, the method being performed by a terminal, the method comprising:
acquiring electric quantity information of the terminal;
determining a voice coding mode to be adopted in the call process according to the electric quantity information; and coding the voice data in the call process according to the determined voice coding mode.
In one embodiment, the speech coding mode comprises at least one of a wideband speech coding AMR-WB mode and a narrowband speech coding AMR-NB mode.
In an embodiment, the determining, according to the electric quantity information, a speech coding mode to be adopted in a call process includes:
and determining a voice coding mode to be adopted in the call process according to the comparison result between the electric quantity indicated by the electric quantity information and the electric quantity threshold value.
In an embodiment, the determining, according to a comparison result between the electric quantity indicated by the electric quantity information and an electric quantity threshold, a speech coding mode to be used in a call process includes:
responding to the fact that the electric quantity is larger than an electric quantity threshold value, and determining that a voice coding mode to be adopted in a call process is the AMR-WB mode;
and/or the presence of a gas in the gas,
and responding to the fact that the electric quantity is smaller than the electric quantity threshold value, and determining that the voice coding mode to be adopted in the call process is the AMR-NB mode.
In one embodiment, the method comprises:
responding to the fact that the electric quantity indicated by the electric quantity information is smaller than an electric quantity threshold value before communication, and sending indication information to the network equipment;
or,
responding to the fact that the electric quantity indicated by the electric quantity information is smaller than an electric quantity threshold value in the call process, and sending indication information to the network equipment;
wherein the indication information indicates the voice coding mode to be adopted by the terminal.
In one embodiment, the sending, to the network device, indication information in response to determining that the power indicated by the power information is less than a power threshold before the call, includes:
and sending capability information to the network equipment in the process of establishing connection between the terminal and the network equipment, wherein the capability information indicates the voice coding mode to be adopted by the terminal.
In one embodiment, the sending, to the network device, indication information in response to determining that the power indicated by the power information is less than a power threshold during a call, includes:
and in the process of communicating between the terminal and the network equipment, responding to the updating of the voice coding mode to be adopted by the terminal, and sending updating information to the network equipment, wherein the updating information indicates the updated voice coding mode to be adopted by the terminal.
According to a second aspect of the embodiments of the present disclosure, there is provided a speech encoding method, the method being performed by a network device, the method comprising:
receiving indication information sent by a terminal, wherein the indication information indicates a voice coding mode to be adopted by the terminal in a communication process; the voice coding mode to be adopted by the terminal is determined based on the electric quantity of the terminal.
In one embodiment, the receiving the indication information sent by the terminal includes:
receiving capability information sent by the terminal in the process of establishing connection between the terminal and network equipment, wherein the capability information indicates the voice coding mode to be adopted by the terminal in the conversation process;
or,
and receiving update information sent by the terminal in the process of communication between the terminal and the network equipment, wherein the update information indicates an updated voice coding mode to be adopted by the terminal in the communication process.
According to a third aspect of the embodiments of the present disclosure, there is provided a speech encoding apparatus, the apparatus including:
the acquisition module is used for acquiring the electric quantity information of the terminal;
a determination module to: determining a voice coding mode to be adopted in the call process according to the electric quantity information; and coding the voice data in the call process according to the determined voice coding mode.
In one embodiment, the determining module is further configured to:
and determining a voice coding mode to be adopted in the call process according to a comparison result between the electric quantity indicated by the electric quantity information and the electric quantity threshold value.
In one embodiment, the determining module is further configured to:
responding to the fact that the electric quantity is larger than an electric quantity threshold value, and determining that a voice coding mode to be adopted in a call process is the AMR-WB mode;
and/or the presence of a gas in the gas,
and responding to the fact that the electric quantity is smaller than the electric quantity threshold value, and determining that the voice coding mode to be adopted in the call process is the AMR-NB mode.
In one embodiment, the apparatus further comprises:
a sending module configured to: responding to the fact that the electric quantity indicated by the electric quantity information is smaller than an electric quantity threshold value before communication, and sending indication information to the network equipment; or, in response to determining that the electric quantity indicated by the electric quantity information is smaller than an electric quantity threshold value in a call process, sending indication information to the network device, wherein the indication information indicates the voice coding mode to be adopted by the terminal.
In one embodiment, the sending module is further configured to:
and sending capability information to the network equipment in the process of establishing connection between the terminal and the network equipment, wherein the capability information indicates the voice coding mode to be adopted by the terminal.
In one embodiment, the sending module is further configured to:
and in the process of communicating between the terminal and the network equipment, responding to the updating of the voice coding mode to be adopted by the terminal, and sending updating information to the network equipment, wherein the updating information indicates the updated voice coding mode to be adopted by the terminal.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a speech encoding apparatus, the apparatus including:
the receiving module is used for receiving indication information sent by a terminal, wherein the indication information indicates a voice coding mode to be adopted by the terminal in a communication process.
In one embodiment, the receiving module is further configured to:
receiving capability information sent by the terminal in the process of establishing connection between the terminal and network equipment, wherein the capability information indicates the voice coding mode to be adopted by the terminal in the conversation process;
or,
and receiving update information sent by the terminal in the process of communication between the terminal and the network equipment, wherein the update information indicates an updated voice coding mode to be adopted by the terminal in the communication process.
According to a fifth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus, including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to: when the executable instructions are executed, the method of any embodiment of the present disclosure is implemented.
According to a sixth aspect of embodiments of the present disclosure, there is provided a computer storage medium storing a computer-executable program which, when executed by a processor, implements the method of any of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the disclosure, the electric quantity information of the terminal is acquired; determining a voice coding mode to be adopted in the call process according to the electric quantity information; and coding the voice data in the call process according to the determined voice coding mode. The voice coding mode to be adopted for the voice call is determined according to the electric quantity information of the terminal, so that the voice coding mode to be adopted in the call process can be suitable for the electric quantity information of the terminal, compared with the call adopting a single fixed voice coding mode, the terminal can determine the voice coding mode suitable for the current electric quantity according to the electric quantity information, and the voice data is coded by using the voice coding mode, so that the technical effect of reducing the power consumption in a scene with low electric quantity can be realized while the high-quality call quality is ensured to be provided for a user.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a method of speech encoding according to an example embodiment.
FIG. 2 is a flow diagram illustrating a method of speech encoding according to an example embodiment.
Fig. 3 is a flow diagram illustrating a method of speech encoding according to an example embodiment.
FIG. 4 is a flowchart illustrating a method of speech encoding according to an example embodiment.
FIG. 5 is a flowchart illustrating a method of speech encoding according to an example embodiment.
FIG. 6 is a flowchart illustrating a method of speech encoding according to an example embodiment.
FIG. 7 is a flowchart illustrating a method of speech encoding according to an example embodiment.
FIG. 8 is a flowchart illustrating a method of speech encoding according to an example embodiment.
FIG. 9 is a flowchart illustrating a method of speech encoding according to an example embodiment.
FIG. 10 is a flowchart illustrating a method of speech encoding according to an example embodiment.
Fig. 11 is a block diagram illustrating a speech encoding apparatus according to an example embodiment.
Fig. 12 is a block diagram illustrating a speech encoding apparatus according to an exemplary embodiment.
FIG. 13 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
In order to facilitate understanding of technical solutions of the embodiments of the present disclosure, a plurality of embodiments are listed in the embodiments of the present disclosure to clearly explain the technical solutions of the embodiments of the present disclosure. Of course, it can be understood by those skilled in the art that the embodiments provided in the present disclosure can be implemented alone, or in combination with other embodiments of the methods in the present disclosure, or in combination with some methods in other related technologies; the disclosed embodiments are not limited thereto.
For convenience of understanding of any embodiment of the present disclosure, first, an application scenario of a call is explained.
In some embodiments, the terminal may perform a media negotiation with the network during the call initiation process, and may negotiate what speech coding method is used by the terminal to perform a speech call during the media negotiation process. After the media negotiation process is completed, the speech coding mode is not generally changed again. Therefore, if the mobile phone has low power and is using the AMR-WB encoding method for a long time, the power consumption level of the user equipment is increased, and the user experience is affected.
As shown in fig. 1, the present embodiment provides a speech encoding method, where the method is performed by a terminal, and the method includes:
step 11, acquiring electric quantity information of the terminal;
step 12, determining a voice coding mode to be adopted in the communication process according to the electric quantity information;
and step 13, coding the voice data in the call process according to the determined voice coding mode.
The terminal related to the present disclosure may be, but is not limited to, a computer, a mobile phone, a wearable device, a vehicle-mounted terminal, a Road Side Unit (RSU), a smart home terminal, an industrial sensing device, and/or a medical device.
The network device related to the present disclosure may be an access network device or a core network device, such as a base station, and is not limited herein. Here, the base station may be various types of base stations, for example, a base station of a third generation mobile communication (3G) network, a base station of a fourth generation mobile communication (4G) network, a base station of a fifth generation mobile communication (5G) network, or other evolved base stations.
The voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. The call process in the present disclosure may be a process of a voice call.
In one embodiment, the speech bandwidth and/or sampling frequency of the wideband speech coding AMR-WB mode and the narrowband speech coding AMR-NB mode are different. Illustratively, the voice bandwidth of the AMR-WB is in the range of 50-7000khz, and the sampling frequency is 16 khz. Illustratively, the voice bandwidth of the AMR-NB is 300-3400khz, and the sampling frequency is 8 khz. It will be appreciated that the voice bandwidth range of AMR-WB is greater than the voice bandwidth range of AMR-NB, and the sampling frequency of AMR-WB is greater than the sampling frequency of AMR-NB. The speech coding method in the present disclosure is not limited to the two speech coding methods described above, and may be any other speech coding method.
In one embodiment, power information of the terminal is acquired, wherein the power information indicates the remaining power of the terminal; and determining a voice coding mode to be adopted by voice communication according to the residual electric quantity indicated by the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding (AMR-WB) mode and a narrowband voice coding (AMR-NB) mode.
In one embodiment, a power save instruction is received; acquiring electric quantity information of the terminal in response to the received power saving instruction, wherein the electric quantity information indicates the residual electric quantity of the terminal; determining a voice coding mode to be adopted in a call process according to the residual electric quantity indicated by the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode; and coding the voice data in the call process according to the determined voice coding mode. Here, it may be determined that the power saving instruction is received in response to receiving an operation of a power saving control of the terminal by a user.
In one embodiment, the power information of the terminal may be periodically acquired according to a predetermined period, wherein the power information indicates a remaining power of the terminal; determining a voice coding mode to be adopted in a call process according to the residual electric quantity indicated by the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode; and coding the voice data in the call process according to the determined voice coding mode. In one embodiment, the predetermined period may be determined according to a required duration of the terminal. Illustratively, in response to the duration being greater than a time threshold, determining that the predetermined period is less than a period threshold; alternatively, in response to the endurance time being less than a time threshold, determining that the predetermined period is greater than a period threshold. In one embodiment, the predetermined period may be determined according to a voice call frequency of the terminal. Illustratively, in response to the voice call frequency being greater than a frequency threshold, determining that the predetermined period is less than a period threshold; and/or, in response to the voice call frequency being less than a frequency threshold, determining that the predetermined period is greater than a period threshold. In the present disclosure, "greater than" has the meaning of "greater than or equal to" in some cases, and "less than" has the meaning of "less than or equal to" in some cases.
In one embodiment, the predetermined period may be a period set in advance. For example, the power information of the terminal may be acquired within a predetermined period. For example, the predetermined time period may be a time period corresponding to the day, for example, from 7 am to 19 pm, and the power information of the terminal may be acquired from 7 am to 19 pm.
In one embodiment, power information of the terminal is obtained, wherein the power information indicates a remaining power of the terminal obtained in a sampling period; determining a voice coding mode to be adopted in the call process according to the residual electric quantity indicated by the electric quantity information; and coding the voice data in the call process according to the determined voice coding mode.
In one embodiment, the method comprises the steps of acquiring power information of the terminal; and determining a voice coding mode to be adopted in the call process according to the electric quantity information. And in response to the voice coding mode to be adopted for the voice call, sending indication information indicating the adopted voice coding mode to network equipment.
In the embodiment of the disclosure, the electric quantity information of the terminal is acquired; determining a voice coding mode to be adopted in the call process according to the electric quantity information; and coding the voice data in the call process according to the determined voice coding mode. The voice coding mode to be adopted for the voice call is determined according to the electric quantity information of the terminal, so that the voice coding mode to be adopted in the call process can be suitable for the electric quantity information of the terminal, compared with the call adopting a single fixed voice coding mode, the terminal can determine the voice coding mode suitable for the current electric quantity according to the electric quantity information, and the voice data is coded by using the voice coding mode, so that the technical effect of reducing the power consumption in a scene with low electric quantity can be realized while the high-quality call quality is ensured to be provided for a user.
It should be noted that, as can be understood by those skilled in the art, the methods provided in the embodiments of the present disclosure can be executed alone or together with some methods in the embodiments of the present disclosure or some methods in the related art.
As shown in fig. 2, the present embodiment provides a speech encoding method, where the method is performed by a terminal, and the method includes:
and step 21, determining a voice coding mode to be adopted in the call process according to a comparison result between the electric quantity indicated by the electric quantity information and the electric quantity threshold value.
In one embodiment, the method comprises the steps of acquiring power information of the terminal; determining a voice coding mode to be adopted in a call process according to a comparison result between the electric quantity indicated by the electric quantity information and an electric quantity threshold value, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode; the speech data is encoded by the speech encoding method.
In one embodiment, power information of the terminal is obtained, wherein the power information indicates the remaining power of the terminal; determining a voice coding mode to be adopted in a call process according to a comparison result between the residual electric quantity and an electric quantity threshold, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode; the speech data is encoded by the speech encoding method.
In one embodiment, power information of the terminal is obtained, wherein the power information indicates the remaining power of the terminal; responding to the fact that the residual electric quantity is larger than an electric quantity threshold value, and determining that a voice coding mode to be adopted in a call process is the AMR-WB mode; coding voice data by using the AMR-WB mode; and/or, in response to the fact that the residual electric quantity is smaller than an electric quantity threshold value, determining that a voice coding mode to be adopted in a call process is the AMR-NB mode; and coding voice data by utilizing the AMR-NB mode.
In one embodiment, power information of the terminal is obtained, wherein the power information indicates a ratio of remaining power of the terminal to nominal total power; responding to the condition that the ratio is larger than the electric quantity threshold value, and determining that a voice coding mode to be adopted by voice communication is the AMR-WB mode; coding voice data by using the AMR-WB mode; and/or, in response to the proportion being smaller than the electric quantity threshold, determining that the voice coding mode to be adopted by the voice call is the AMR-NB mode; and coding voice data by utilizing the AMR-NB mode. Here, the charge threshold may be a proportional threshold, for example, 15%.
Here, it should be noted that "greater than" in the present disclosure has the meaning of "greater than or equal to" in some scenarios; in some contexts, "less than" in this disclosure has the meaning of "less than or equal to".
In one embodiment, the power threshold may be determined based on a required power savings value. Illustratively, in response to the requested power savings value being less than a power consumption threshold, determining that the power threshold is greater than a predetermined value; and/or, in response to the requested power savings value being greater than the power consumption threshold, determining that the power threshold is less than a predetermined value.
It should be noted that, as can be understood by those skilled in the art, the methods provided in the embodiments of the present disclosure can be executed alone or together with some methods in the embodiments of the present disclosure or some methods in the related art.
As shown in fig. 3, the present embodiment provides a speech encoding method, where the method is performed by a terminal, and the method includes:
step 31, in response to the electric quantity being greater than the electric quantity threshold, determining that the voice coding mode to be adopted in the call process is the AMR-WB mode; and/or, in response to the electric quantity being smaller than the electric quantity threshold value, determining that the voice coding mode to be adopted in the call process is the AMR-NB mode.
In one embodiment, the method comprises the steps of acquiring power information of the terminal; responding to the electric quantity larger than the electric quantity threshold value, and determining that a voice coding mode to be adopted by voice communication is the AMR-WB mode; and/or, in response to the electric quantity being smaller than the electric quantity threshold value, determining that the voice coding mode to be adopted by the voice call is the AMR-NB mode; and coding the voice data in the call process according to the determined voice coding mode.
For the description of step 31, refer to step 21, which is not described herein.
It should be noted that, as can be understood by those skilled in the art, the methods provided in the embodiments of the present disclosure can be executed alone or together with some methods in the embodiments of the present disclosure or some methods in the related art.
As shown in fig. 4, the present embodiment provides a speech encoding method, where the method is performed by a terminal, and the method includes:
step 41, in response to determining that the electric quantity indicated by the electric quantity information is smaller than an electric quantity threshold value before the call, sending indication information to the network device; or, in response to determining that the electric quantity indicated by the electric quantity information is smaller than an electric quantity threshold value in the call process, sending indication information to the network equipment; wherein the indication information indicates the voice coding mode to be adopted by the terminal.
In one embodiment, the method comprises the steps of acquiring power information of the terminal; and determining a voice coding mode to be adopted in the voice call process according to the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. And responding to the voice coding mode to be adopted by the voice call, and sending indication information to the network equipment, wherein the indication information indicates the voice coding mode to be adopted by the terminal. For example, if the terminal determines to adopt the AMR-WB mode, the indication information carries the information adopting the AMR-WB mode; and if the terminal determines to adopt the AMR-NB mode, the indication information carries the information adopting the AMR-NB mode. In this way, after receiving the indication information, the network device may determine a speech coding method for performing speech coding based on the indication information, and may perform coding of the speech data based on the speech coding method when the network device transmits the speech data to the base station.
In one embodiment, the indication information may be capability information. Before Voice call, in a Long-Term Evolution Voice Over Lte (VOLTE) call scenario, a terminal and a network may perform a media negotiation process during establishing a connection, and may bring up respective supported capability conditions, for example, capability information may be sent during the media negotiation process, where the capability information indicates a supported Voice coding manner. When the electric quantity is larger than the electric quantity threshold value, the capability information of the terminal (which can be carried by the message of the session description protocol SDP) can be provided with a field supporting AMR-WB; under the condition that the power is less than the power threshold, the capability information of the terminal (which can be carried by the message of the session description protocol SDP) will carry a field supporting AMR-NB, so that the established call speech coding mode will be executed only in the AMR-NB mode.
In one embodiment, in the voice call process, in response to that the electric quantity of the terminal is smaller than an electric quantity threshold, determining whether a voice coding mode used by the current call is an AMR-WB mode, if the voice coding mode used by the current call is determined to be the AMR-WB mode, the terminal can update the capability state by sending a re-INVITE message to the network equipment, and the re-INVITE message carries indication information (can be carried by SDP) only supporting the AMR-NB mode capability, so as to be synchronous with the network and update the voice coding mode to the AMR-NB mode, thereby reducing the power consumption of the call.
It should be noted that, as can be understood by those skilled in the art, the methods provided in the embodiments of the present disclosure can be executed alone or together with some methods in the embodiments of the present disclosure or some methods in the related art.
As shown in fig. 5, the present embodiment provides a speech encoding method, where the method is performed by a terminal, and the method includes:
step 51, in the process of establishing connection between the terminal and the network device, sending capability information to the network device, wherein the capability information indicates the voice coding mode to be adopted by the terminal in the communication process.
In one embodiment, before a voice call, acquiring electric quantity information of the terminal; and determining a voice coding mode to be adopted by voice communication according to the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. And sending capability information to the network equipment in the process of establishing connection between the terminal and the network equipment, wherein the capability information indicates the voice coding mode to be adopted by the terminal.
In one embodiment, before the terminal establishes a connection with a network device, power information of the terminal is acquired; and responding to the fact that the electric quantity is larger than the electric quantity threshold value, and determining that the voice coding mode to be adopted by the voice call is the AMR-WB mode. And in response to the determination that the voice coding to be adopted for voice call is an AMR-WB mode, sending capability information to the network equipment in the process of establishing connection between the terminal and the network equipment, wherein the capability information indicates the AMR-WB mode. The network device may perform speech coding based on the AMR-WB approach.
In one embodiment, before the terminal establishes a connection with a network device, power information of the terminal is acquired; and responding to the condition that the electric quantity is smaller than the electric quantity threshold value, and determining that the voice coding mode to be adopted by the voice call is the AMR-NB mode. And in response to determining that the voice code to be adopted by the voice call is an AMR-NB mode, sending capability information to the network equipment in the process of establishing connection between the terminal and the network equipment, wherein the capability information indicates the AMR-NB mode. The network device may perform speech coding based on the AMR-NB mode.
It should be noted that, as can be understood by those skilled in the art, the methods provided in the embodiments of the present disclosure can be executed alone or together with some methods in the embodiments of the present disclosure or some methods in the related art.
As shown in fig. 6, the present embodiment provides a speech encoding method, where the method is performed by a terminal, and the method includes:
and step 61, in the process of the communication between the terminal and the network equipment, responding to the updating of the voice coding mode to be adopted by the terminal in the communication process, and sending updating information to the network equipment, wherein the updating information indicates the updated voice coding mode to be adopted by the terminal.
In one embodiment, in the process of communication between the terminal and the network equipment, the electric quantity information of the terminal is acquired; and determining a voice coding mode to be adopted by voice communication according to the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. And responding to the updating of the voice coding mode to be adopted by the terminal, and sending updating information to the network equipment, wherein the updating information indicates the updated voice coding mode to be adopted by the terminal.
In one embodiment, the currently employed speech coding mode of the terminal is an AMR-WB mode. Acquiring the electric quantity information of the terminal in the process of communicating the terminal with the network equipment; and determining a voice coding mode to be adopted by voice communication according to the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. And in response to determining that the voice coding mode to be adopted by the terminal is an AMR-NB mode, sending update information to the network equipment, wherein the update information indicates that the updated voice coding mode to be adopted by the terminal is the AMR-NB mode.
In one embodiment, the currently adopted speech coding mode of the terminal is an AMR-NB mode. Acquiring the electric quantity information of the terminal in the process of communicating the terminal with the network equipment; and determining a voice coding mode to be adopted by voice communication according to the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. And in response to determining that the voice coding mode to be adopted by the terminal is an AMR-WB mode, sending update information to the network equipment, wherein the update information indicates that the updated voice coding mode to be adopted by the terminal is the AMR-WB mode.
It should be noted that, as can be understood by those skilled in the art, the methods provided in the embodiments of the present disclosure can be executed alone or together with some methods in the embodiments of the present disclosure or some methods in the related art.
As shown in fig. 7, in this embodiment, a speech encoding method is provided, where the method is performed by a network device, and the method includes:
step 71, receiving indication information sent by a terminal, wherein the indication information indicates a voice coding mode to be adopted by the terminal in a communication process; the voice coding mode to be adopted by the terminal is determined based on the electric quantity of the terminal.
The terminal related to the present disclosure may be, but is not limited to, a computer, a mobile phone, a wearable device, a vehicle-mounted terminal, a Road Side Unit (RSU), a smart home terminal, an industrial sensing device, and/or a medical device.
The network device related to the present disclosure may be an access network device or a core network device, such as a base station, and is not limited herein. Here, the base station may be various types of base stations, for example, a base station of a third generation mobile communication (3G) network, a base station of a fourth generation mobile communication (4G) network, a base station of a fifth generation mobile communication (5G) network, or other evolved base stations.
The voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. The call process in the present disclosure may be a process of a voice call.
In one embodiment, the speech bandwidth and/or sampling frequency of the wideband speech coding AMR-WB mode and the narrowband speech coding AMR-NB mode are different. Illustratively, the voice bandwidth of the AMR-WB is in the range of 50-7000khz, and the sampling frequency is 16 khz. Illustratively, the voice bandwidth of the AMR-NB is in the range of 300-3400khz, and the sampling frequency is 8 khz. It will be appreciated that the voice bandwidth range of AMR-WB is greater than the voice bandwidth range of AMR-NB, and the sampling frequency of AMR-WB is greater than the sampling frequency of AMR-NB. The speech coding method in the present disclosure is not limited to the two speech coding methods described above, and may be any other speech coding method.
In one embodiment, a terminal acquires power information of the terminal, wherein the power information indicates the remaining power of the terminal; and the terminal determines a voice coding mode to be adopted by the voice call according to the residual electric quantity indicated by the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. And the terminal sends indication information to network equipment, wherein the indication information indicates the voice coding mode to be adopted by the terminal. The network equipment receives the indication information. And the network equipment executes voice coding based on the voice coding mode indicated by the indication information.
In one embodiment, a terminal receives a power save instruction; in response to receiving the power saving instruction, the terminal acquires electric quantity information of the terminal, wherein the electric quantity information indicates the residual electric quantity of the terminal; and the terminal determines a voice coding mode to be adopted in the call process according to the residual electric quantity indicated by the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. Here, it may be determined that the power saving instruction is received in response to receiving an operation of a power saving control of the terminal by a user. And the terminal sends indication information to network equipment, wherein the indication information indicates the voice coding mode to be adopted by the terminal. The network equipment receives the indication information. And the network equipment executes voice coding based on the voice coding mode indicated by the indication information.
In one embodiment, a terminal may periodically acquire power information of the terminal according to a predetermined period, wherein the power information indicates a remaining power of the terminal; and the terminal determines a voice coding mode to be adopted in the call process according to the residual electric quantity indicated by the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. And the terminal sends indication information to network equipment, wherein the indication information indicates the voice coding mode to be adopted by the terminal. The network equipment receives the indication information. And the network equipment executes voice coding based on the voice coding mode indicated by the indication information.
In one embodiment, a terminal may acquire power information of the terminal within a predetermined period, wherein the power information indicates a remaining power of the terminal; and the terminal determines a voice coding mode to be adopted by the voice call according to the residual electric quantity indicated by the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. Illustratively, the predetermined time period may be a time period corresponding to the day, for example, 7 am to 19 pm. And the terminal sends indication information to network equipment, wherein the indication information indicates the voice coding mode to be adopted by the terminal. The network equipment receives the indication information. And the network equipment executes voice coding based on the voice coding mode indicated by the indication information.
In one embodiment, a terminal acquires power information of the terminal, wherein the power information indicates a remaining power of the terminal acquired in a sampling period; and the terminal determines a voice coding mode to be adopted by voice communication according to the average value of the residual electric quantity indicated by the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. And the terminal sends indication information to network equipment, wherein the indication information indicates the voice coding mode to be adopted by the terminal. The network equipment receives the indication information. And the network equipment executes voice coding based on the voice coding mode indicated by the indication information.
In one embodiment, a terminal acquires power information of the terminal; and the terminal determines a voice coding mode to be adopted by voice communication according to the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. And responding to the voice coding mode to be adopted by the voice call, and carrying out voice coding on the voice call by the terminal based on the voice coding mode. And the terminal sends indication information to network equipment, wherein the indication information indicates the voice coding mode to be adopted by the terminal. The network equipment receives the indication information. And the network equipment executes voice coding based on the voice coding mode indicated by the indication information.
In one embodiment, a terminal acquires power information of the terminal; and the terminal determines a voice coding mode to be adopted by voice communication according to the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. And responding to the voice coding mode to be adopted by the voice call, and sending indication information indicating the adopted voice coding mode to network equipment. The network equipment receives the indication information. The network device can execute voice coding based on the voice coding mode indicated by the indication information when the voice data needs to be sent to the terminal.
It should be noted that, as can be understood by those skilled in the art, the methods provided in the embodiments of the present disclosure can be executed alone or together with some methods in the embodiments of the present disclosure or some methods in the related art.
As shown in fig. 8, the present embodiment provides a speech encoding method, which is executed by a network device, and includes:
step 81, in the process of establishing connection between the terminal and the network device, receiving capability information sent by the terminal, wherein the capability information indicates the voice coding mode to be adopted by the terminal in the communication process.
In one embodiment, a terminal acquires power information of the terminal; and the terminal determines a voice coding mode to be adopted by voice communication according to the electric quantity information, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. And in the process of establishing connection between the terminal and the network equipment, the terminal sends capability information to the network equipment, wherein the capability information indicates the voice coding mode to be adopted by the terminal. And the network equipment receives the capability information sent by the terminal. And the network equipment executes voice coding based on the voice coding mode indicated by the capability information.
In one embodiment, before the terminal establishes a connection with a network device, the terminal acquires power information of the terminal; and responding to the fact that the electric quantity is larger than the electric quantity threshold value, and the terminal determines that the voice coding mode to be adopted by the voice call is the AMR-WB mode. And in response to determining that the voice coding to be adopted for voice call is an AMR-WB mode, the terminal sends capability information to the network equipment in the process of establishing connection between the terminal and the network equipment, wherein the capability information indicates the AMR-WB mode. The network device may perform speech coding based on the AMR-WB approach. And the network equipment receives the capability information sent by the terminal. And the network equipment executes voice coding based on the AMR-WB mode indicated by the capability information.
In one embodiment, before the terminal establishes a connection with a network device, the terminal acquires power information of the terminal; and responding to the condition that the electric quantity is smaller than the electric quantity threshold value, and the terminal determines that the voice coding mode to be adopted by the voice call is the AMR-NB mode. In response to determining that the voice code to be adopted for voice call is an AMR-NB mode, the terminal sends capability information to the network equipment in the process of establishing connection between the terminal and the network equipment, wherein the capability information indicates the AMR-NB mode. The network device may perform speech coding based on the AMR-NB mode. And the network equipment receives the capability information sent by the terminal. And the network equipment executes voice coding based on the AMR-NB mode indicated by the capability information.
It should be noted that, as can be understood by those skilled in the art, the methods provided in the embodiments of the present disclosure can be executed alone or together with some methods in the embodiments of the present disclosure or some methods in the related art.
As shown in fig. 9, the present embodiment provides a speech encoding method, which is executed by a network device, and includes:
step 91, receiving update information sent by the terminal in a communication process between the terminal and the network device, wherein the update information indicates an updated speech coding mode to be adopted by the terminal in the communication process.
In one embodiment, in the process of communication between the terminal and the network equipment, the terminal acquires the electric quantity information of the terminal; and according to the electric quantity information, the terminal determines a voice coding mode to be adopted by voice communication, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. And responding to the updating of the voice coding mode to be adopted by the terminal, and sending updating information to the network equipment by the terminal, wherein the updating information indicates the updated voice coding mode to be adopted by the terminal. And the network equipment receives the updating information sent by the terminal. And the network equipment executes voice coding based on the updated voice coding mode to be adopted by the terminal indicated by the updating information.
In one embodiment, the currently employed speech coding mode of the terminal is an AMR-WB mode. In the process of communicating between the terminal and the network equipment, the terminal acquires the electric quantity information of the terminal; and according to the electric quantity information, the terminal determines a voice coding mode to be adopted by voice communication, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. And in response to determining that the voice coding mode to be adopted by the terminal is the AMR-NB mode, the terminal sends update information to the network equipment, wherein the update information indicates that the updated voice coding mode to be adopted by the terminal is the AMR-NB mode. And the network equipment receives the updating information sent by the terminal. And the network equipment executes voice coding based on the AMR-NB mode indicated by the updating information.
In one embodiment, the currently adopted speech coding mode of the terminal is an AMR-NB mode. In the process of communicating between the terminal and the network equipment, the terminal acquires the electric quantity information of the terminal; and according to the electric quantity information, the terminal determines a voice coding mode to be adopted by voice communication, wherein the voice coding mode at least comprises one of a wideband voice coding AMR-WB mode and a narrowband voice coding AMR-NB mode. And in response to determining that the voice coding mode to be adopted by the terminal is an AMR-WB mode, the terminal sends update information to the network equipment, wherein the update information indicates that the updated voice coding mode to be adopted by the terminal is the AMR-WB mode. And the network equipment receives the updating information sent by the terminal. And the network equipment executes voice coding based on the AMR-WB mode indicated by the updating information.
It should be noted that, as can be understood by those skilled in the art, the methods provided in the embodiments of the present disclosure can be executed alone or together with some methods in the embodiments of the present disclosure or some methods in the related art.
For a better understanding of the embodiments of the present disclosure, the following further illustrates the technical solution of the present disclosure by an exemplary embodiment:
referring to fig. 10, in this embodiment, a speech encoding method is provided, where the method is executed by a network device, and the method includes:
step 101, the terminal initiates a call or receives a call.
Step 102, determining whether the electric quantity of the terminal is smaller than an electric quantity threshold value; if so, step 103 is performed, otherwise, step 104 is performed.
Step 103, in the media negotiation process, sending the capability information, wherein the capability information indicates that the terminal only supports AMR-NB.
And step 104, normally executing a call flow.
And 105, determining whether the electric quantity of the terminal is smaller than an electric quantity threshold, if so, executing a step 106, and otherwise, executing a step 104.
Step 106, determining whether the current speech coding mode is AMR-WB, if so, executing step 107, otherwise, executing step 108.
And step 107, reporting a re-INVITE message, wherein the message indicates that the updated voice coding mode is AMR-NB.
Step 108, the call continues to be held.
It should be noted that, as can be understood by those skilled in the art, the methods provided in the embodiments of the present disclosure can be executed alone or together with some methods in the embodiments of the present disclosure or some methods in the related art.
As shown in fig. 11, the present embodiment provides a speech encoding apparatus, including:
an obtaining module 111, configured to obtain power information of the terminal;
a determining module 112 configured to: determining a voice coding mode to be adopted in the call process according to the electric quantity information;
an encoding module 113 configured to: and coding the voice data in the call process according to the determined voice coding mode.
In one embodiment, the determining module 112 is further configured to:
and determining a voice coding mode to be adopted in the call process according to the comparison result between the electric quantity indicated by the electric quantity information and the electric quantity threshold value.
In one embodiment, the determining module 112 is further configured to:
responding to the fact that the electric quantity is larger than an electric quantity threshold value, and determining that a voice coding mode to be adopted in a call process is the AMR-WB mode;
and/or the presence of a gas in the gas,
and responding to the fact that the electric quantity is smaller than the electric quantity threshold value, and determining that the voice coding mode to be adopted in the call process is the AMR-NB mode.
In one embodiment, the apparatus further comprises:
a sending module 114, configured to: responding to the fact that the electric quantity indicated by the electric quantity information is smaller than an electric quantity threshold value before communication, and sending indication information to the network equipment; or, in response to determining that the electric quantity indicated by the electric quantity information is smaller than an electric quantity threshold value in a call process, sending indication information to the network device, wherein the indication information indicates the voice coding mode to be adopted by the terminal.
In one embodiment, the sending module 114 is further configured to:
and sending capability information to the network equipment in the process of establishing connection between the terminal and the network equipment, wherein the capability information indicates the voice coding mode to be adopted by the terminal.
In one embodiment, the sending module 114 is further configured to:
and in the process of communicating between the terminal and the network equipment, responding to the updating of the voice coding mode to be adopted by the terminal, and sending updating information to the network equipment, wherein the updating information indicates the updated voice coding mode to be adopted by the terminal.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
As shown in fig. 12, the present embodiment provides a speech encoding apparatus, including:
a receiving module 121, configured to receive indication information sent by a terminal, where the indication information indicates the speech coding mode to be used by the terminal.
In one embodiment, the receiving module 121 is further configured to:
receiving capability information sent by the terminal in the process of establishing connection between the terminal and network equipment, wherein the capability information indicates the voice coding mode to be adopted by the terminal in the conversation process;
or,
and receiving update information sent by the terminal in the process of communication between the terminal and the network equipment, wherein the update information indicates an updated voice coding mode to be adopted by the terminal in the communication process.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
An embodiment of the present disclosure further provides a communication device, including:
an antenna;
a memory;
and the processor is respectively connected with the antenna and the memory and used for controlling the antenna to transmit and receive wireless signals by executing the executable program stored in the memory, and can execute the steps of the wireless network access method provided by any of the foregoing embodiments.
The communication device provided in this embodiment may be the aforementioned terminal or base station. The terminal can be various human-borne terminals or vehicle-borne terminals. The base stations may be various types of base stations, such as 4G base stations or 5G base stations, and so on.
The antenna may be various types of antennas, for example, a mobile antenna such as a 3G antenna, a 4G antenna, or a 5G antenna; the antenna may further include: a WiFi antenna or a wireless charging antenna, etc.
The memory may include various types of storage media, which are non-transitory computer storage media capable of continuing to remember the information stored thereon after a communication device has been powered down.
The processor may be connected to the antenna and the memory via a bus or the like for reading an executable program stored on the memory, e.g. at least one of the methods shown in any of the embodiments of the present disclosure.
The embodiments of the present disclosure further provide a non-transitory computer-readable storage medium, which stores an executable program, where the executable program, when executed by a processor, implements the steps of the wireless network access method provided in any of the foregoing embodiments, for example, at least one of the methods shown in any of the embodiments of the present disclosure.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 13 is a block diagram illustrating an electronic device 600 according to an example embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 13, electronic device 600 may include one or more of the following components: processing component 602, memory 604, power component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor component 614, and communication component 616.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operation at the device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 606 provides power to the various components of electronic device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.
The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the electronic device 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the electronic device 600, the sensor component 614 may also detect a change in position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, orientation or acceleration/deceleration of the electronic device 600, and a change in temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the electronic device 600 and other devices in a wired or wireless manner. The electronic device 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 604 comprising instructions, executable by the processor 820 of the electronic device 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (19)

1. A speech coding method, characterized in that the method is performed by a terminal, the method comprising:
acquiring electric quantity information of the terminal;
determining a voice coding mode to be adopted in the call process according to the electric quantity information;
and coding the voice data in the call process according to the determined voice coding mode.
2. The method of claim 1, wherein the speech coding scheme comprises at least one of a wideband speech coding (AMR-WB) scheme and a narrowband speech coding (AMR-NB) scheme.
3. The method according to claim 1, wherein the determining a speech coding mode to be used in a call process according to the electric quantity information comprises:
and determining a voice coding mode to be adopted in the call process according to the comparison result between the electric quantity indicated by the electric quantity information and the electric quantity threshold value.
4. The method according to claim 3, wherein the determining, according to the comparison result between the electric quantity indicated by the electric quantity information and the electric quantity threshold, the voice coding mode to be adopted in the call process comprises:
responding to the fact that the electric quantity is larger than an electric quantity threshold value, and determining that a voice coding mode to be adopted in a call process is the AMR-WB mode;
and/or the presence of a gas in the gas,
and responding to the fact that the electric quantity is smaller than the electric quantity threshold value, and determining that the voice coding mode to be adopted in the call process is the AMR-NB mode.
5. The method according to claim 1, characterized in that it comprises:
responding to the fact that the electric quantity indicated by the electric quantity information is smaller than an electric quantity threshold value before communication, and sending indication information to the network equipment;
or,
responding to the fact that the electric quantity indicated by the electric quantity information is smaller than an electric quantity threshold value in the call process, and sending indication information to the network equipment;
the indication information indicates the voice coding mode to be adopted by the terminal.
6. The method of claim 5, wherein the sending the indication information to the network device in response to determining that the power indicated by the power information is less than the power threshold before the call comprises:
and sending capability information to the network equipment in the process of establishing connection between the terminal and the network equipment, wherein the capability information indicates the voice coding mode to be adopted by the terminal.
7. The method of claim 5, wherein the sending indication information to the network device in response to determining that the power indicated by the power information is less than the power threshold during the call comprises:
and in the process of communicating between the terminal and the network equipment, responding to the updating of the voice coding mode to be adopted by the terminal, and sending updating information to the network equipment, wherein the updating information indicates the updated voice coding mode to be adopted by the terminal.
8. A method of speech coding, the method being performed by a network device, the method comprising:
receiving indication information sent by a terminal, wherein the indication information indicates a voice coding mode to be adopted by the terminal in a communication process; the voice coding mode to be adopted by the terminal is determined based on the electric quantity of the terminal.
9. The method of claim 8, wherein the receiving the indication information sent by the terminal comprises:
receiving capability information sent by the terminal in the process of establishing connection between the terminal and network equipment, wherein the capability information indicates the voice coding mode to be adopted by the terminal in the conversation process;
or,
and receiving update information sent by the terminal in the process of communication between the terminal and the network equipment, wherein the update information indicates an updated voice coding mode to be adopted by the terminal in the communication process.
10. An apparatus for speech coding, the apparatus comprising:
the acquisition module is used for acquiring the electric quantity information of the terminal;
a determination module to: determining a voice coding mode to be adopted in the call process according to the electric quantity information;
an encoding module to: and coding the voice data in the call process according to the determined voice coding mode.
11. The apparatus of claim 10, wherein the determining module is further configured to:
and determining a voice coding mode to be adopted in the call process according to the comparison result between the electric quantity indicated by the electric quantity information and the electric quantity threshold value.
12. The apparatus of claim 10, wherein the determining module is further configured to:
responding to the fact that the electric quantity is larger than an electric quantity threshold value, and determining that a voice coding mode to be adopted in a call process is the AMR-WB mode;
and/or the presence of a gas in the gas,
and responding to the fact that the electric quantity is smaller than the electric quantity threshold value, and determining that the voice coding mode to be adopted in the call process is the AMR-NB mode.
13. The apparatus of claim 10, further comprising:
a sending module configured to: responding to the fact that the electric quantity indicated by the electric quantity information is smaller than an electric quantity threshold value before communication, and sending indication information to the network equipment; or, in response to determining that the electric quantity indicated by the electric quantity information is smaller than an electric quantity threshold value in a call process, sending indication information to the network device, wherein the indication information indicates the voice coding mode to be adopted by the terminal.
14. The apparatus of claim 13, wherein the sending module is further configured to:
and sending capability information to the network equipment in the process of establishing connection between the terminal and the network equipment, wherein the capability information indicates the voice coding mode to be adopted by the terminal.
15. The apparatus of claim 13, wherein the sending module is further configured to:
and in the process of communicating between the terminal and the network equipment, responding to the update of the voice coding mode to be adopted by the terminal, and sending update information to the network equipment, wherein the update information indicates the updated voice coding mode to be adopted by the terminal.
16. An apparatus for speech coding, the apparatus comprising:
the receiving module is configured to receive indication information sent by a terminal, where the indication information indicates the speech coding mode to be used by the terminal.
17. The apparatus of claim 16, wherein the receiving module is further configured to:
receiving capability information sent by the terminal in the process of establishing connection between the terminal and network equipment, wherein the capability information indicates the voice coding mode to be adopted by the terminal in the conversation process;
or,
and receiving update information sent by the terminal in the process of communication between the terminal and the network equipment, wherein the update information indicates an updated voice coding mode to be adopted by the terminal in the communication process.
18. An electronic device, characterized in that the electronic device comprises: a processor and a memory for storing a computer service capable of running on the processor, wherein the processor is configured to implement the method of any one of claims 1 to 6 or 7 to 9 when running the computer service.
19. A storage medium having computer-executable instructions embodied therein, the computer-executable instructions being executable by a processor to implement the method of any one of claims 1 to 6 or 7 to 9.
CN202210225602.1A 2022-03-09 2022-03-09 Voice coding method, device, electronic equipment and storage medium Pending CN114898760A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210225602.1A CN114898760A (en) 2022-03-09 2022-03-09 Voice coding method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210225602.1A CN114898760A (en) 2022-03-09 2022-03-09 Voice coding method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114898760A true CN114898760A (en) 2022-08-12

Family

ID=82714467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210225602.1A Pending CN114898760A (en) 2022-03-09 2022-03-09 Voice coding method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114898760A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116348952A (en) * 2023-02-09 2023-06-27 北京小米移动软件有限公司 Audio signal processing device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116348952A (en) * 2023-02-09 2023-06-27 北京小米移动软件有限公司 Audio signal processing device, equipment and storage medium
WO2024164284A1 (en) * 2023-02-09 2024-08-15 北京小米移动软件有限公司 Audio signal processing method, apparatus, device, and storage medium

Similar Documents

Publication Publication Date Title
US10009283B2 (en) Method and device for processing information
US11284398B2 (en) Communication link configuration method and device
CN105427161A (en) Monetary exchange rate exchange method and device
US11722283B2 (en) Information transmission method, device, system, and storage medium
CN108702708B (en) Downlink control signaling detection method, device and storage medium
CN109314845B (en) Internet of vehicles synchronization method and device and computer readable storage medium
CN114898760A (en) Voice coding method, device, electronic equipment and storage medium
CN110637502B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN111699724A (en) Method and device for controlling terminal and storage medium
CN111130183A (en) Wireless charging method and device, wireless charging equipment and electronic equipment
CN112752328A (en) Network control method, device and storage medium
CN107039054B (en) The way of recording and device
EP3264735B1 (en) Method and device for determining coding format in volte
US20230379892A1 (en) Time segment request method and apparatus, time segment configuration method and apparatus
CN112448052B (en) Battery charging control method and device
CN110069310B (en) Method and device for switching desktop wallpaper and storage medium
EP3310022B1 (en) Method and apparatus for voice call
US11863480B2 (en) Method and device for transmitting reference signal
CN107071859A (en) network connection processing method, device and terminal
CN109417463B (en) Method and device for determining PUCCH needing transmission
CN115940310A (en) Charging method, charging device, and storage medium
CN108551459B (en) Method and device for communication between devices and readable storage medium
CN107708106B (en) User identification card management method and user identification card management device
CN110556895B (en) Charging method and device and electronic equipment
CN108650322B (en) Battery data processing method and device

Legal Events

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