CN115113844A - Audio processing method, intelligent terminal and storage medium - Google Patents

Audio processing method, intelligent terminal and storage medium Download PDF

Info

Publication number
CN115113844A
CN115113844A CN202210725890.7A CN202210725890A CN115113844A CN 115113844 A CN115113844 A CN 115113844A CN 202210725890 A CN202210725890 A CN 202210725890A CN 115113844 A CN115113844 A CN 115113844A
Authority
CN
China
Prior art keywords
sampling rate
audio sampling
audio
scene
intelligent terminal
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
CN202210725890.7A
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.)
Shanghai Chuanying Information Technology Co Ltd
Original Assignee
Shanghai Chuanying Information Technology 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 Shanghai Chuanying Information Technology Co Ltd filed Critical Shanghai Chuanying Information Technology Co Ltd
Priority to CN202210725890.7A priority Critical patent/CN115113844A/en
Publication of CN115113844A publication Critical patent/CN115113844A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Abstract

The application discloses an audio processing method, an intelligent terminal and a storage medium, wherein the audio processing method comprises the following steps: acquiring scene information; and determining or generating audio sampling rates of the intelligent terminal and the opposite terminal equipment to the audio data according to the scene information. According to the audio processing method provided by the embodiment of the application, the audio sampling rate of the intelligent terminal and the opposite terminal device to the audio data is intelligently adjusted according to the scene requirements, bandwidth resources are fully utilized, and user experience is improved.

Description

Audio processing method, intelligent terminal and storage medium
Technical Field
The present application relates to the field of audio processing technologies, and in particular, to an audio processing method, an intelligent terminal, and a storage medium.
Background
Along with the rapid development and popularization of intelligent terminals, more and more users like to use the intelligent terminals to be connected with third-party equipment through bluetooth so as to output audio data through the third-party equipment.
In the course of conceiving and implementing the present application, the inventors found that at least the following problems existed: the encoding and decoding of audio data usually adopt a fixed sampling rate, bandwidth resources cannot be fully utilized, and user experience is influenced.
The foregoing description is provided for general background information and is not admitted to be prior art.
Disclosure of Invention
The application aims to provide an audio processing method, an intelligent terminal and a storage medium, which can intelligently adjust the audio sampling rate of audio data according to scene requirements, realize full utilization of bandwidth resources and improve user experience.
The application provides an audio processing method, which comprises the following steps:
step S1, scene information is obtained;
and step S2, determining or generating the audio sampling rate of the intelligent terminal and the opposite terminal equipment to the audio data according to the scene information.
Optionally, the step S2 includes:
determining or generating a target audio sampling rate according to the scene information;
and adjusting the current audio sampling rate of the audio data to the target audio sampling rate, and sending the target audio sampling rate to the opposite terminal equipment so as to adjust the audio sampling rate of the opposite terminal equipment to the audio data to the target audio sampling rate.
Optionally, the determining or generating a target audio sampling rate according to the scene information includes:
and determining or generating the target audio sampling rate according to the scene information and the link information between the intelligent terminal and the opposite terminal equipment.
Optionally, the determining or generating the target audio sampling rate according to the scene information and the link information between the intelligent terminal and the peer device includes:
if the scene information is a first type scene, increasing an initial audio sampling rate to obtain the target audio sampling rate; and/or the presence of a gas in the gas,
if the scene information is a second type scene, reducing the initial audio sampling rate to obtain the target audio sampling rate; and the target audio sampling rate is less than the link rate between the intelligent terminal and the opposite terminal equipment.
Optionally, the determining or generating a target audio sampling rate according to the scene information includes:
and determining or generating a target audio sampling rate corresponding to the scene information according to the corresponding relation between the scene type and the audio sampling rate in the scene information.
Optionally, the step S1 includes:
responding to a first preset operation, and outputting a scene selection interface;
and receiving a selection operation aiming at the scene selection interface, and determining or generating the scene information.
Optionally, the method further comprises:
responding to a second preset operation, and outputting an audio sampling rate adjustment interface;
and adjusting the audio sampling rate of the intelligent terminal and the opposite terminal equipment to the audio data according to the input adjustment instruction.
Optionally, before the step S1, the method further includes:
acquiring preset information of the opposite terminal equipment;
and executing the step S1 when it is determined that the peer device supports the custom audio sampling rate function according to the preset information.
The application also provides an intelligent terminal, intelligent terminal includes: the audio processing method comprises a memory and a processor, wherein the memory stores an audio processing program, and the audio processing program realizes the steps of the audio processing method when being executed by the processor.
The present application further provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the audio processing method as set forth in any of the above.
The audio processing method, the intelligent terminal and the storage medium provided by the embodiment of the application comprise the following steps: acquiring scene information; and determining or generating audio sampling rates of the intelligent terminal and the opposite terminal equipment to the audio data according to the scene information. Therefore, the audio sampling rate of the intelligent terminal and the opposite terminal device to the audio data is intelligently adjusted according to the scene requirements, bandwidth resources are fully utilized, and user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of a hardware structure of an intelligent terminal according to an embodiment of the present disclosure;
fig. 2 is a communication network system architecture diagram according to an embodiment of the present application;
fig. 3 is a schematic flowchart of an audio processing method according to an embodiment of the present application;
fig. 4 is a first interface schematic diagram of the intelligent terminal in the embodiment of the present application;
fig. 5 is a schematic interface diagram ii of the intelligent terminal in the embodiment of the present application;
fig. 6 is an interaction diagram of an audio processing method according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings. With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. The drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the concepts of the application by those skilled in the art with reference to specific embodiments.
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 application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the recitation of an element by the phrase "comprising an … …" does not exclude the presence of additional like elements in the process, method, article, or apparatus that comprises the element, and optionally, identically named components, features, and elements in different embodiments of the present application may have different meanings, as may be determined by their interpretation in the embodiment or by their further context within the embodiment.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope herein. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context. Also, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes" and/or "including," when used in this specification, specify the presence of stated features, steps, operations, elements, components, items, species, and/or groups, but do not preclude the presence, or addition of one or more other features, steps, operations, elements, components, species, and/or groups thereof. The terms "or" and/or "as used herein are to be construed as inclusive or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a; b; c; a and B; a and C; b and C; A. b and C ". An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some way.
It should be understood that, although the steps in the flowcharts in the embodiments of the present application are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, in different orders, and may be performed alternately or partially with other steps or at least some of the sub-steps or stages of other steps.
It should be noted that step numbers such as S1 and S2 are used herein for the purpose of more clearly and briefly describing the corresponding content, and do not constitute a substantial limitation on the sequence, and those skilled in the art may perform S2 first and then S1 in specific implementation, which should be within the scope of the present application.
It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for the convenience of description of the present application, and have no specific meaning in themselves. Thus, "module", "component" or "unit" may be used mixedly.
The smart terminal may be implemented in various forms. For example, the smart terminal described in the present application may include smart terminals such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and fixed terminals such as a Digital TV, a desktop computer, and the like.
While the following description will be given by way of example of a smart terminal, those skilled in the art will appreciate that the configuration according to the embodiments of the present application can be applied to a fixed type terminal in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of an intelligent terminal for implementing various embodiments of the present application, the intelligent terminal 100 may include: an RF (Radio Frequency) unit 101, a wireless network module 102, an audio output unit 103, an a/V (audio/video) input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, and a power supply 111. Those skilled in the art will appreciate that the intelligent terminal architecture shown in fig. 1 does not constitute a limitation of the intelligent terminal, and that the intelligent terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The following specifically describes each component of the intelligent terminal with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Alternatively, the radio frequency unit 101 may also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex-Long Term Evolution), TDD-LTE (Time Division duplex-Long Term Evolution, Time Division Long Term Evolution), 5G, and so on.
The wireless network belongs to the short-distance wireless transmission technology, the intelligent terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the wireless network module 102, and wireless broadband internet access is provided for the user. Although fig. 1 shows the wireless network module 102, it is understood that it does not belong to the essential constitution of the intelligent terminal and may be omitted entirely as needed within a scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the wireless network module 102 or stored in the memory 109 into an audio signal and output as sound when the smart terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the smart terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the wireless network module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The smart terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Optionally, the light sensor includes an ambient light sensor and a proximity sensor, the ambient light sensor may adjust the brightness of the display panel 1061 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1061 and/or the backlight when the smart terminal 100 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the intelligent terminal. Alternatively, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Optionally, the touch detection device detects a touch direction of a user, detects a signal caused by a touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. Alternatively, the touch panel 1071 may be implemented in various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Optionally, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc., and the like, without limitation.
Alternatively, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the smart terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the smart terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the smart terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the smart terminal 100 or may be used to transmit data between the smart terminal 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a program storage area and a data storage area, and optionally, the program storage area may store an operating system, an application program (such as a sound playing function, an image playing function, and the like) required by at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Optionally, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the intelligent terminal, connects various parts of the entire intelligent terminal using various interfaces and lines, and performs various functions of the intelligent terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the intelligent terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, optionally, the application processor mainly handles operating systems, user interfaces, application programs, etc., and the modem processor mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The intelligent terminal 100 may further include a power supply 111 (such as a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
Although not shown in fig. 1, the smart terminal 100 may further include a bluetooth module or the like, which is not described herein.
In order to facilitate understanding of the embodiments of the present application, a communication network system on which the intelligent terminal of the present application is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present disclosure, where the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Optionally, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Alternatively, the eNodeB2021 may be connected with other enodebs 2022 through a backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an HSS (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a PGW (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. Optionally, the MME2031 is a control node that handles signaling between the UE201 and the EPC203, providing bearer and connection management. HSS232 is used to provide registers to manage functions such as a home location register (not shown) and holds subscriber-specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address assignment for UE201 and other functions, and PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for a policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present application is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems (e.g. 5G), and the like.
Based on the above intelligent terminal hardware structure and communication network system, various embodiments of the present application are provided.
Referring to fig. 3, for the audio processing method provided in the embodiment of the present application, the method may be applicable to a situation where an audio sampling rate of audio data is adjusted, and the method may be executed by an audio processing apparatus provided in the embodiment of the present application, where the apparatus may be implemented in a software and/or hardware manner, and optionally, the apparatus may be specifically an intelligent terminal or the like. The smart terminal may be implemented in various forms, and the smart terminal described in this embodiment may include terminals such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a wearable device, a smart band, and a pedometer. In this embodiment, taking an execution subject of the audio processing method as an example of an intelligent terminal, the method includes:
step S1: and acquiring scene information.
Optionally, the scene information may be used to represent a current scene of the intelligent terminal, and optionally, whether the intelligent terminal is in a low-delay-demand scene such as a foreground running game application, or whether the intelligent terminal is in a high-quality audio-demand scene such as a foreground running music application, or the like. Optionally, the scene information may specifically include a scene type, and the like, for example, the intelligent terminal may obtain the scene information by obtaining foreground-running application information and then obtaining the scene information from the foreground-running application information, or may obtain the scene information according to an operation input by a user by obtaining the operation input by the user.
Optionally, the step S1 includes:
responding to the first preset operation, and outputting a scene selection interface;
and receiving a selection operation aiming at the scene selection interface, and determining or generating the scene information.
Optionally, the intelligent terminal may be provided with an audio sampling rate setting interface, the audio sampling rate setting interface may be provided with a scene selection function, and when receiving a first preset operation, the scene selection interface corresponding to the scene selection function is output. The first preset operation can be set according to the actual situation, and includes but is not limited to detecting a preset gesture or gesture operation, detecting a preset voice instruction, operating a preset function key, and the like. Optionally, the preset gesture may be an air gesture or the like; the preset gesture operation comprises but is not limited to preset track sliding, double clicking, single clicking, long pressing and the like; the preset voice instruction can be a scene selection voice instruction and the like; the preset function key can be a scene selection key, a scene setting key and the like.
Optionally, the scene selection interface may provide a plurality of scenes for a user to select, and the provided scenes may be displayed in the form of application type names, scene names, and the like, and when the user selects different application type names or scene names, the corresponding determined or generated scene information may be different. Referring to fig. 4, after the user clicks the scene setting button shown in (a) of fig. 4, the intelligent terminal may output a scene selection interface including a plurality of application type names, such as games, music, and the like, and if the user clicks the game type name, the intelligent terminal may correspondingly obtain low-latency required scene information; if the user clicks the music type name, the intelligent terminal correspondingly obtains high-quality audio demand scene information and the like. Therefore, the user experience is further improved by providing a scene selection interface for the user to select the corresponding scene according to the requirement.
Step S2: and determining or generating audio sampling rates of the intelligent terminal and the opposite terminal equipment to the audio data according to the scene information.
Optionally, for different scenes, the audio sampling rates of the audio data by the intelligent terminal and the peer device are required to be different, for example, for a scene with a low delay requirement, a scene in which the user experience is obviously affected by a large delay, such as a scene of playing games, the audio sampling rate of the audio data may be required to be reduced, so that the sound quality is sacrificed and the delay is improved; for high-quality demand scenes, optionally, scenes in which poor audio quality will significantly affect user experience, such as music playing, video playing, and the like, it may be required to increase the audio sampling rate of audio data as much as possible, so that partial time delay is sacrificed to replace the improvement of audio quality. Therefore, according to different scenes, the audio sampling rates of the audio data by the intelligent terminal and the opposite-end device need to be intelligently determined or generated, so that the bandwidth is fully utilized, and a user can obtain better experience. Alternatively, the audio sampling rate for the audio data may be an audio encoding sampling rate for the audio data, and may also be an audio decoding sampling rate for the audio data.
Optionally, the step S2 includes:
determining or generating a target audio sampling rate according to the scene information;
and sending the target audio sampling rate to the opposite terminal equipment so as to adjust the audio sampling rate of the opposite terminal equipment to the audio data to be the target audio sampling rate.
Optionally, when audio data is transmitted between the intelligent terminal and the peer device, it is generally required that the audio sampling rate of the intelligent terminal for the audio data is the same as the audio sampling rate of the peer device for the audio data. After a target audio sampling rate is determined or generated according to the scene information, the current audio sampling rate of the intelligent terminal for the audio data is adjusted to the target audio sampling rate, and the target audio sampling rate needs to be sent to the opposite terminal device, so that the audio sampling rate of the opposite terminal device for the audio data is adjusted to the target audio sampling rate, and therefore the audio sampling rate of the intelligent terminal for the audio data is ensured to be the same as the audio sampling rate of the opposite terminal device for the audio data. Optionally, after the target audio sampling rate is determined or generated according to the scene information, the audio sampling rate of the audio data by the audio control module of the intelligent terminal may be adjusted to the target audio sampling rate, so as to determine or generate the audio sampling rate of the audio data by the intelligent terminal according to the scene information.
Optionally, the intelligent terminal may send the target audio sampling rate to the peer device by sending a control instruction including the target audio sampling rate to the peer device. Optionally, the determining or generating the target audio sampling rate according to the scene information may be that, under the condition that correspondence between different scenes and audio sampling rates is pre-stored, the audio sampling rate corresponding to the scene information is determined as the target audio sampling rate by querying the correspondence, or the obtained audio sampling rate is determined as the target audio sampling rate by increasing or decreasing the initial audio sampling rate according to a preset manner, for example, one or more preset sampling rate thresholds are increased on the basis of the initial audio sampling rate. Therefore, the audio sampling rate of the intelligent terminal and the opposite terminal device to the audio data can be quickly adjusted, and the user experience is further improved.
Optionally, the determining or generating a target audio sampling rate according to the scene information includes:
and determining or generating the target audio sampling rate according to the scene information and the link information between the intelligent terminal and the opposite terminal equipment.
Optionally, since link information, such as a link rate, between the intelligent terminal and the peer device determines a frequency bandwidth of a signal that can effectively pass through a link between the intelligent terminal and the peer device, the target audio sampling rate cannot exceed the link rate between the intelligent terminal and the peer device. That is, link information between the intelligent terminal and the peer device needs to be considered when determining or generating the target audio sampling rate. Therefore, the target audio sampling rate can be automatically determined or generated according to the scene information and the link information between the intelligent terminal and the opposite terminal device, so that the determined or generated target audio sampling rate can fully utilize bandwidth resources as much as possible. Optionally, when the intelligent terminal is connected with the peer device via bluetooth, the link may be a high-level communication link.
Optionally, the determining or generating the target audio sampling rate according to the scene information and the link information between the intelligent terminal and the peer device includes:
if the scene information is a first type scene, increasing an initial audio sampling rate to obtain the target audio sampling rate; and/or the presence of a gas in the gas,
if the scene information is a second type scene, reducing the initial audio sampling rate to obtain the target audio sampling rate; and the target audio sampling rate is less than the link rate between the intelligent terminal and the opposite terminal equipment.
Optionally, the first type of scene and the second type of scene may be set according to actual needs, where a bandwidth required by the first type of scene is higher than a bandwidth required by the second type of scene, for example, the first type of scene may be a high-quality audio demand scene, and the second type of scene may be a low-latency demand scene. When the scene information is the first type scene, more detailed data can be collected as far as possible by increasing the initial audio sampling rate, so that the quality of the audio data can be improved. When the scene information is the second type scene, the phenomena of blocking and the like of the audio data can be avoided by reducing the initial audio sampling rate. The initial audio sampling rate may be a default audio sampling rate, such as an audio sampling rate that has been set when the intelligent terminal leaves a factory. Optionally, the increasing the initial audio sampling rate may be directly increasing the initial audio sampling rate by one or more preset sampling rate thresholds, or may be gradually increasing a plurality of preset sampling rate thresholds based on the initial audio sampling rate. Optionally, the reducing the initial audio sampling rate may be directly reducing the initial audio sampling rate by one or more preset sampling rate thresholds, or may be gradually reducing a plurality of preset sampling rate thresholds on the basis of the initial audio sampling rate. Therefore, the audio sampling rate is correspondingly adjusted according to different scene types, and bandwidth resources are further fully utilized.
Optionally, the determining or generating a target audio sampling rate according to the scene information includes:
and determining a target audio sampling rate corresponding to the scene information according to the corresponding relation between the scene type and the audio sampling rate in the scene information.
Optionally, the intelligent terminal may preset corresponding relationships between different scene types and audio sampling rates, and after the scene information is obtained, the audio sampling rate corresponding to the scene type in the scene information may be obtained by querying the corresponding relationships between the different scene types and the audio sampling rates, and the audio sampling rate corresponding to the scene type in the scene information is used as the target audio sampling rate corresponding to the scene information. So, can realize acquireing intelligent terminal and opposite terminal equipment fast to the audio frequency sampling rate of audio data, the simple operation has further promoted user experience.
In summary, in the control method provided by the embodiment, the audio sampling rate of the audio data by the intelligent terminal and/or the peer device is intelligently adjusted according to the scene requirements, so that bandwidth resources are fully utilized, and user experience is improved.
Optionally, before the step S1, the method further includes:
acquiring preset information of the opposite terminal equipment;
and executing the step S1 when it is determined that the peer device supports the custom audio sampling rate function according to the preset information.
Optionally, the intelligent terminal and the peer device may have a bluetooth communication module respectively, and the intelligent terminal may perform bluetooth scanning on the peer device to obtain preset information replied by the peer device, where the preset information may be set according to actual needs, and specifically may be whether to support or not support a custom audio sampling rate function, that is, support or not support information such as a custom encoding and decoding function, and may also specifically be whether to support or not support identification information of the custom audio sampling rate function. When the intelligent terminal acquires the preset information, whether the opposite terminal equipment supports the user-defined audio sampling rate function or not can be judged according to the preset information, and if the opposite terminal equipment is determined to support the user-defined audio sampling rate function, the step S1 can be executed; if it is determined that the peer device does not support the custom audio sampling rate function, the processing may be performed according to an existing audio processing method, which is not described herein again.
Optionally, the intelligent terminal may be provided with a sampling controller, and the intelligent terminal and the peer device may be provided with a private codec and a general codec, respectively. The intelligent terminal can scan the opposite terminal device to obtain the tagged information replied by the opposite terminal device, the tagged information can be used for identifying whether the user-defined audio sampling rate function and the Bluetooth connection information are supported, and the intelligent terminal can establish Bluetooth connection with the opposite terminal device according to the tagged information. When the opposite-end equipment is determined to support the function of self-defined audio sampling rate, the proper audio sampling rate can be calculated according to the effective bandwidth, the scene information and the like between the intelligent terminal and the opposite-end equipment, and the audio sampling rate is sent to a private Codec controller of the local end so as to set the audio sampling rate as the coding sampling rate. And simultaneously sending the audio sampling rate to a private Codec controller of the opposite terminal equipment to set the audio sampling rate as a decoding sampling rate, so as to realize the synchronization of the sampling rate and the decoding rate. Therefore, when the fact that the opposite-end equipment supports the function of the user-defined audio sampling rate is determined, the audio sampling rate of the intelligent terminal and the opposite-end equipment to the audio data is determined or generated according to the scene information, and the operation effectiveness of adjusting the audio sampling rate is guaranteed.
Optionally, the method further comprises:
responding to a second preset operation, and outputting an audio sampling rate adjustment interface;
and adjusting the audio sampling rate of the intelligent terminal and the opposite terminal equipment to the audio data according to the input adjustment instruction.
Optionally, the intelligent terminal may be provided with an audio sampling rate setting interface, and the audio sampling rate setting interface may be provided with an automatic audio sampling rate adjusting button and a manual audio sampling rate adjusting button, that is, an automatic mode and a manual mode for adjusting the audio sampling rate. And after receiving a second preset operation that the user needs to manually adjust the audio sampling rate, if the user clicks a button for manually adjusting the audio sampling rate, the intelligent terminal can output an audio sampling rate adjustment interface for manually adjusting the audio sampling rate by the user. Optionally, the audio sampling rate adjustment interface may be provided with a slider or a slider for adjusting the audio sampling rate, and a user may input an operation instruction to the intelligent terminal by dragging the slider or the slider, so as to adjust the audio sampling rate. Referring to fig. 5, after the user clicks the manual mode button shown in (a) of fig. 5, the user may adjust the audio sampling rate slider shown in (b) of fig. 5 as needed. Therefore, the user experience is further improved by providing an audio sampling rate adjusting interface for the user to select manual adjustment of the audio sampling rate according to the requirement.
Based on the same inventive concept of the foregoing embodiment, the foregoing embodiment is specifically described below by using a specific example, in this embodiment, the intelligent terminal is represented as Source, the peer device is represented as Sink, and the audio sampling rate includes an encoding sampling rate and a decoding sampling rate.
Referring to fig. 6, an audio processing method provided in the embodiment of the present application mainly includes:
1) and in the scanning discovery stage, the Source scans the Sink through the Bluetooth communication module, and the Sink replies tagged information to the Source.
2) In the connection stage, establishing Bluetooth connection with Sink by Source according to tagged information replied by the Sink, verifying whether the Sink supports a user-defined coding and decoding function according to the tagged information, and coding and decoding through a private coder-decoder (Codec) if the Sink supports the user-defined coding and decoding function; if not, the coding and decoding are carried out by a general coder decoder (Codec).
3) The Source terminal can be provided with a sampling controller and provides two modes: the system comprises an automatic mode and a manual mode, wherein the automatic mode is to automatically calculate a proper sampling rate through bandwidth and scenes, and the manual mode is to support a user to manually self-define and adjust the sampling rate and select the sampling rate corresponding to a preset scene.
4) The Source terminal can provide an automatic and manual mode switching entrance, when the user selects the automatic mode, a corresponding instruction is issued to the local controller, namely the sampling controller, the sampling controller calculates a proper sampling rate according to the information of effective bandwidth, scene and the like, and sends the sampling rate to the private Codec controller of the Source terminal so as to set the sampling rate as the coding sampling rate. And meanwhile, the sampling rate is sent to a private Codec controller of the Sink to set the sampling rate as a decoding sampling rate, so that the synchronization of the sampling rate and the decoding rate is realized. When the user selects the manual mode, the user can select locally stored sampling rates which are configured for different scenes and defaults, and after the user selects a scene, the Source end directly issues the sampling rate corresponding to the scene to the local private Codec controller and synchronizes the sampling rate to the Sink private Codec controller. Optionally, the user may also customize the sampling rate, and issue the customized sampling rate to the local private Codec controller and synchronize the customized sampling rate to the private Codec controller of the Sink.
5) The step of setting the sampling rate by the sampling controller includes not only the initial stage of establishing the connection, but also dynamic adjustment during the service scene (e.g. listening to songs, playing games, etc.).
In summary, in the audio processing method provided in the embodiment of the present application, the theoretical bandwidth is fully utilized by dynamically adapting the current theoretical rate, and the problem that the performance is wasted due to audio compression when the bluetooth theoretical bandwidth is high and the audio data transmission requirement is greater than the available bandwidth when the bluetooth theoretical bandwidth is low in a complex interference scenario, which results in audio jamming, is solved in that the fixed sampling rate is adopted for encoding and decoding; in addition, by adding the user entrance, the user can manually adjust the sampling rate according to the scene requirement, and the problems that the sampling rate cannot be automatically adapted to the scene during the traditional coding and decoding, the user cannot intervene, the high-quality audio cannot be exchanged by sacrificing part of time delay when the requirement on the audio quality is high, and the time delay is improved by sacrificing the tone quality under the high-time delay scene such as games are solved.
The embodiment of the present application further provides an intelligent terminal, the intelligent terminal includes: a memory, a processor, wherein the memory has stored thereon a computer program which, when executed by the processor, implements the steps of the audio processing method as set forth in any one of the above.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the storage medium, and when being executed by a processor, the computer program implements the steps of the audio processing method as described in any one of the above.
In the embodiments of the intelligent terminal and the computer-readable storage medium provided in the embodiments of the present application, all technical features of any one of the embodiments of the control method may be included, and the expanding and explaining contents of the specification are basically the same as those of the embodiments of the method, and are not described herein again.
Embodiments of the present application further provide a computer program product, which includes computer program code, when the computer program code runs on a computer, the computer is caused to execute the audio processing method as described in the above various possible embodiments.
An embodiment of the present application further provides a chip, which includes a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device in which the chip is installed executes the audio processing method described in the above various possible embodiments.
It should be understood that the foregoing scenarios are only examples, and do not constitute a limitation on application scenarios of the technical solutions provided in the embodiments of the present application, and the technical solutions of the present application may also be applied to other scenarios. For example, as can be known by those skilled in the art, with the evolution of system architecture and the emergence of new service scenarios, the technical solution provided in the embodiments of the present application is also applicable to similar technical problems.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The units in the device in the embodiment of the application can be merged, divided and deleted according to actual needs.
In the present application, the same or similar term concepts, technical solutions and/or application scenario descriptions will be generally described only in detail at the first occurrence, and when the description is repeated later, the detailed description will not be repeated in general for brevity, and when understanding the technical solutions and the like of the present application, reference may be made to the related detailed description before the description for the same or similar term concepts, technical solutions and/or application scenario descriptions and the like which are not described in detail later.
In the present application, each embodiment is described with emphasis, and reference may be made to the description of other embodiments for parts that are not described or illustrated in any embodiment.
The technical features of the technical solution of the present application may be arbitrarily combined, and for brevity of description, all possible combinations of the technical features in the embodiments are not described, however, as long as there is no contradiction between the combinations of the technical features, the scope of the present application should be considered as being described in the present application.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as above, and includes several instructions for enabling an intelligent terminal (e.g., a mobile phone, a computer, a server, a controlled terminal, or a network device) to execute the method of each embodiment of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, memory Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. An audio processing method, comprising the steps of:
step S1, scene information is obtained;
and step S2, determining or generating the audio sampling rate of the intelligent terminal and/or the opposite terminal equipment to the audio data according to the scene information.
2. The method according to claim 1, wherein the step S2 includes:
determining or generating a target audio sampling rate according to the scene information;
and sending the target audio sampling rate to the opposite terminal equipment so as to adjust the audio sampling rate of the opposite terminal equipment to the audio data to the target audio sampling rate.
3. The method of claim 2, wherein determining or generating a target audio sampling rate from the scene information comprises:
and determining or generating the target audio sampling rate according to the scene information and the link information between the intelligent terminal and the opposite terminal equipment.
4. The method according to claim 3, wherein the determining or generating the target audio sampling rate according to the scene information and the link information between the intelligent terminal and the peer device comprises:
if the scene information is a first type scene, increasing an initial audio sampling rate to obtain the target audio sampling rate; and/or the presence of a gas in the gas,
if the scene information is a second type scene, reducing the initial audio sampling rate to obtain the target audio sampling rate; and the target audio sampling rate is less than the link rate between the intelligent terminal and the opposite terminal equipment.
5. The method of claim 2, wherein determining or generating a target audio sampling rate from the scene information comprises:
and determining or generating a target audio sampling rate corresponding to the scene information according to the corresponding relation between the scene type and the audio sampling rate in the scene information.
6. The method according to any one of claims 1 to 5, wherein the step S1 includes:
responding to the first preset operation, and outputting a scene selection interface;
and receiving a selection operation aiming at the scene selection interface, and determining or generating the scene information.
7. The method according to any one of claims 1 to 5, further comprising:
responding to a second preset operation, and outputting an audio sampling rate adjustment interface;
and adjusting the audio sampling rate of the intelligent terminal and the opposite terminal equipment to the audio data according to the input adjustment instruction.
8. The method according to any one of claims 1 to 5, wherein before the step S1, the method further comprises:
acquiring preset information of the opposite terminal equipment;
and executing the step S1 when it is determined that the peer device supports the custom audio sampling rate function according to the preset information.
9. An intelligent terminal, characterized in that, intelligent terminal includes: memory, processor, wherein the memory has stored thereon an audio processing program which, when executed by the processor, implements the steps of the audio processing method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the audio processing method according to any one of claims 1 to 8.
CN202210725890.7A 2022-06-24 2022-06-24 Audio processing method, intelligent terminal and storage medium Pending CN115113844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210725890.7A CN115113844A (en) 2022-06-24 2022-06-24 Audio processing method, intelligent terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210725890.7A CN115113844A (en) 2022-06-24 2022-06-24 Audio processing method, intelligent terminal and storage medium

Publications (1)

Publication Number Publication Date
CN115113844A true CN115113844A (en) 2022-09-27

Family

ID=83327788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210725890.7A Pending CN115113844A (en) 2022-06-24 2022-06-24 Audio processing method, intelligent terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115113844A (en)

Similar Documents

Publication Publication Date Title
CN108572764B (en) Character input control method and device and computer readable storage medium
CN110187808B (en) Dynamic wallpaper setting method and device and computer-readable storage medium
CN113645345A (en) Data transmission method, mobile terminal and storage medium
CN114126015A (en) Power consumption control method, intelligent terminal and storage medium
CN113194197A (en) Interaction method, terminal and storage medium
CN110052024B (en) Game vibration adjusting method, adjusting device, mobile terminal and storage medium
CN113596231B (en) Screen-throwing display control method, device and computer readable storage medium
CN109217909B (en) Antenna switching method, mobile terminal and computer storage medium
CN112437472B (en) Network switching method, equipment and computer readable storage medium
CN112102780B (en) Display frame rate regulation and control method, device and computer readable storage medium
CN114025215A (en) File processing method, mobile terminal and storage medium
CN107728990B (en) Audio playing method, mobile terminal and computer readable storage medium
CN109889665B (en) Volume adjusting method, mobile terminal and storage medium
CN111970738A (en) Network switching control method, equipment and computer readable storage medium
CN111970668B (en) Bluetooth audio control method, device and computer readable storage medium
CN112887776B (en) Method, equipment and computer readable storage medium for reducing audio delay
CN114363318A (en) Data processing method, intelligent terminal and storage medium
CN113805837A (en) Audio processing method, mobile terminal and storage medium
CN114423041A (en) Communication method, intelligent terminal and storage medium
CN112492450A (en) Sound parameter regulation and control method, equipment and computer readable storage medium
CN115113844A (en) Audio processing method, intelligent terminal and storage medium
CN216389737U (en) Antenna module and intelligent terminal
CN109669594B (en) Interaction control method, equipment and computer readable storage medium
CN115065692A (en) Multimedia information sharing method, intelligent terminal and storage medium
CN114254287A (en) Device control method, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication