EP4283617A1 - Audio data processing method and apparatus, device, storage medium, and program product - Google Patents
Audio data processing method and apparatus, device, storage medium, and program product Download PDFInfo
- Publication number
- EP4283617A1 EP4283617A1 EP21920712.3A EP21920712A EP4283617A1 EP 4283617 A1 EP4283617 A1 EP 4283617A1 EP 21920712 A EP21920712 A EP 21920712A EP 4283617 A1 EP4283617 A1 EP 4283617A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- signal processing
- result
- processing policy
- optimization
- voice
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M9/00—Arrangements for interconnection not involving centralised switching
- H04M9/08—Two-way loud-speaking telephone systems with means for conditioning the signal, e.g. for suppressing echoes for one or both directions of traffic
- H04M9/082—Two-way loud-speaking telephone systems with means for conditioning the signal, e.g. for suppressing echoes for one or both directions of traffic using echo cancellers
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03G—CONTROL OF AMPLIFICATION
- H03G3/00—Gain control in amplifiers or frequency changers
- H03G3/20—Automatic control
- H03G3/30—Automatic control in amplifiers having semiconductor devices
- H03G3/3005—Automatic control in amplifiers having semiconductor devices in amplifiers suitable for low-frequencies, e.g. audio amplifiers
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L21/00—Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
- G10L21/02—Speech enhancement, e.g. noise reduction or echo cancellation
- G10L21/0208—Noise filtering
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/85—Providing additional services to players
- A63F13/87—Communicating with other players during game play, e.g. by e-mail or chat
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/16—Sound input; Sound output
- G06F3/167—Audio in a user interface, e.g. using voice commands for navigating, audio feedback
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03G—CONTROL OF AMPLIFICATION
- H03G3/00—Gain control in amplifiers or frequency changers
- H03G3/20—Automatic control
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L21/00—Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
- G10L21/02—Speech enhancement, e.g. noise reduction or echo cancellation
- G10L21/0208—Noise filtering
- G10L2021/02082—Noise filtering the noise being echo, reverberation of the speech
Definitions
- This application relates to the field of computer technologies, and in particular, to an audio data processing method and apparatus, a device, a storage medium, and a program product.
- a user for example, a user A of a mobile terminal may make a system call to another user (for example, a user B) in a system call mode.
- the user A may make a system call (that is, make a phone call) to the user B in the foregoing system call mode in a telephone call scenario.
- an application layer of the game application X usually needs to use a system call mode of a terminal system layer of the mobile terminal.
- signal processing units that is, voice optimization components
- both the application layer and the terminal system layer will perform voice optimization on a collected sound of the user A through signal processing units of the same function type (that is, voice optimization components with the same function).
- the voice optimization components with the same function are operated repeatedly, resulting in increased overheads of the system. Further, the multiple number of times of repeated processing can cause problems such as sound quality loss, which will reduce the voice optimization effect.
- An audio data processing method and apparatus, a device, a storage medium, and a program product are provided according to embodiments of the present disclosure, to improve a voice optimization effect in a game scenario.
- an audio data processing method is provided, which is performed by a computer device.
- the method includes: obtaining, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy including at least one first optimization component; controlling, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy, a first optimization component turned on in the first pre-signal processing policy being different from a second optimization component turned on in the second pre-signal processing policy; obtaining uplink voice data of a first user of the service application in the game voice mode, and performing, based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy, voice optimization on the uplink voice data in the game voice mode.
- an audio data processing method is provided, which is performed by a computer device.
- the method includes: obtaining, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy including at least one first optimization component; controlling, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, the second pre-signal processing policy including at least one second optimization component.
- an audio data processing method is provided, which is performed by a computer device.
- the method includes: obtaining, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy including at least one first optimization component; controlling, according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy, a first optimization component turned on in the first pre-signal processing policy being different from a second optimization component turned on in the second pre-signal processing policy.
- an audio data processing apparatus which includes: a processing result obtaining module, a component control module, and a voice optimization module.
- the processing result obtaining module is configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy includes at least one first optimization component.
- the component control module is configured to control, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy, a first optimization component turned on in the first pre-signal processing policy is different from a second optimization component turned on in the second pre-signal processing policy.
- the voice optimization module is configured to obtain uplink voice data of a first user of the service application in the game voice mode, and perform, based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy, voice optimization on the uplink voice data in the game voice mode.
- an audio data processing apparatus which includes: a processing result obtaining module and a component control module.
- the processing result obtaining module is configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy includes at least one first optimization component.
- the component control module is configured to control, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, the second pre-signal processing policy includes at least one second optimization component.
- an audio data processing apparatus which includes: a processing result obtaining module and a component control module.
- the processing result obtaining module is configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy includes at least one first optimization component.
- the component control module is configured to control, according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy, a first optimization component turned on in the first pre-signal processing policy is different from a second optimization component turned on in the second pre-signal processing policy.
- a computer device which includes: a processor and a memory.
- the processor is connected to the memory, the memory is configured to store a computer program, the computer program, when executed by the processor, causing the computer device to perform the method according to the embodiments of the present disclosure.
- a computer-readable storage medium which stores a computer program.
- the computer program is configured to be loaded and executed by a processor, to cause a computer device having the processor to perform the method according to the embodiments of the present disclosure.
- a computer program product or a computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium.
- a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the computer device to perform the method according to the embodiments of the present disclosure.
- the computer device may control, in the application layer according to the signal processing result in the game voice mode, to turn on and turn off of the second optimization component in the second pre-signal processing policy in the terminal system layer (that is, the voice optimization component in the second pre-signal processing policy), or to turn on and turn off of the first optimization component in the first pre-signal processing policy (that is, the voice optimization component in the first pre-signal processing policy).
- a first optimization component turned on in the first pre-signal processing policy is different from a second optimization component turned on in the second pre-signal processing policy.
- one or more voice optimization components in the terminal system layer may be controlled to be turned on or turned off in the application layer according to the foregoing signal processing result (that is, algorithm comparison results respectively of voice optimization components having the same function), so that the voice optimization components having the same optimization function may be either run in the application layer or the terminal system layer.
- the quantity and type of second optimization components turned on or turned off in the terminal system layer are not limited herein.
- the computer device may quickly perform voice optimization on the uplink voice data in the game voice mode based on the first optimization component and the second optimization component having different functions, which can improve the voice optimization effect in the game scenario while reducing the sound quality loss.
- Embodiments in the present disclosure may be individually implemented or arbitrarily combined to form a new embodiment, all of which should belong to the protective scope of the present disclosure.
- FIG. 1 is a schematic structural diagram of a network architecture according to an embodiment of the present disclosure.
- the network architecture may include a service server 2000 and a user terminal cluster.
- the user terminal cluster may include one or more user terminals, and the quantity of user terminals is not limited herein.
- the multiple user terminals herein may specifically include a user terminal 3000a, a user terminal 3000b, a user terminal 3000c, ..., and a user terminal 3000n.
- the user terminal 3000a, ..., and the user terminal 3000b may each establish a network connection to the service server 2000, so that each user terminal in the user terminal cluster can exchange data with the service server 2000 through the network connection.
- the service server 2000 shown in FIG. 1 may be an independent physical server, or may be a server cluster or a distributed system formed by multiple physical servers, or may be a cloud server that provides a basic cloud computing service such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a content delivery network (CDN), big data, and an artificial intelligence platform.
- a basic cloud computing service such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a content delivery network (CDN), big data, and an artificial intelligence platform.
- a basic cloud computing service such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a content delivery network (CDN),
- one user terminal may be selected from the user terminal cluster shown in FIG. 1 as a target user terminal.
- the user terminal 3000a shown in FIG. 1 may be used as the target user terminal.
- the target user terminal may be integrated with service applications having an audio data processing function (for example, audio data collection and playing function).
- the service applications may specifically include application clients having an audio data collection and playing function such as an entertainment client (for example, game client), a social client, an office client, a live streaming client and the like.
- the target user terminal may specifically include: a mobile terminal carrying an audio data processing function such as a smartphone, a tablet computer, a notebook computer, a wearable device.
- application types of entertainment clients for example, game client
- application types respectively of a social client for example, QQ, WeChat and other clients
- an office client for example, enterprise client
- a live streaming client and the like may be collectively referred to as a non-game type.
- different service modes may be adaptively selected according to different application types of the service applications, so as to perform different types of voice interaction services in different service scenarios.
- service modes herein may specifically include a system media mode 21a (also referred to as a "media mode”), a system call mode 21b (also referred to as a "voice call mode” or a “call mode”) and a game voice mode 21c.
- system media mode 21a also referred to as a "media mode”
- system call mode 21b also referred to as a "voice call mode” or a "call mode”
- game voice mode 21c may specifically include a game voice mode 21c.
- a target user terminal may configure a service mode of a service application as the system media mode 21a by default in a case that a user (that is, a first user) does not have a voice double-talk requirement (that is, does not need to perform voice interaction).
- the target user terminal may alternatively intelligently recognize, in a case that the user (that is, the first user) has the voice double-talk requirement (that is, needs to perform voice interaction), an application type of a service application that need to perform voice interaction, and adaptively select a corresponding service mode according to the application type of the service application.
- the application type of the service application is a game type
- the service mode of the service application is configured as the game voice mode 21c.
- the service mode of the service application is configured as the system call mode 21b.
- the system media mode 21a may be used for indicating that the target user terminal plays audio data of a music or video program for the current user (that is, the first user).
- the system call mode 21b may be used for indicating that the target user terminal causes the current user (that is, the first user) to make a system call to another user (that is, a second user, which may be a user selected by the first user from a service application to make a system call) through the system call mode 21b in the non-game scenario.
- the game voice mode 21c may be used for indicating that the target user terminal provides a brand-new voice interaction service in the game scenario.
- the user that is, the first user
- may directly make a game voice call to another user for example, a third user, which may be a game user in the same game camp as the first user in the game voice mode 21c).
- the voice environment in the game scenario is more complex, and consideration needs to be given to both voice call quality and media playing sound quality.
- the existing user terminal only provides the system call mode 21b applicable to the call scenario and the system media mode 21a applicable to the music playing scenario, but has not considered a scenario of fusing the two cases, and consequently has an undesired application effect in the game scenario. Therefore, how to improve system media playing sound quality while ensuring call experience at two voice ends becomes a key to improving voice experience of a game user.
- a mobile intelligent terminal optimizes the voice service in the game application scenario.
- a mobile application may also select the most proper voice mode according to its own service characteristics and requirements, so as to quickly and efficiently integrate a voice service in the application.
- the game voice mode 21c is a voice mode of an application in the game service or in the game scenario, which aims to optimize voice experience of a player for the game scenario.
- effective optimization measures are taken for various steps such as voice collection, processing, setting and the like, thereby providing a game player with smooth game voice and superior game sound effect experience.
- the present disclosure is mainly applied to the game voice industry, and therefore the voice mode proposed by the present disclosure is referred to as a "game voice mode".
- the "game voice mode” is not only applicable to the game scenario, but also applicable to other service scenarios having a voice processing requirement the same as or similar to that of the game scenario, for example, applicable to all voice service scenarios that need to give consideration to both voice call quality and media playing sound quality, such as the live video streaming scenario, the video conference scenario and the like, which is not limited in the present disclosure.
- FIG. 3 is a schematic diagram showing a voice data processing process.
- the voice data collection stage sequentially includes the following processes 1 to 4.
- the target user terminal may start a collaboration mechanism between the application layer and the terminal system layer in the game voice mode, and select, adaptively according to an algorithm comparison result (that is, a signal processing result) and according to the collaboration mechanism, to turn on a voice optimization component having the same optimization function from voice optimization components of the application layer and voice optimization components of the terminal system layer.
- an algorithm comparison result that is, a signal processing result
- the collaboration mechanism to turn on a voice optimization component having the same optimization function from voice optimization components of the application layer and voice optimization components of the terminal system layer.
- real-time human sound processing may be performed on uplink voice data of the current user (that is, the foregoing first user) collected in real time in the game scenario, so as to improve the voice optimization effect of the uplink voice data, thereby improving voice interaction experience between game users.
- FIG. 4 is a schematic diagram of a scenario of performing voice interaction in a game scenario according to an embodiment of the present disclosure.
- an application type of a service application in a user terminal 10a shown in FIG. 4 may be the foregoing game type.
- the user terminal 10a may switch a service mode of the service application from a system media mode to a game voice mode, so that a user 1 (that is, the foregoing first user) shown in FIG. 4 may make a game voice call to a user 2 (that is, the foregoing third user) shown in FIG. 4 in the game voice mode.
- the user terminal 10a shown in FIG. 4 may be the foregoing target user terminal having the audio data processing function. It can be understood that, when the user 1 shown in FIG. 4 needs to perform voice interaction with the user terminal 20a of the user 2 shown in FIG. 4 through the user terminal 10a, voice optimization may be performed on a collected sound of the user 1 in advance in the user terminal 10a, so that the optimized sound of the user 1 may be transmitted to the user terminal 20a of the user 2 as a target voice optimization result of uplink voice data, and the sound of the user 1 may be played through a speaker shown in FIG. 4 in the user terminal 20a.
- sounds of the user 1 collected by a microphone (corresponding to a voice control in an application display interface 100a shown in FIG. 4 ) of the user terminal 10a may be collectively referred to as a voice uplink signal, that is, audio frames obtained after spectrum analysis is performed on the sound signals collected by the microphone may be collectively referred to as uplink voice data.
- the optimized sound of the user 1 that is played by the speaker corresponding to a playing control in an application display interface 200a shown in FIG.
- a voice downlink signal that is, audio frames of the sound signal transferred to the speaker for playing may be referred to as downlink voice data.
- optimized sounds of another user for example, the user 2 played by a speaker of the user terminal 10a may also be collectively referred to as a voice downlink signal.
- the user terminal 10a shown in shown in FIG. 4 may obtain uplink voice data corresponding to the voice uplink signal, and perform voice optimization on the uplink voice data of the user 1 through an optimal signal processing policy jointly negotiated between the application layer of the foregoing service application and the terminal system layer, for example, according to the first optimization component turned on in the application layer and the second optimization component turned on in the terminal system layer that are jointly negotiated.
- the second optimization component is different from the first optimization component.
- the first optimization component turned on in the application layer that is, the first optimization component turned on in the first pre-signal processing policy
- the second optimization component turned off in the second pre-signal processing policy have the same optimization function
- the second optimization component turned on in the terminal system layer and the first optimization component turned off in the foregoing first pre-signal processing policy have the same optimization function.
- voice optimization components in the first pre-signal processing policy may be collectively referred to as the first optimization components
- voice optimization components in the second pre-signal processing policy may be collectively referred to as the second optimization components.
- the voice optimization here is the front-end processing process described above, and mainly includes but not limited to performing acoustic echo cancellation (AEC), performing noise suppression (NS), and performing automatic gain control (AGC).
- AEC acoustic echo cancellation
- NS noise suppression
- AGC automatic gain control
- an acoustic echo mainly refers to a phenomenon that a voice transmitted by a speaker (for example, the foregoing user 1) to another person (for example, the foregoing user 2) through a communication device (for example, the foregoing user terminal 10a) of the speaker returns to an earpiece of the speaker again.
- the acoustic echo cancellation involved in this embodiment of the present disclosure mainly refers to a processing solution in which the target user terminal (for example, the foregoing user terminal 10a) cancels this acoustic echo through a specific algorithm apparatus (for example, acoustic echo cancellation component).
- noise mainly refers to a sound signal sent by another object different from the speaker (for example, the foregoing user 1) and collected by the target user terminal (for example, the foregoing user terminal 10a).
- the noise suppression involved in this embodiment of the present disclosure mainly refers to a processing solution in which the target user terminal (for example, the foregoing user terminal 10a) cancels this noise through a specific algorithm apparatus (for example, noise suppression component).
- the target user terminal may intelligently adjust the energy of the voice signal according to an auditory perception range of a person for sounds through a specific algorithm apparatus (for example, gain control component), so that the voice signal can be better perceived.
- a specific algorithm apparatus for example, gain control component
- the user terminal 10a selects, through an algorithm comparison result, to turn on a first optimization component 11 (for example, acoustic echo suppression component) in the first pre-signal processing policy in the application layer, it is required to synchronously turn off a second optimization component 21 having the same optimization function as the first optimization component 11 (for example, acoustic echo suppression component) in the terminal system layer, and the second optimization component 21 may be an acoustic echo suppression component in the second pre-signal processing policy in the terminal system layer controlled by the application layer to be turned off.
- a first optimization component 11 for example, acoustic echo suppression component
- the second optimization component 21 may be an acoustic echo suppression component in the second pre-signal processing policy in the terminal system layer controlled by the application layer to be turned off.
- the target user terminal when collecting a sound of the user 1 (that is, uplink voice data of the first user) in the game scenario in real time through the microphone, the target user terminal only needs to run one voice optimization component having the same optimization function in the application layer or the terminal system layer, so as to ensure that the function of the voice optimization component having the same optimization function is run once, thereby resolving the problem of wasting computing resources due to repeatedly running the function of the voice optimization components having the same optimization function.
- a service mode of the service application run on the user terminal 10a may be the system media mode
- the terminal used by the user 1 for example, the user terminal 10a shown in FIG.
- the user terminal 10a may determine the application type of the service application run on the user terminal 10a, and switch the service mode of the service application from the system media mode to the game voice mode, so that the user terminal 10a may collect and optimize the sound of the user 1 in real time in the game voice mode, to obtain the optimized sound of the user 1 shown in FIG. 4 . Further, the user terminal 10a may broadcast the optimized sound of the user 1 to another teammate in a camp in which the user 1 is located (for example, the user 2, the user 2 may be another game user located in the same camp as the user 1). In this way, when a terminal (for example, the user terminal 20a shown in FIG. 4 ) used by the another teammate in the same camp (for example, the user 2) turns on a playing control shown in FIG. 4 (for example, turns on the speaker in the game scenario), the received optimized sound of the user 1 may be played.
- a terminal for example, the user terminal 20a shown in FIG. 4
- the another teammate in the same camp for example, the user 2
- the user terminal 10a in a case that the foregoing user terminal 10a detects that an application type of the foregoing service application belongs to the non-game type (for example, social type), the user terminal 10a (that is, the foregoing target user terminal) may intelligently switch a service mode of the service application from the system media mode to the system call mode, so as to perform the second type of voice call service in the system call mode, where the second type of voice call service may be a voice interaction service of a system call type in the non-game scenario.
- the user 1 shown in FIG. 4 may be allowed to transmit a system call request corresponding to the system call type to the user 2 shown in FIG. 4 , and when a terminal of the user 2 shown in FIG.
- a system communication channel between the user 1 and the user 2 may be established, so as to make a system call through the system communication channel.
- the target user terminal for example, the user terminal 10a shown in FIG. 4
- the target user terminal 10a shown in FIG. 4 performs control through the foregoing application layer to turn on or turn off the second optimization component in the second pre-signal processing policy in the terminal system layer, and performs voice optimization on the uplink voice data of the first user
- the target user terminal for example, the user terminal 10a shown in FIG. 4
- the target user terminal 10a performs control through the foregoing application layer to turn on or turn off the second optimization component in the second pre-signal processing policy in the terminal system layer, and performs voice optimization on the uplink voice data of the first user
- FIG. 5 is a schematic flowchart of an audio data processing method according to an embodiment of the present disclosure.
- the method is performed by a computer device.
- the method may be performed by a user terminal (for example, the foregoing target user terminal, the target user terminal may be the user terminal 10a in the foregoing embodiment corresponding to FIG. 4 ), or may be performed by a service server (for example, the foregoing service server 2000 shown in FIG. 1 ), or may be performed by a user terminal and a service server interactively and collaboratively.
- a user terminal for example, the foregoing target user terminal, the target user terminal may be the user terminal 10a in the foregoing embodiment corresponding to FIG. 4
- a service server for example, the foregoing service server 2000 shown in FIG. 1
- this embodiment is described by using an example in which the method is performed by the user terminal.
- the audio data processing method may include at least one step of the following step S 101 to step S103.
- step S 101 in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application is acquired.
- the target user terminal may obtain a sound quality index of the service application in the game voice mode, and configure a sound quality parameter of the service application according to the sound quality index of the service application (the sound quality parameter may include but not limited to a voice sampling rate and the number of voice channels). Further, the target user terminal obtains a terminal type of a terminal to which the service application belongs, and searches a test list associated with the service application for a test type matching the terminal type. The target user terminal may obtain, from the test list and based on the sound quality parameter in a case that a test type matching the terminal type is found in the test list, a first test processing result obtained by using the first pre-signal processing policy and a second test processing result obtained by using the second pre-signal processing policy.
- the first pre-signal processing policy is a pre-signal processing policy in the application layer of the service application.
- the second pre-signal processing policy is a pre-signal processing policy in a terminal system layer corresponding to a test terminal type. Further, the target user terminal may determine, based on the first test processing result and the second test processing result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and may use the determined optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- a system resource package of the service application may be loaded into the target user terminal in advance, and in a case that the system resource package is parsed, system resource data of the service application may be obtained.
- the service mode of the service application may be initially configured as the system media mode according to the initialized system resource data.
- the target user terminal may enter the system media mode by default, so that an application display interface of the service application may be outputted according to the initialized system resource data in the system media mode, so as to output multimedia data of the service application (for example, video frame data and audio frame data) in the application display interface.
- the application display interface may include a voice control used for indicating that the first user initiates a voice interaction service.
- the first user may select to trigger the voice control currently in a turned-off state, so that the target user terminal may respond to a voice starting operation performed by the first user for the voice control, and automatically detect an application type of the service application initiating the voice interaction service.
- the target user terminal may determine that the current service scenario is a game scenario, and switch a service mode of the service application run on the target user terminal from the system media mode to the game voice mode. For example, the target user terminal generates a first voice call instruction associated with the game type in the game scenario, and switch the service mode of the service application run on the target user terminal from the system media mode to the game voice mode based on the first voice call instruction, so that a first type of voice call service may be subsequently performed in the game voice mode.
- the target user terminal may refine, in the game voice mode according to a sound quality index of the service application, some sound quality parameters associated with the foregoing voice double-talk requirement.
- the target user terminal may allow the foregoing first user (that is, the user using the target user terminal) to set the voice sampling rate and the number of voice channels corresponding to the target user terminal in the game voice mode.
- the target user terminal may determine that the current service scenario is a non-game scenario, and switch the service mode of the service application run on the target user terminal from the system media mode to the system voice mode. For example, the target user terminal generates a second voice call instruction associated with the non-game type in the non-game scenario, and switch the service mode of the service application run on the target user terminal from the system media mode to the system voice mode based on the second voice call instruction, and perform voice interaction with another user (for example, the foregoing second user) in the system voice mode, so as to perform the foregoing second type of voice call service.
- the target user terminal may determine that the current service scenario is a non-game scenario, and switch the service mode of the service application run on the target user terminal from the system media mode to the system voice mode.
- the target user terminal generates a second voice call instruction associated with the non-game type in the non-game scenario, and switch the service mode of the service application run on the target user terminal from the system media mode to the system voice mode based on the second voice call
- the game voice mode and the system voice mode are two service modes used for providing different types of voice call services in the foregoing voice double-talk scenario.
- the target user terminal may intelligently enter the foregoing game voice mode when the application type is the game type, so as to perform the foregoing first type of voice call service.
- the target user terminal may intelligently enter the foregoing system voice mode when the application type is the non-game type, so as to perform the foregoing second type of voice call service.
- the target user terminal involved in this embodiment of the present disclosure may include but not limited to a mobile terminal having the foregoing voice data processing function. Therefore, the setting the voice sampling rate corresponding to the target user terminal involved in this embodiment of the present disclosure may mainly include setting an uplink sampling rate and a downlink sampling rate of the terminal. Moreover, the setting the number of voice channels of the target user terminal involved in this embodiment of the present disclosure mainly refers to setting the number of channels of voice. For example, the number of channels may be set to two according to a sound quality index of the target user terminal.
- the voice sampling rate (for example, uplink sampling rate and downlink sampling rate) may be the quantity of times of sampling sound signals by a sound recording component of the target user terminal in a unit sampling period.
- the voice sampling rate may include but not limited to 4 kHz, 8 kHz and 48 kHz. It is to be understood that, the value of the voice sampling rate may be used for reflecting trueness and naturalness of sounds of the user that the sound recording component can restore.
- the first user may perform voice interaction through the voice double-talk service provided by the voice interaction system in the target user terminal. That is, when the microphone in the target user terminal is used for collecting a sound signal of the first user (that is, used for collecting a sound of the first user), spectrum analysis may be performed on the sound signal of the first user according to the foregoing uplink sampling rate in the game voice mode, to perform sampling to obtain the uplink voice data of the first user in the game voice mode.
- the target user terminal may perform voice optimization on the uplink voice data, and transmit the voice-optimized sound signal of the first user (that is, the foregoing voice-optimized sound of the first user) to another communication peer end (for example, a terminal corresponding to the foregoing third user), so as to play the foregoing voice-optimized sound of the first user in the another communication peer end through its own speaker.
- the target user terminal may be further used for receiving the voice-optimized sound signal of the third user transmitted by the another communication peer end, and downlink voice data used for being transferred to the speaker of the target user terminal may be obtained after spectrum analysis is performed on the optimized sound signal of the third user according to the foregoing downlink sampling rate. In this way, when the downlink voice data is played through the speaker of the target user terminal, the optimized sound of the third user may be restored accurately for the first user as much as possible.
- FIG. 6 is a schematic diagram of a scenario of a test list according to an embodiment of the present disclosure.
- a test terminal type in the test list 301a may be test types of one or more test terminals. It can be understood that, the test terminal type may include but not limited to models of one or more brands. In an embodiment, the test terminal type may further include system types, system versions and the like of terminal environment systems corresponding to these models.
- the service application may be integrated and installed in advance in test terminals of known models for performing test, so as to perform performance test using multiple pre-signal processing policies in these test terminals of the known models respectively (for example, the first pre-signal processing policy in the foregoing application layer and the second pre-signal processing policy in the foregoing terminal system layer), so as to obtain, through the test, optimization performance of voice optimization components of the same known model (that is, the same test type) in the application layer under a particular sound quality parameter, and optimization performance of voice optimization components with corresponding functions in the terminal system layer.
- n (n is a positive integer) models under the brand may be a test type T1, ..., and a test type Tn shown in FIG. 6 .
- the test type T1 may be a model 1 of a brand A
- the test type T2 may be a model 2 of the brand A, by analogy...
- the test type Tn may be a model n of the brand A.
- the developer may use, in a case that the sound quality parameter is set to a sound quality parameter D 1 (for example, the uplink voice sampling rate is 8 kHz, the downlink voice sampling rate is 8 kHz, and the number of left sound channels is one), the first pre-signal processing policy in the application layer and the second pre-signal processing policy in the terminal system layer, to perform test to obtain a voice test effect of a test terminal whose model is the test type T1 under the sound quality parameter D1.
- a sound quality parameter D 1 for example, the uplink voice sampling rate is 8 kHz, the downlink voice sampling rate is 8 kHz, and the number of left sound channels is one
- test processing results obtained by performing test optimization on uplink voice data for example, uplink voice data R1 used for performing performance test
- the voice optimization components in the foregoing application layer for example, the first optimization components such as the first acoustic echo cancellation component configured to perform acoustic echo cancellation, the first noise suppression component configured to perform noise suppression and the first gain control component configured to perform gain adjustment
- the first optimization components such as the first acoustic echo cancellation component configured to perform acoustic echo cancellation, the first noise suppression component configured to perform noise suppression and the first gain control component configured to perform gain adjustment
- test processing results obtained by performing test optimization on the same uplink voice data R1 using the voice optimization components in the foregoing terminal system layer may be test processing results of the terminal system layer associated with the sound quality parameter D1 shown in FIG. 6 .
- the test processing result of the first acoustic echo cancellation component in the application layer may be a first test result 31a shown in FIG. 6 .
- the voice optimization component having the same optimization function as the foregoing first acoustic echo cancellation component in the terminal system layer may be the foregoing second acoustic echo cancellation component.
- the test processing result obtained by performing acoustic echo cancellation on the uplink voice data R1 using the second acoustic echo cancellation component may be a second test result 31b shown in FIG. 6 .
- the test processing result of the first noise suppression component in the application layer may be a first test result 32a shown in FIG. 6 .
- the voice optimization component having the same optimization function as the foregoing first noise suppression component in the terminal system layer may be the foregoing second noise suppression component.
- the test processing result obtained by performing noise suppression on the uplink voice data R1 using the second noise suppression component may be a second test result 32b shown in FIG. 6 .
- the test processing result of the first gain control component in the application layer may be a first test result 33a shown in FIG. 6 .
- the voice optimization component having the same optimization function as the foregoing first gain control component in the terminal system layer may be the foregoing second gain control component.
- the test processing result obtained by performing gain adjustment on the uplink voice data R1 using the second noise suppression component may be a second test result 33b shown in FIG. 6 .
- the developer may further use, in a case that the sound quality parameter is set to a sound quality parameter D2 (for example, the uplink voice sampling rate is 8 kHz, the downlink voice sampling rate is 16 kHz, and the number of left sound channels is one), the first pre-signal processing policy in the application layer and the second pre-signal processing policy in the terminal system layer, to perform test to obtain a voice test effect of another test terminal whose model is the test type Tn under the sound quality parameter D2.
- a sound quality parameter D2 for example, the uplink voice sampling rate is 8 kHz, the downlink voice sampling rate is 16 kHz, and the number of left sound channels is one
- test processing results obtained by performing test optimization on another uplink voice data (for example, uplink voice data R2 used for performing performance test) using the voice optimization components in the foregoing application layer (for example, the first optimization components such as the first acoustic echo cancellation component configured to perform acoustic echo cancellation, the first noise suppression component configured to perform noise suppression and the first gain control component configured to perform gain adjustment) may be test processing results of the application layer associated with the sound quality parameter D2 shown in FIG. 6 .
- test processing results obtained by performing test optimization on the same uplink voice data R2 using the voice optimization components in the foregoing terminal system layer may be test processing results of the terminal system layer associated with the sound quality parameter D2 shown in FIG. 6 .
- the test processing result of the first acoustic echo cancellation component in the application layer may be a first test result 34a shown in FIG. 6 .
- the voice optimization component having the same optimization function as the foregoing first acoustic echo cancellation component in the terminal system layer may be the foregoing second acoustic echo cancellation component.
- the test processing result obtained after performing acoustic echo cancellation on the uplink voice data R2 using the second acoustic echo cancellation component may be a second test result 34b shown in FIG. 6 .
- the test processing result of the first noise suppression component in the application layer may be a first test result 35a shown in FIG. 6 .
- the voice optimization component having the same optimization function as the foregoing first noise suppression component in the terminal system layer may be the foregoing second noise suppression component.
- the test processing result obtained by performing noise suppression on the uplink voice data R1 using the second noise suppression component may be a second test result 35b shown in FIG. 6 .
- the test processing result of the first gain control component in the application layer may be a first test result 36a shown in FIG. 6 .
- the voice optimization component having the same optimization function as the foregoing first gain control component in the terminal system layer may be the foregoing second gain control component.
- the test processing result obtained by performing gain adjustment on the uplink voice data R2 using the second gain control component may be a second test result 36b shown in FIG. 6 .
- test processing results of known models under different sound quality parameters may be obtained through preliminary test.
- the developer may construct the foregoing test list 301a in FIG. 6 according to the test terminal types, the sound quality parameters, the test processing results in the application layer and the test processing results in the terminal system layer.
- the test list 301 may be intelligently and quickly searched, according to a terminal type of a terminal (that is, the foregoing target user terminal) to which the service application currently belongs, for a test type matching the terminal type.
- the target user terminal may quickly obtain, based on a sound quality parameter that is set by the current user (that is, the foregoing first user) according to the sound quality index of the service application (for example, the sound quality parameter set by the first user is the foregoing sound quality parameter D1), the first test processing result obtained using the foregoing first pre-signal processing policy and the second test processing result obtained using the foregoing second pre-signal processing policy from the test list 301a.
- the sound quality parameter set by the first user is the foregoing sound quality parameter D1
- the target user terminal may quickly determine, from the first pre-signal processing policy and the second pre-signal processing policy according to the voice test effects of the voice optimization components having the same optimization function, an optimal signal processing policy corresponding to the optimization functions of the current terminal type (that is, current model) under the particular sound quality parameter, and the determined optimal signal processing policy may be used as a signal processing result of the first pre-signal processing policy, so that the following step S102 may be performed subsequently.
- the first test processing result may specifically include the first test result 31a of the foregoing first acoustic echo cancellation component (that is, AEC component in the application layer), the first test result 32a of the foregoing first noise suppression component (that is, NS component in the application layer), and the first test result 33a of the foregoing first gain control component (that is, AGC component in the application layer).
- the second test processing result may specifically include the second test result 31b of the foregoing second acoustic echo cancellation component (that is, AEC component in the terminal system layer), the second test result 32b of the foregoing second noise suppression component (that is, NS component in the terminal system layer), and the second test result 33b of the foregoing second gain control component (that is, AGC component in the terminal system layer).
- the first test processing result obtained using the first pre-signal processing policy and the second test processing result obtained using the second pre-signal processing policy may be similarly obtained quickly from the foregoing test list 301a.
- the first test processing results associated with other sound quality parameters, and the second test processing results associated with the other sound quality parameters are not enumerated herein.
- step S102 in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer is controlled, or a state of a first optimization component in the first pre-signal processing policy is controlled.
- a second optimization component in a second pre-signal processing policy in a terminal system layer, or a first optimization component in the first pre-signal processing policy is controlled to be turned on or turned off in the application layer according to the signal processing result, where the first pre-signal processing policy includes at least one first optimization component, and the second pre-signal processing policy includes at least one second optimization component.
- the quantity of first optimization components included by the first pre-signal processing policy and the quantity of second optimization components included by the second pre-signal processing policy are the same, and are both, for example, 3.
- the second pre-signal processing policy there is a second optimization component having the same optimization function as each first optimization component in the first pre-signal processing policy; and correspondingly, in the first pre-signal processing policy, there is a first optimization component having the same optimization function as each second optimization component in the second pre-signal processing policy.
- a first optimization component turned on in the first pre-signal processing policy is different from a second optimization component turned on in the second pre-signal processing policy.
- the first optimization component turned on in the first pre-signal processing policy and the voice optimization component turned off in the second pre-signal processing policy have the same optimization function
- the second optimization component turned on in the second pre-signal processing policy and the first optimization component turned off in the first pre-signal processing policy have the same optimization function
- the target user terminal determines, according to the signal processing result, the second optimization component turned on in the second pre-signal processing policy, and a second optimization component turned off in the second pre-signal processing policy.
- the target user terminal may start, according to the foregoing signal processing result, a collaboration mechanism between the application layer and the terminal system layer of the terminal to which the service application belongs, and control, in the application layer based on the collaboration mechanism, to turn on or turn off of the second optimization component in the second pre-signal processing policy in the terminal system layer.
- the target user terminal may use, in the application layer, the second optimization component turned off in the second pre-signal processing policy as a first collaboration component, and turn on, in the first pre-signal processing policy, a first optimization component having the same optimization function as the first collaboration component. Further, the target user terminal may use, in the application layer, the second optimization component turned on in the second pre-signal processing policy as a second collaboration component, and turn off, in the first pre-signal processing policy, a first optimization component having the same optimization function as the second collaboration component.
- the first optimization component in the first pre-signal processing policy may include at least one of the following voice optimization algorithms: the first acoustic echo cancellation algorithm used for performing acoustic echo cancellation in the application layer (the first optimization component corresponding to the first acoustic echo cancellation algorithm is the foregoing first acoustic echo cancellation component), the first noise suppression algorithm used for performing noise suppression in the application layer (the first optimization component corresponding to the first noise suppression algorithm is the foregoing first noise suppression component), and the first gain control algorithm used for performing gain adjustment in the application layer (the first optimization component corresponding to the first gain control algorithm is the foregoing first gain control component).
- the second optimization component in the second pre-signal processing policy may include at least one of the following voice optimization algorithms: the second acoustic echo cancellation algorithm used for performing acoustic echo cancellation in the terminal system layer (the second optimization component corresponding to the second acoustic echo cancellation algorithm is the foregoing second acoustic echo cancellation component), the second noise suppression algorithm used for performing noise suppression in the terminal system layer (the second optimization component corresponding to the second noise suppression algorithm is the foregoing second noise suppression component), and the second gain control algorithm used for performing gain adjustment in the terminal system layer (the second optimization component corresponding to the second gain control algorithm is the foregoing second gain control component).
- the signal processing result obtained by the target user terminal may be obtained by the following steps: obtaining a first acoustic echo cancellation result of the first acoustic echo cancellation algorithm from the first test processing result, and obtaining a second acoustic echo cancellation result of the second acoustic echo cancellation algorithm from the second test processing result; and selecting, based on the first acoustic echo cancellation result and the second acoustic echo cancellation result, an optimal acoustic echo cancellation algorithm from the first acoustic echo cancellation algorithm and the second acoustic echo cancellation algorithm, and using the optimal acoustic echo cancellation algorithm as a first optimal signal processing policy associated with the sound quality parameter.
- the target user terminal may obtain a first noise suppression result of the first noise suppression algorithm from the first test processing result, and obtain a second noise suppression result of the second noise suppression algorithm from the second test processing result; select, based on the first noise suppression result and the second noise suppression result, an optimal noise suppression algorithm from the first noise suppression algorithm and the second noise suppression algorithm; and use the optimal noise suppression algorithm as a second optimal signal processing policy associated with the sound quality parameter.
- the target user terminal may obtain a first gain control result of the first gain control algorithm from the first test processing result, and obtain a second gain control result of the second gain control algorithm from the second test processing result; select, based on the first gain control result and the second gain control result, an optimal gain control algorithm from the first gain control algorithm and the second gain control algorithm; and use the optimal gain control algorithm as a third optimal signal processing policy associated with the sound quality parameter. Further, the target user terminal may determine the first optimal signal processing policy, the second optimal signal processing policy, and the third optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- FIG. 7 is a schematic diagram of a scenario of determining an optimal signal processing policy associated with a sound quality parameter according to an embodiment of the present disclosure.
- a first test processing result 401a shown in FIG. 7 may be the test processing result of the application layer associated with the sound quality parameter D1 in the foregoing embodiment corresponding to FIG. 6 (that is, the first test processing result associated with the sound quality parameter D1).
- a test result 41a in the first test processing result 401a may be the first test result 31a in the foregoing embodiment corresponding to FIG. 6 , that is, the test result 41a shown in FIG. 7 may be the first acoustic echo cancellation result of the first acoustic echo cancellation algorithm obtained from the first test processing result 401a.
- a test result 42a in the first test processing result 401a may be the first test result 32a in the foregoing embodiment corresponding to FIG. 6 , that is, the test result 42a shown in FIG. 7 may be the first noise suppression result of the first noise suppression algorithm obtained from the first test processing result 401a.
- a test result 43a in the first test processing result 401a may be the first test result 33a in the foregoing embodiment corresponding to FIG. 6 , that is, the test result 43a shown in FIG. 7 may be the first gain control result of the first gain control algorithm obtained from the first test processing result 401a.
- a second test processing result 401b shown in FIG. 7 may be the test processing result of the terminal system layer associated with the sound quality parameter D1 in the foregoing embodiment corresponding to FIG. 6 (that is, the second test processing result associated with the sound quality parameter D 1).
- a test result 41b in the second test processing result 401b may be the second test result 31b in the foregoing embodiment corresponding to FIG. 6 , that is, the test result 41b shown in FIG. 7 may be the second acoustic echo cancellation result of the second acoustic echo cancellation algorithm obtained from the second test processing result 401b.
- a test result 42b in the second test processing result 401b may be the second test result 32b in the foregoing embodiment corresponding to FIG.
- test result 42b shown in FIG. 7 may be the second noise suppression result of the second noise suppression algorithm obtained from the second test processing result 401b.
- a test result 43b in the first test processing result 401b may be the second test result 33b in the foregoing embodiment corresponding to FIG. 6 , that is, the test result 43b shown in FIG. 7 may be the second gain control result of the second gain control algorithm obtained from the second test processing result 401b.
- the target user terminal may obtain the first acoustic echo cancellation result of the first acoustic echo cancellation algorithm from the first test processing result, and obtain the second acoustic echo cancellation result of the second acoustic echo cancellation algorithm from the second test processing result.
- the target user terminal may perform a first comparison between optimization quality of the first acoustic echo cancellation result and optimization quality of the second acoustic echo cancellation result, to obtain a first comparison result.
- the target user terminal may determine, according to the test result 41a and the test result 41b, voice test effects of the first optimization component and the second optimization component having the same optimization function. For example, by comparing a voice test effect V11 in the application layer of the first acoustic echo cancellation component in the application layer and a voice test effect V12 in the terminal system layer of the second acoustic echo cancellation component in the terminal system layer, whether the test result 41a is better than the test result 41b may be determined.
- the first comparison result shown in FIG. 7 indicates that the test result 41a is better than the test result 41b, it indicates that the optimization quality of the first acoustic echo cancellation result is better than the optimization quality of the second acoustic echo cancellation result, and the first acoustic echo cancellation algorithm in the first pre-signal processing policy may be used as the first optimal signal processing policy associated with the sound quality parameter; otherwise, in a case that the first comparison result shown in FIG.
- the test result 41b is better than the test result 41a
- the optimization quality of the second acoustic echo cancellation result is better than the optimization quality of the first acoustic echo cancellation result
- the second acoustic echo cancellation algorithm in the second pre-signal processing policy may be used as the first optimal signal processing policy associated with the sound quality parameter.
- the first acoustic echo cancellation algorithm in the first pre-signal processing policy or the second acoustic echo cancellation algorithm in the second pre-signal processing policy may be used as the first optimal signal processing policy.
- the target user terminal may obtain the first noise suppression result of the first noise suppression algorithm from the first test processing result, and obtain the second noise suppression result of the second noise suppression algorithm from the second test processing result. Further, the target user terminal may perform a second comparison between optimization quality of the first noise suppression result and optimization quality of the second noise suppression result, to obtain a second comparison result. It can be understood that, as shown in FIG.
- the target user terminal may determine, according to the test result 42a and the test result 42b, voice test effects of voice optimization components having the same optimization function. For example, by comparing a voice test effect V21 in the application layer of the first noise suppression component in the application layer and a voice test effect V22 in the terminal system layer of the second noise suppression component in the terminal system layer, whether the test result 42a is better than the test result 42b may be determined. In this way, in a case that the second comparison result shown in FIG.
- the target user terminal may use the second noise suppression algorithm in the second pre-signal processing policy as the second optimal signal processing policy associated with the sound quality parameter.
- the first noise suppression algorithm in the first pre-signal processing policy or the second noise suppression algorithm in the second pre-signal processing policy may be used as the second optimal signal processing policy.
- the target user terminal may obtain the first gain control result of the first gain control algorithm from the first test processing result, and obtain the second gain control result of the second gain control algorithm from the second test processing result. Further, the target user terminal may perform a third comparison between optimization quality of the first gain control result and optimization quality of the second gain control result, to obtain a third comparison result. It can be understood that, as shown in FIG.
- the target user terminal may determine, according to the test result 43a and the test result 43b, voice test effects of voice optimization components having the same optimization function. For example, by comparing a voice test effect V31 in the application layer of the first gain control component in the application layer and a voice test effect V32 in the terminal system layer of the second gain control component in the terminal system layer, whether the test result 43a is better than the test result 43b may be determined. In this way, in a case that the third comparison result shown in FIG.
- the test result 43a is better than the test result 43b
- the optimization quality of the first gain control result is better than the optimization quality of the second gain control result
- the first gain control algorithm in the first pre-signal processing policy may be used as the third optimal signal processing policy associated with the sound quality parameter; otherwise, in a case that the second comparison result shown in FIG. 7 indicates that the test result 43b is better than the test result 43a, it indicates that the optimization quality of the second gain control result is better than the optimization quality of the first gain control result, and the second gain control algorithm in the second pre-signal processing policy may be used as the third optimal signal processing policy associated with the sound quality parameter.
- the first gain control algorithm in the first pre-signal processing policy or the second gain control algorithm in the second pre-signal processing policy may be used as the third optimal signal processing policy.
- the target user terminal may determine that the current terminal type belongs to a new model.
- the target user terminal may perform voice optimization (that is, perform real-time voice optimization) on the uplink voice data (for example, the foregoing voice data R3) through the first pre-signal processing policy, so as to obtain the first voice optimization result in real time, and perform voice optimization (that is, perform real-time voice optimization) on the uplink voice data (for example, the foregoing voice data R3) through the second pre-signal processing policy, so as to obtain the second voice optimization result in real time.
- the target user terminal may determine, based on the first voice optimization result and the second voice optimization result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and use the determined optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- the target user terminal may perform, in the foregoing game scenario through the voice optimization controls in the application layer, real-time voice optimization on the foregoing voice data of the first user obtained in real time, and obtain the first voice optimization results of the voice optimization controls in the application layer.
- the target user terminal may further perform, in the foregoing game scenario through the voice optimization controls in the terminal system layer, real-time voice optimization on the foregoing voice data of the first user obtained in real time, and obtain the second voice optimization results of the voice optimization controls in the terminal system layer.
- the target user terminal compares the voice optimization effects of the voice optimization components having the same optimization function, reference may be made to the foregoing description about the voice test effects of the voice optimization components having the same optimization function, and details are not described again herein.
- the first optimization component in the first pre-signal processing policy may include at least one of the following: the foregoing first acoustic echo cancellation component, the foregoing first noise suppression component and the foregoing first gain control component.
- the second optimization component in the second pre-signal processing policy may include at least one of the following: the foregoing second acoustic echo cancellation component, the foregoing second noise suppression component and the foregoing second gain control component.
- the first acoustic echo cancellation component and the second acoustic echo cancellation component may be both configured to perform acoustic echo cancellation
- the first noise suppression component and the second noise suppression component may be both configured to perform noise suppression
- the first gain control component and the second gain control component may be both configured to perform gain adjustment.
- switches may be provided in the game voice mode, for the foregoing application layer to control to turn on or turn off of each part (that is, each voice optimization component) in the pre-signal processing solution, so as to ensure that the voice optimization components having the same optimization function are either run in the application layer, or run in the terminal system layer.
- the real-time voice optimization that is, real-time human sound optimization
- performance consumption of the entire human sound optimization process can be reduced, and the voice interaction experience in the game scenario may be improved.
- waste of terminal system resources for example, computing resources of a central processing unit (CPU)
- CPU central processing unit
- FIG. 8 is a schematic diagram of a scenario of controlling each voice optimization component to be turned on or turned off in a voice pre-signal processing solution according to an embodiment of the present disclosure.
- the voice pre-signal processing solution may be related processing made by the foregoing target user terminal to improve clarity, loudness and the like of uplink voice data.
- the related processing may include acoustic echo cancellation, noise suppression, automatic gain control and the like.
- the voice pre-signal processing solution includes the foregoing first pre-signal processing policy and the foregoing second pre-signal processing policy
- a specific process of controlling turn-on and turn-off of each voice optimization component in the voice pre-signal processing solution in the application layer is stated.
- An application layer 601a shown in FIG. 8 may be the application layer of the foregoing service application, and a voice pre-signal processing solution corresponding to the application layer 601a may be the foregoing first pre-signal processing policy.
- first optimization components in the first pre-signal processing policy include at least: a voice optimization component 61a, a voice optimization component 62a, and a voice optimization component 63a shown in FIG. 8 .
- the voice optimization component 61a shown in FIG. 8 may be the foregoing first acoustic echo cancellation component configured to perform acoustic echo cancellation; similarly, the voice optimization component 62a shown in FIG. 8 may be the foregoing first noise suppression component configured to perform noise suppression; and similarly, the voice optimization component 63a shown in FIG. 8 may be the foregoing first gain control component configured to perform gain adjustment.
- a terminal system layer 602a shown in FIG. 8 may be an underlying system layer of a terminal (that is, the foregoing target user terminal) to which the foregoing service application belongs, and a voice pre-signal processing solution corresponding to the terminal system layer 602a may be the foregoing second pre-signal processing policy.
- second optimization components in the second pre-signal processing policy include at least: a voice optimization component 61b, a voice optimization component 62b, and a voice optimization component 63b shown in FIG. 8 .
- the voice optimization component 61b shown in FIG. 8 may be the foregoing second acoustic echo cancellation component configured to perform acoustic echo cancellation; similarly, the voice optimization component 62b shown in FIG. 8 may be the foregoing second noise suppression component configured to perform noise suppression; and similarly, the voice optimization component 63b shown in FIG. 8 may be the foregoing second gain control component configured to perform gain adjustment.
- switches may be provided in the application layer 601a shown in FIG. 8 , to facilitate the application layer 601a to turn on and turn off of voice optimization components in the terminal system layer 602a shown in FIG. 8 .
- a switch K11 in the application layer 601a shown in FIG. 8 may be configured to control the voice optimization component 61a shown in FIG. 8
- a switch K12 in the application layer may be configured to control the voice optimization component 61b in the terminal system layer 602a shown in FIG. 8 . It can be understood that, because the voice optimization component 61a in the application layer 601a shown in FIG. 8 and the voice optimization component 61b in the terminal system layer 602a shown in FIG.
- the target user terminal may select, according to a collaboration mechanism (which may also be referred to as a negotiation mechanism) between the application layer 601a and the terminal system layer 602a, whether to turn on (or turn off) the voice optimization component 61b in the second pre-signal processing policy in the terminal system layer 602a in the application layer 601a.
- a collaboration mechanism which may also be referred to as a negotiation mechanism
- the target user terminal may control to turn on the voice optimization component 61a in the first pre-signal processing policy in the application layer 601a, that is, the target user terminal may generate a first control instruction used for controlling a service switch 64a to close the switch K11 and open the switch K12.
- the first control instruction may be used for instructing the target user terminal to use the second optimization component (for example, the voice optimization component 61b in FIG. 8 ) turned off in the second pre-signal processing policy as a first collaboration component, and the first optimization component (for example, the voice optimization component 61a shown in FIG. 8 ) having the same optimization function as the first collaboration component may be turned on in the first pre-signal processing policy.
- the second optimization component for example, the voice optimization component 61b in FIG. 8
- the first optimization component for example, the voice optimization component 61a shown in FIG. 8
- a switch K21 in the application layer 601a may be configured to control the voice optimization component 62a shown in FIG. 8
- a switch K22 in the application layer may be configured to control the voice optimization component 62b in the terminal system layer 602a shown in FIG. 8 . It can be understood that, because the voice optimization component 62a in the application layer 601a shown in FIG. 8 and the voice optimization component 62b in the terminal system layer 602a shown in FIG.
- the target user terminal may select, according to a collaboration mechanism (which may also be referred to as a negotiation mechanism) between the application layer 601a and the terminal system layer 602a, whether to turn on (or turn off) of the voice optimization component 62b in the second pre-signal processing policy in the terminal system layer 602a in the application layer 601a.
- a collaboration mechanism which may also be referred to as a negotiation mechanism
- the target user terminal may control to turn on the voice optimization component 62a in the second pre-signal processing policy in the application layer 601a, that is, the target user terminal may generate a second control instruction used for controlling a service switch 64b to close the switch K22 and open the switch K21.
- the second control instruction may be used for instructing the target user terminal to use the second optimization component (for example, the voice optimization component 62b in FIG. 8 ) turned on in the second pre-signal processing policy as a second collaboration component, and the first optimization component (for example, the voice optimization component 62a shown in FIG. 8 ) having the same optimization function as that of the second collaboration component may be turned off in the first pre-signal processing policy.
- the second optimization component for example, the voice optimization component 62b in FIG. 8
- the first optimization component for example, the voice optimization component 62a shown in FIG. 8
- a switch K31 in the application layer 601a may be configured to control the voice optimization component 63a shown in FIG. 8
- a switch K32 in the application layer may be configured to control the voice optimization component 63b in the terminal system layer 602a shown in FIG. 8 . It can be understood that, because the voice optimization component 63a in the application layer 601a shown in FIG. 8 and the voice optimization component 63b in the terminal system layer 602a shown in FIG.
- the target user terminal may select, according to a collaboration mechanism (which may also be referred to as a negotiation mechanism) between the application layer 601a and the terminal system layer 602a, whether to turn on (or turn off) the voice optimization component 63b in the second pre-signal processing policy in the terminal system layer 602a in the application layer 601a.
- a collaboration mechanism which may also be referred to as a negotiation mechanism
- the target user terminal may generate a third control instruction used for controlling a service switch 64c to close a switch K31 and open a switch K32, reference may be made to the description about the foregoing first control instruction, and details are not described again herein.
- the target user terminal uses the second optimization component (for example, the voice optimization component 63b in FIG.
- the first optimization component (for example, the voice optimization component 63a shown in FIG. 8 ) having the same optimization function as the new first collaboration component may be turned on in the first pre-signal processing policy.
- step S103 uplink voice data of a first user of the service application in the game voice mode is obtained, and voice optimization is performed on the uplink voice data in the game voice mode based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy.
- the target user terminal may further perform, based on the first optimization component turned on in the foregoing first pre-signal processing policy and the second optimization component turned on in the foregoing second pre-signal processing policy, voice optimization on the uplink voice data of the first user collected in real time in the game scenario, so as to ensure clarity and loudness of the uplink voice data currently recorded into the target user terminal.
- voice optimization on the uplink voice data of the first user collected in real time in the game scenario, so as to ensure clarity and loudness of the uplink voice data currently recorded into the target user terminal.
- a computer device for example, the target user terminal used as a mobile terminal
- each first optimization component in the first pre-signal processing policy and a corresponding second optimization component in the second pre-signal processing policy have the same optimization function. Therefore, in the subsequent real-time voice human sound processing process of the game (that is, voice optimization of uplink voice data), the phenomenon that voice optimization components having the same function are repeatedly run may be effectively eliminated in the game voice mode.
- one or more second optimization components in the terminal system layer may be controlled to be turned on or turned off in the application layer according to the foregoing signal processing result (that is, algorithm comparison results of voice optimization components having the same function), so that the voice optimization components having the same function may be either run in the application layer of the game or the terminal system layer. In this way, sound quality loss of the uplink voice data may be reduced.
- the quantity and type of second optimization components turned on or turned off in the terminal system layer are not limited herein.
- the computer device may quickly perform voice optimization on the collected uplink voice data collaboratively based on the turned-on first optimization component and the turned-on second optimization component, which can improve the voice optimization effect in the game scenario while reducing the sound quality loss.
- FIG. 9 is a schematic diagram of an audio data processing method according to an embodiment of the present disclosure.
- the method may be performed by a user terminal (for example, a target user terminal, the target user terminal may be the foregoing user terminal 3000a shown in FIG. 1 ), and the method may specifically include at least one of the following steps S201 to S213.
- step S201 in a case that the first user accesses the service application, a system resource package used for loading the service application is obtained, and the system resource package is parsed, to obtain system resource data of the service application.
- step S202 the system resource data is initialized, and a service mode of the service application is initially configured as a system media mode based on the initialized system resource data.
- FIG. 10 is a schematic diagram of a scenario of a resource configuration interface according to an embodiment of the present disclosure. It can be understood that, in a game scenario, a game user A shown in FIG. 10 may be the user 1 in the foregoing embodiment corresponding to FIG. 4 .
- a system resource package used for loading the service application may be obtained from a service server shown in FIG. 10 , and the obtained system resource package may be parsed through an encoder in the target user terminal, to obtain system resource data of the service application. Further, the target user terminal may further initialize the system resource data, and a resource configuration interface in FIG. 10 may be outputted based on the initialized system resource data. As shown in FIG. 10 , the resource configuration interface may be used for dynamically outputting multimedia data in the initialized system resource data, and the multimedia data may include but not limited to an image frame and an audio frame shown in FIG. 10 .
- a service mode of the service application may be initially configured as the system media mode based on the initialized system resource data, so that medium audio data (that is, the foregoing audio frame data and video frame data) shown in FIG. 10 may be played in the resource configuration interface shown in FIG. 10 through a speaker.
- the target user terminal may further perform the following step S103, and switch a display interface of the service application from a resource configuration interface 800a shown in FIG. 10 to an application display interface including a voice control.
- the service mode of the service application may be switched from the current system media mode to the foregoing game voice mode, to perform voice interaction in the game voice mode.
- step S203 based on the initialized system resource data, an application display interface of the service application is outputted.
- the application display interface includes a voice control used for indicating that the first user initiates a voice interaction service.
- step S204 an application type of the service application is detected in response to a starting operation of the first user for the voice control.
- step S205 in a case of detecting that the application type of the service application is a game type, a first voice call instruction associated with the game type is generated, and the service mode of the service application is switched from the system media mode to the game voice mode based on the first voice call instruction.
- the target user terminal may further directly switch, in a case of detecting that the application type of the service application is a game type, the service mode of the service application from the system media mode to the game voice mode.
- step S206 in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application is obtained.
- step S207 in the application layer according to the signal processing result, a second optimization component in a second pre-signal processing policy in a terminal system layer, or a first optimization component in the first pre-signal processing policy is controlled to be turned on or turned off.
- step S208 uplink voice data of a first user of the service application in the game voice mode is obtained, and voice optimization is performed on the uplink voice data in the game voice mode based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy.
- step S205 to step S208 For the specific implementation of step S205 to step S208, reference may be made to the description about step S101 to step S104 in the embodiment corresponding to FIG. 5 , and details are not described herein again.
- step S209 optimized uplink voice data is used as a target voice optimization result of the uplink voice data.
- step S210 the target voice optimization result is transmitted to a terminal of a third user associated with the first user, to cause the terminal of the third user to play the optimized uplink voice data through a speaker in the game voice mode.
- the first user and the third user are game users in the same game camp in the game voice mode.
- the computer device may further jump to perform the following step S211 to step S213, so as to enable the foregoing first user to make a system call to another user (for example, the second user) in the system call mode.
- step S211 in a case of detecting that the application type of the service application is a non-game type, a second voice call instruction associated with the game type is detected, and the service mode of the service application from the system media mode is switched to the system call mode based on the second voice call instruction.
- step S212 in a case of determining based on the system call mode that a call type of the voice interaction service is a system call type, a system call request corresponding to the system call type is transmitted to a second user through the service application.
- the second user is a user selected by the first user in the service application to make a system call.
- step S213 in a case that the second user responds to the system call request, a system communication channel is established between the first user and the second user, and a system call is made based on the system communication channel.
- FIG. 11 is a schematic flowchart of a process of providing a voice double-talk service of different types according to an embodiment of the present disclosure.
- the first user may perform step S1 shown in FIG. 11 , to perform system resource initialization.
- the target user terminal may initialize the foregoing system resource data obtained by parsing, and perform step S2 shown in FIG. 11 according to the initialized system resource data, so that the target user terminal enters the system media mode by default.
- the target user terminal may initially configure the service mode of the service application as the system media mode.
- the first user may perform step S3 shown in FIG. 11 , so as to initiate a voice call in the application layer of the target user terminal.
- the target user terminal may perform step S4 shown in FIG. 11 , so as to determine the application type of the service application initiating the voice call, and in a case that the application type of the service application is a game type, the target user terminal may perform step S5 shown in FIG. 11 , so as to enter the game voice mode, that is, the first user may perform a voice call in the game scenario with another user (for example, the foregoing third user) in the system call mode.
- the target user terminal may perform step S 11 shown in FIG. 11 , so as to enter the system call mode, that is, the first user may perform a system call in the non-game scenario with another user (for example, the foregoing second user) in the system call mode.
- the target user terminal may further perform step S6, so as to set a voice sampling rate (for example, set uplink and downlink sampling rates shown in FIG. 11 , so as to ensure the sampling rate) and the number of sound channels (to ensure uplink and downlink voice quality) of the terminal in the target user terminal, and the voice sampling rate and the number of sound channels may be the foregoing sound quality parameters.
- the target user terminal may further perform step S7, that is, the target user terminal may start the voice pre-signal processing algorithm of the application layer and close the pre-signal processing algorithm of the terminal system layer according to the foregoing algorithm comparison effect.
- the target user terminal may alternatively close the voice pre-signal processing algorithm of the application layer while starting the pre-signal processing algorithm of the terminal system layer.
- the voice optimization components having the same optimization function in the target user terminal either run in the application layer, or run in the terminal system layer. That is, in this embodiment of the present disclosure, it may be ensured as much as possible that a voice processing algorithm of only one voice optimization component of the first optimization component of the application layer and the second optimization component having the same optimization function of the terminal system layer is working at one moment. In this way, power consumption may be maximally reduced, and an optimal voice sound quality effect may be provided.
- the first user when performing step S8 shown in FIG. 11 with another user in the game scenario, the first user may perform an inter-end game voice call in the game voice scenario. That is, during a game voice call, the target user terminal may optimize, through the foregoing negotiated and determined first optimization component and second optimization component, the uplink voice data of the first user collected in real time, and transmit the optimized sound of the first user to the another user. Further, it can be understood that, when the first user does not need to transmit the optimized voice to another game user in the same camp, the first user may perform step S9 shown in FIG. 11 in the game scenario.
- the target user terminal may respond to the closing operation of the first user for the foregoing voice control, and switch the service mode of the service application from the foregoing game voice mode back to the system media mode shown in FIG. 11 .
- an optimized sound of another user transmitted by a terminal of the another user may be further played through the system media mode in the game scenario.
- the first user of the target user terminal may hear the optimized sound of the another user (that is, the foregoing third user) in the system media mode.
- the voice control is closed, the first user does not need to continue to perform voice optimization on the uplink voice data of the first user. That is, in this case, the first user does not need to transmit the optimized sound of the first user to another user in the game scenario.
- the first user may perform step S10 shown in FIG. 11 , so as to exit the current game system.
- the target user terminal may release related system resource data.
- the target user terminal when the first user is listening to music in the target user terminal, the target user terminal may operate in the foregoing system media mode; and when the first user is making a phone call in the target user terminal, the target user terminal may operate in the foregoing system call mode.
- the target user terminal when the first user is performing game voice in the target user terminal, the target user terminal may operate in the foregoing game voice mode.
- the voice interaction system involved in this embodiment of the present disclosure may include the following two modules.
- One module is the game voice mode in the target user terminal, and may exist in the target user terminal in parallel to the system call mode and the system media mode.
- the uplink and downlink voice sampling rates and the number of channels configured based on the sound quality index of the target user terminal do not affect each other.
- the other module is the pre-signal processing solution run in the application layer.
- the target user terminal may intelligently adjust the pre-signal processing solution of the application layer according to a voice processing effect of the terminal system layer. In this way, through collaborative working of the two modules, the target user terminal can improve experience of voice interaction between game users in the game scenario.
- the computer device in a case of detecting that the application type of the service application is the game type, the computer device (for example, the target user terminal) enters the game voice mode, and adaptively control, in the game voice mode and in the application layer, to turn on or turn off one or more second optimization components in the terminal system layer according to the foregoing signal processing result (that is, algorithm comparison results of voice optimization components having the same function), so that the voice optimization components having the same optimization function may be either run in the game application layer or the terminal system layer.
- the quantity and type of second optimization components turned on or turned off in the terminal system layer are not limited herein.
- the computer device when obtaining the uplink voice data of the first user in the game voice mode, the computer device (for example, the target user terminal) may further quickly perform voice optimization on the uplink voice data in the game voice mode based on the turned-on first optimization component and the turned-on second optimization component, which can improve the voice optimization effect in the game scenario while reducing the sound quality loss.
- the target user terminal in a case of detecting that the application type of the service application is the non-game type, the target user terminal may alternatively enter the system voice mode, and the first user may make a system call to another user in the system voice mode.
- FIG. 12 is a schematic flowchart of another audio data processing method according to an embodiment of the present disclosure.
- the method is performed by a computer device.
- the method may be performed by a user terminal (for example, the foregoing target user terminal, the target user terminal may be the user terminal 10a in the foregoing embodiment corresponding to FIG. 4 ), or may be performed by a service server (for example, the foregoing service server 2000 shown in FIG. 1 ), or may be performed by a user terminal and a service server interactively and collaboratively.
- a user terminal for example, the foregoing target user terminal, the target user terminal may be the user terminal 10a in the foregoing embodiment corresponding to FIG. 4
- a service server for example, the foregoing service server 2000 shown in FIG. 1
- this embodiment is described by using an example in which the method is performed by the user terminal.
- the audio data processing method may include at least one step of the following step S301 to step S302.
- step S301 in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application is obtained.
- step S302 a state of a second optimization component in a second pre-signal processing policy in a terminal system layer is controlled in the application layer according to the signal processing result.
- the first pre-signal processing policy includes at least one first optimization component
- the second pre-signal processing policy includes at least one second optimization component
- a second optimization component to be turned on in the second pre-signal processing policy in the terminal system layer is determined in the application layer according to the signal processing result, and/or a second optimization component to be turned off in the second pre-signal processing policy in the terminal system layer is determined in the application layer according to the signal processing result, Then, for the second optimization component to be turned on in the second pre-signal processing policy, in a case that the current state of the second optimization component is the turned-off state, the application layer controls the second optimization component to be turned on, and in a case that the current state of the second optimization component is the turned-on state, the second optimization component is kept on; and for the second optimization component to be turned off in the second pre-signal processing policy, in a case that the current state of the second optimization component is the turned-on state, the application layer controls the second optimization component to be turned off, and in a case that the current state of the second optimization component is the turned-off state, the second optimization component is kept off.
- a state of the first optimization component in the first pre-signal processing policy is controlled in the application layer according to the signal processing result.
- the foregoing step S302 includes: determining, according to the signal processing result, the second optimization component turned on in the second pre-signal processing policy, and a second optimization component turned off in the second pre-signal processing policy; using, in the application layer, the second optimization component turned off in the second pre-signal processing policy as a first collaboration component, and turning on, in the first pre-signal processing policy, a first optimization component having the same optimization function as the first collaboration component; and using, in the application layer, the second optimization component turned on in the second pre-signal processing policy as a second collaboration component, and turning off, in the first pre-signal processing policy, a first optimization component having the same optimization function as the second collaboration component.
- the foregoing step S301 includes: obtaining a terminal type of a terminal to which the service application belongs, and searching a test list associated with the service application for a test type matching the terminal type; obtaining, from the test list and based on the sound quality parameter in a case that a test type matching the terminal type is found in the test list, a first test processing result obtained by using the first pre-signal processing policy and a second test processing result obtained by using the second pre-signal processing policy; and determining, based on the first test processing result and the second test processing result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and using the optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- voice optimization is performed on the uplink voice data through the first pre-signal processing policy, to obtain a first voice optimization result
- voice optimization is performed on the uplink voice data through the second pre-signal processing policy, to obtain a second voice optimization result.
- An optimal signal processing policy associated with the sound quality parameter is determined from the first pre-signal processing policy and the second pre-signal processing policy based on the first voice optimization result and the second voice optimization result, and the optimal signal processing policy is used as the signal processing result of the first pre-signal processing policy.
- the foregoing method further includes: obtaining uplink voice data of a first user of the service application in the game voice mode, and performing, based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy, voice optimization on the uplink voice data in the game voice mode.
- the foregoing method further includes: obtaining, in a case that the first user accesses the service application, a system resource package used for loading the service application, and parsing the system resource package, to obtain system resource data of the service application; and initializing the system resource data, and initially configuring, based on the initialized system resource data, a service mode of the service application as a system media mode.
- the foregoing method further includes: using optimized uplink voice data as a target voice optimization result of the uplink voice data; and transmitting the target voice optimization result to a terminal of a third user associated with the first user, to cause the terminal of the third user to play the optimized uplink voice data through a speaker in the game voice mode.
- the game voice mode is provided.
- the application layer of the service application has permission to control a state of a voice optimization component in the terminal system layer, so that the service application can flexibly control the state of the voice optimization component in the terminal system layer according to an actual service request or requirement, to ensure a voice optimization effect in the mode.
- FIG. 13 is a schematic flowchart of another audio data processing method according to an embodiment of the present disclosure.
- the method is performed by a computer device.
- the method may be performed by a user terminal (for example, the foregoing target user terminal, the target user terminal may be the user terminal 10a in the foregoing embodiment corresponding to FIG. 4 ), or may be performed by a service server (for example, the foregoing service server 2000 shown in FIG. 1 ), or may be performed by a user terminal and a service server interactively and collaboratively.
- a user terminal for example, the foregoing target user terminal, the target user terminal may be the user terminal 10a in the foregoing embodiment corresponding to FIG. 4
- a service server for example, the foregoing service server 2000 shown in FIG. 1
- this embodiment is described by using an example in which the method is performed by the user terminal.
- the audio data processing method may include at least one step of the following step S401 to step S402:
- the first pre-signal processing policy includes at least one first optimization component
- the second pre-signal processing policy includes at least one second optimization component
- the first optimization component turned on in the first pre-signal processing policy and the voice optimization component turned off in the second pre-signal processing policy have the same optimization function
- the second optimization component turned on in the second pre-signal processing policy and the first optimization component turned off in the first pre-signal processing policy have the same optimization function
- step S402 may be performed by the application layer of the service application, or may be performed by the terminal system layer, or performed by the application layer and the terminal system layer collaboratively.
- the application layer controls the state of the first optimization component in the first pre-signal processing policy
- the terminal system layer controls the state of the second optimization component in the second pre-signal processing policy.
- the signal processing result needs to be synchronized or the first optimization components and/or the second optimization components needing to be turned on and turned off are synchronized.
- the foregoing step S402 includes: determining, according to the signal processing result, the second optimization component to be turned on in the second pre-signal processing policy, and a second optimization component to be turned off in the second pre-signal processing policy; turning off the second optimization component to be turned off in the second pre-signal processing policy, and turning on, in the first pre-signal processing policy, a first optimization component having the same optimization function as the turned-off second optimization component; and turning on the second optimization component to be turned on in the second pre-signal processing policy, and turning off, in the first pre-signal processing policy, a first optimization component having the same optimization function as the turned-on second optimization component.
- the second optimization component in a case that the current state of the second optimization component is the turned-off state, the second optimization component is controlled to be turned on, and in a case that the current state of the second optimization component is the turned-on state, the second optimization component is kept on; and for the second optimization component to be turned off in the second pre-signal processing policy, in a case that the current state of the second optimization component is the turned-on state, the second optimization component is controlled to be turned off, and in a case that the current state of the second optimization component is the turned-off state, the second optimization component is kept off.
- the foregoing step S401 includes: obtaining a terminal type of a terminal to which the service application belongs, and searching a test list associated with the service application for a test type matching the terminal type; obtaining, from the test list and based on the sound quality parameter in a case that a test type matching the terminal type is found in the test list, a first test processing result obtained by using the first pre-signal processing policy and a second test processing result obtained by using the second pre-signal processing policy; and determining, based on the first test processing result and the second test processing result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and using the optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- voice optimization is performed on the uplink voice data through the first pre-signal processing policy, to obtain a first voice optimization result
- voice optimization is performed on the uplink voice data through the second pre-signal processing policy, to obtain a second voice optimization result.
- An optimal signal processing policy associated with the sound quality parameter is determined from the first pre-signal processing policy and the second pre-signal processing policy based on the first voice optimization result and the second voice optimization result, and the optimal signal processing policy is used as the signal processing result of the first pre-signal processing policy.
- the foregoing method further includes: obtaining, in a case that the first user accesses the service application, a system resource package used for loading the service application, and parsing the system resource package, to obtain system resource data of the service application; and initializing the system resource data, and initially configuring, based on the initialized system resource data, a service mode of the service application as a system media mode.
- the method further includes: obtaining uplink voice data of a first user of the service application in the game voice mode, and performing, based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy, voice optimization on the uplink voice data in the game voice mode.
- one or more voice optimization components in the terminal system layer is controlled to be turned on or turned off according to the foregoing signal processing result, so that the voice optimization components having the same optimization function may be either run in the application layer or the terminal system layer. In this way, sound quality loss of the uplink voice data can be reduced from the source, thereby improving the voice optimization effect in the game scenario.
- FIG. 14 is a schematic structural diagram of an audio data processing apparatus according to an embodiment of the present disclosure.
- the audio data processing apparatus 1 may include at least one of the following: a processing result obtaining module 12, a component control module 13 and a voice optimization module 14.
- the audio data processing apparatus may further include at least one of the following: a resource package obtaining module 15, an initialization module 16, an application interface output module 17, a voice starting module 18, a game mode switching module 11, a call mode switching module 19, a call request transmitting module 20, a communication channel establishing module 21, a target result determining module 22, a target result transmitting module 23, and a voice closing module 24.
- the processing result obtaining module 12 is configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy includes at least one first optimization component.
- the processing result obtaining module 12 includes: a sound quality index obtaining unit 121, a terminal type search unit 122, a test result obtaining unit 123, an optimal policy determining unit 124, an optimization result obtaining unit 125 and a processing result determining unit 126.
- the sound quality index obtaining unit 121 is configured to obtain a sound quality index of the service application in the game voice mode, and configure a sound quality parameter of the service application according to the sound quality index of the service application.
- the terminal type search unit 122 is configured to obtain a terminal type of a terminal to which the service application belongs, and search a test list associated with the service application for a test type matching the terminal type.
- the test result obtaining unit 123 is configured to obtain, from the test list and based on the sound quality parameter in a case that a test type matching the terminal type is found in the test list, a first test processing result obtained by using the first pre-signal processing policy and a second test processing result obtained by using the second pre-signal processing policy.
- the first pre-signal processing policy is a pre-signal processing policy in the application layer of the service application.
- the second pre-signal processing policy is a pre-signal processing policy in a terminal system layer corresponding to a test terminal type.
- the optimal policy determining unit 124 is configured to determine, based on the first test processing result and the second test processing result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and use the determined optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- the first optimization component in the first pre-signal processing policy includes at least one of the following voice optimization algorithms: a first acoustic echo cancellation algorithm used for performing acoustic echo cancellation in the application layer, a first noise suppression algorithm used for performing noise suppression in the application layer, and a first gain control algorithm used for performing gain adjustment in the application layer; and the second optimization component in the second pre-signal processing policy includes at least one of the following voice optimization algorithms: a second acoustic echo cancellation algorithm used for performing acoustic echo cancellation in the terminal system layer, a second noise suppression algorithm used for performing noise suppression in the terminal system layer, and a second gain control algorithm used for performing gain adjustment in the terminal system layer.
- the optimal policy determining unit 124 includes: a first selecting subunit 1241, a second selecting subunit 1242, a third selecting subunit 1243 and an optimal policy determining subunit 1244.
- the first selecting subunit 1241 is configured to obtain a first acoustic echo cancellation result of the first acoustic echo cancellation algorithm from the first test processing result, obtain a second acoustic echo cancellation result of the second acoustic echo cancellation algorithm from the second test processing result, select, based on the first acoustic echo cancellation result and the second acoustic echo cancellation result, an optimal acoustic echo cancellation algorithm from the first acoustic echo cancellation algorithm and the second acoustic echo cancellation algorithm, and use the optimal acoustic echo cancellation algorithm as a first optimal signal processing policy associated with the sound quality parameter.
- the first selecting subunit 1241 is further configured to obtain the first acoustic echo cancellation result of the first acoustic echo cancellation algorithm from the first test processing result, and obtain the second acoustic echo cancellation result of the second acoustic echo cancellation algorithm from the second test processing result.
- the first selecting subunit 1241 is further configured to perform a first comparison between optimization quality of the first acoustic echo cancellation result and optimization quality of the second acoustic echo cancellation result, to obtain a first comparison result.
- the first selecting subunit 1241 is further configured to use, in a case that the first comparison result indicates that the optimization quality of the first acoustic echo cancellation result is better than the optimization quality of the second acoustic echo cancellation result, the first acoustic echo cancellation algorithm in the first pre-signal processing policy as the first optimal signal processing policy associated with the sound quality parameter.
- the first selecting subunit 1241 is further configured to use, in a case that the first comparison result indicates that the optimization quality of the second acoustic echo cancellation result is better than the optimization quality of the first acoustic echo cancellation result, the second acoustic echo cancellation algorithm in the second pre-signal processing policy as the first optimal signal processing policy associated with the sound quality parameter.
- the second selecting subunit 1242 is configured to obtain a first noise suppression result of the first noise suppression algorithm from the first test processing result, obtain a second noise suppression result of the second noise suppression algorithm from the second test processing result, select, based on the first noise suppression result and the second noise suppression result, an optimal noise suppression algorithm from the first noise suppression algorithm and the second noise suppression algorithm, and use the optimal noise suppression algorithm as a second optimal signal processing policy associated with the sound quality parameter.
- the second selecting subunit 1242 is further configured to obtain the first noise suppression result of the first noise suppression algorithm from the first test processing result, and obtain the second noise suppression result of the second noise suppression algorithm from the second test processing result.
- the second selecting subunit 1242 is further configured to perform a second comparison between optimization quality of the first noise suppression result and optimization quality of the second noise suppression result, to obtain a second comparison result.
- the second selecting subunit 1242 is further configured to use, in a case that the second comparison result indicates that the optimization quality of the first noise suppression result is better than the optimization quality of the second noise suppression result, the first noise suppression algorithm in the first pre-signal processing policy as the second optimal signal processing policy associated with the sound quality parameter.
- the second selecting subunit 1242 is further configured to use, in a case that the second comparison result indicates that the optimization quality of the second noise suppression result is better than the optimization quality of the first noise suppression result, the second noise suppression algorithm in the second pre-signal processing policy as the second optimal signal processing policy associated with the sound quality parameter.
- the third selecting subunit 1243 is configured to obtain a first gain control result of the first gain control algorithm from the first test processing result, obtain a second gain control result of the second gain control algorithm from the second test processing result, select, based on the first gain control result and the second gain control result, an optimal gain control algorithm from the first gain control algorithm and the second gain control algorithm, and use the optimal gain control algorithm as a third optimal signal processing policy associated with the sound quality parameter.
- the third selecting subunit 1243 is further configured to obtain the first gain control result of the first gain control algorithm from the first test processing result, and obtain the second gain control result of the second gain control algorithm from the second test processing result.
- the third selecting subunit 1243 is further configured to perform a third comparison between optimization quality of the first gain control result and optimization quality of the second gain control result, to obtain a third comparison result.
- the third selecting subunit 1243 is further configured to use, in a case that the third comparison result indicates that the optimization quality of the first gain control result is better than the optimization quality of the second gain control result, the first gain control algorithm in the first pre-signal processing policy as the third optimal signal processing policy associated with the sound quality parameter.
- the third selecting subunit 1243 is further configured to use, in a case that the third comparison result indicates that the optimization quality of the second gain control result is better than the optimization quality of the first gain control result, the second gain control algorithm in the second pre-signal processing policy as the third optimal signal processing policy associated with the sound quality parameter.
- the optimal policy determining subunit 1244 is configured to determine the first optimal signal processing policy, the second optimal signal processing policy, and the third optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- first selecting subunit 1241 For specific implementations of the first selecting subunit 1241, the second selecting subunit 1242, the third selecting subunit 1243 and the optimal policy determining subunit 1244, reference may be made to the description about the foregoing specific implementation of determining the signal processing result, and details are not described again herein.
- the optimization result obtaining unit 125 is configured to, in a case that no test type matching the terminal type is found in the test list and the uplink voice data of the first user obtained through a microphone in the game voice mode, perform voice optimization on the uplink voice data through the first pre-signal processing policy, to obtain a first voice optimization result, and perform voice optimization on the uplink voice data through the second pre-signal processing policy, to obtain a second voice optimization result.
- the processing result determining unit 126 is configured to determine, based on the first voice optimization result and the second voice optimization result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and use the determined optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- the sound quality index obtaining unit 121 For specific implementations of the sound quality index obtaining unit 121, the terminal type search unit 122, the test result obtaining unit 123, the optimal policy determining unit 124, the optimization result obtaining unit 125 and the processing result determining unit 126, reference may be made to the description about step S101 and step S102 in the foregoing embodiment corresponding to FIG. 5 , and details are not described again herein.
- the component control module 13 is configured to control, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy.
- a first optimization component turned on in the first pre-signal processing policy is different from a second optimization component turned on in the second pre-signal processing policy.
- the first optimization component turned on in the first pre-signal processing policy and the voice optimization component turned off in the second pre-signal processing policy have the same optimization function
- the second optimization component turned on in the second pre-signal processing policy and the first optimization component turned off in the first pre-signal processing policy have the same optimization function.
- the component control module 13 includes: a collaboration mechanism starting unit 131, a component control unit 132, a first component turn-on unit 133 and a second component turn-on unit 134.
- the collaboration mechanism starting unit 131 is configured to start, according to the signal processing result, a collaboration mechanism between the application layer and the terminal system layer of the terminal to which the service application belongs.
- the component control unit 132 is configured to control, in the application layer based on the collaboration mechanism, to turn on or turn off the second optimization component in the second pre-signal processing policy in the terminal system layer.
- the first component turn-on unit 133 is configured to use, in the application layer, the second optimization component turned off in the second pre-signal processing policy as a first collaboration component, and turn on, in the first pre-signal processing policy, a first optimization component having the same optimization function as the first collaboration component.
- the second component turn-on unit 134 is configured to use, in the application layer, the second optimization component turned on in the second pre-signal processing policy as a second collaboration component, and turn off, in the first pre-signal processing policy, a first optimization component having the same optimization function as the second collaboration component.
- step S102 For the specific implementations of the collaboration mechanism starting unit 131, the component control unit 132, the first component turn-on unit 133 and the second component turn-on unit 134, reference may be made to the description about step S102 in the embodiment corresponding to FIG. 5 , and details are not described herein again.
- the voice optimization module 14 is configured to obtain uplink voice data of a first user of the service application in the game voice mode, and perform, based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy, voice optimization on the uplink voice data in the game voice mode.
- the first optimization component in the first pre-signal processing policy includes at least: a first acoustic echo cancellation component, a first noise suppression component, and a first gain control component;
- the second optimization component in the second pre-signal processing policy includes at least: a second acoustic echo cancellation component, a second noise suppression component, and a second gain control component;
- the first acoustic echo cancellation component and the second acoustic echo cancellation component are both configured to perform acoustic echo cancellation;
- the first noise suppression component and the second noise suppression component are both configured to perform noise suppression;
- the first gain control component and the second gain control component are both configured to perform gain adjustment.
- the resource package obtaining module 15 is configured to obtain, in a case that the first user accesses the service application, a system resource package used for loading the service application, and parse the system resource package, to obtain system resource data of the service application; and the initialization module 16 is configured to initialize the system resource data, and initially configure, based on the initialized system resource data, a service mode of the service application as a system media mode.
- the application interface output module 17 is configured to output, based on the initialized system resource data, an application display interface of the service application, where the application display interface includes a voice control used for indicating the first user to initiate a voice interaction service; and the voice starting module 18 is configured to detect an application type of the service application in response to a voice starting operation of the first user for the voice control.
- the voice starting module 18 may instruct, in a case that the application type of the service application is a game type, the game mode switching module 11 to generate, in the case that the application type of the service application is the game type, a first voice call instruction associated with the game type, and switch, based on the first voice call instruction, the service mode of the service application from the system media mode to the game voice mode.
- the voice starting module 18 may alternatively instruct, in a case that the application type of the service application is a non-game type (for example, social type), the call mode switching module 19 to generate, in the case that the application type of the service application is the non-game type, a second voice call instruction associated with the game type, and switch, based on the second voice call instruction, the service mode of the service application from the system media mode to the system call mode.
- a non-game type for example, social type
- the call request transmitting module 20 is configured to transmit, in a case of determining based on the system call mode that a call type of the voice interaction service is a system call type, a system call request corresponding to the system call type to a second user through the service application, where the second user is a user selected by the first user in the service application to make a system call and; and the communication channel establishing module 21 is configured to establish, in a case that the second user responds to the system call request, a system communication channel between the first user and the second user, and make a system call by using the system communication channel.
- the target result determining module 22 is configured to use voice-optimized uplink voice data as a target voice optimization result of the uplink voice data; and the target result transmitting module 23 is configured to transmit the target voice optimization result to a terminal of a third user associated with the first user, to cause the terminal of the third user to play the voice-optimized uplink voice data through a speaker in the game voice mode.
- the first user and the third user are game users in the same game camp in the game voice mode.
- the voice closing module 24 is configured to switch, in response to a voice closing operation of the first user for the voice control, the service mode of the service application from the game voice mode back to the system media mode.
- the processing result obtaining module 12 the component control module 13 and the voice optimization module 14, reference may be made to the description about step S101 to step S103 in the embodiment corresponding to FIG. 5 , and details are not described herein again.
- the resource package obtaining module 15 the initialization module 16, the application interface output module 17, the voice starting module 18, the game mode switching module 11, the call mode switching module 19, the call request transmitting module 20, the communication channel establishing module 21, the target result determining module 22, the target result transmitting module 23, and the voice closing module 24, reference may be made to the description about step S201 to step S213 in the embodiment corresponding to FIG. 9 , and details are not described herein again.
- the description of beneficial effects of the same method is not described herein again.
- An audio data processing apparatus is further provided according to an exemplary embodiment of the present disclosure, the apparatus is configured to perform the method embodiment shown in FIG. 12 , and the apparatus may include at least one of the following: a processing result obtaining module and a component control module.
- the processing result obtaining module is configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy includes at least one first optimization component.
- the component control module is configured to control, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, the second pre-signal processing policy includes at least one second optimization component.
- An audio data processing apparatus is further provided according to an exemplary embodiment of the present disclosure, the apparatus is configured to perform the method embodiment shown in FIG. 13 , and the apparatus may include at least one of the following: a processing result obtaining module and a component control module.
- the processing result obtaining module is configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy includes at least one first optimization component.
- the component control module is configured to control, according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy, a first optimization component turned on in the first pre-signal processing policy is different from a second optimization component turned on in the second pre-signal processing policy.
- FIG. 15 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure.
- the computer device 1000 may be a user terminal, and the user terminal may be the foregoing target user terminal.
- the computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005.
- the computer device 1000 may further include: a user interface 1003 and at least one communication bus 1002.
- the communication bus 1002 is configured to implement connection and communication between the components.
- the user interface 1003 may include a display, a keyboard, and preferably, the user interface 1003 may further include a standard wired interface, a wireless interface.
- the network interface 1004 may include a standard wired interface and a standard wireless interface (such as a Wi-Fi interface).
- the memory 1005 may be a high-speed random access memory (RAM), or may be a non-volatile memory, for example, at least one magnetic disk memory.
- the memory 1005 may be at least one storage apparatus that is located far away from the foregoing processor 1001.
- the memory 1005 used as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device-control application.
- the network interface 1004 in the computer device 1000 may further provide a network communication function, and preferably, the user interface 1003 may further include a display and a keyboard.
- the network interface 1004 may provide a network communication function
- the user interface 1003 is mainly configured to provide an input interface for a user
- the processor 1001 may be configured to invoke the device-control application stored in the memory 1005, to perform the description about the audio data processing method in the foregoing embodiment corresponding to FIG. 5 or FIG. 9 or FIG. 12 or FIG. 13 or another method embodiment, or perform the description about the audio data processing apparatus 1 in the foregoing embodiment corresponding to FIG. 14 , and details are not described herein again.
- the description of beneficial effects of the same method is not described herein again.
- a computer storage medium is further provided according to an exemplary embodiment of the present disclosure.
- the computer storage medium stores a computer program executed by the audio data processing apparatus 1 mentioned above, and the computer program includes program instructions.
- the processor may perform the description about the audio data processing method in the foregoing embodiment corresponding to FIG. 5 or FIG. 9 or FIG. 12 or FIG. 13 or another method embodiment. Therefore, details are not described herein again.
- the description of beneficial effects of the same method is not described herein again.
- For technical details that are not disclosed in the computer storage medium embodiments of the present disclosure refer to the descriptions of the method embodiments of the present disclosure.
- a computer program product or a computer program is further provided according to an exemplary embodiment of the present disclosure
- the computer program product or the computer program includes computer instructions
- the computer instructions are stored in a computer-readable storage medium.
- a processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the computer device to perform the description about the audio data processing method in the foregoing embodiment corresponding to FIG. 5 or FIG. 9 or FIG. 12 or FIG. 13 or another method embodiment. Therefore, details are not described herein again.
- the description of beneficial effects of the same method is not described herein again.
- For technical details that are not disclosed in the computer storage medium embodiments of the present disclosure refer to the descriptions of the method embodiments of the present disclosure.
- the program may be stored in a computer-readable storage medium. When the program runs, the procedures of the methods in the embodiments are performed.
- the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), or the like.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- Signal Processing (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Acoustics & Sound (AREA)
- Quality & Reliability (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
- Circuit For Audible Band Transducer (AREA)
- Control Of Amplification And Gain Control (AREA)
- Optical Recording Or Reproduction (AREA)
Abstract
Description
- This application claims priority to
, which is incorporated herein by reference in its entirety.Chinese Patent Application No. 202110088769.3, entitled "AUDIO DATA PROCESSING METHOD AND APPARATUS, DEVICE, AND READABLE STORAGE MEDIUM" and filed on January 22, 2021 - This application relates to the field of computer technologies, and in particular, to an audio data processing method and apparatus, a device, a storage medium, and a program product.
- Currently, a user (for example, a user A) of a mobile terminal may make a system call to another user (for example, a user B) in a system call mode. For example, the user A may make a system call (that is, make a phone call) to the user B in the foregoing system call mode in a telephone call scenario.
- Therefore, when the user A runs a game application (for example, a game application X) on the mobile terminal and makes a system call (that is, make a phone call) to the user B, an application layer of the game application X usually needs to use a system call mode of a terminal system layer of the mobile terminal. Based on this, when the mobile terminal identically turns on signal processing units (that is, voice optimization components) in a voice pre-signal processing solution in the system call mode, both the application layer and the terminal system layer will perform voice optimization on a collected sound of the user A through signal processing units of the same function type (that is, voice optimization components with the same function). As a result, the voice optimization components with the same function are operated repeatedly, resulting in increased overheads of the system. Further, the multiple number of times of repeated processing can cause problems such as sound quality loss, which will reduce the voice optimization effect.
- An audio data processing method and apparatus, a device, a storage medium, and a program product are provided according to embodiments of the present disclosure, to improve a voice optimization effect in a game scenario.
- In an aspect of the embodiments of the present disclosure, an audio data processing method is provided, which is performed by a computer device. The method includes: obtaining, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy including at least one first optimization component; controlling, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy, a first optimization component turned on in the first pre-signal processing policy being different from a second optimization component turned on in the second pre-signal processing policy; obtaining uplink voice data of a first user of the service application in the game voice mode, and performing, based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy, voice optimization on the uplink voice data in the game voice mode.
- In an aspect of the embodiments of the present disclosure, an audio data processing method is provided, which is performed by a computer device. The method includes: obtaining, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy including at least one first optimization component; controlling, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, the second pre-signal processing policy including at least one second optimization component.
- In an aspect of the embodiments of the present disclosure, an audio data processing method is provided, which is performed by a computer device. The method includes: obtaining, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy including at least one first optimization component; controlling, according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy, a first optimization component turned on in the first pre-signal processing policy being different from a second optimization component turned on in the second pre-signal processing policy.
- In an aspect of the embodiments of the present disclosure, an audio data processing apparatus is provided, which includes: a processing result obtaining module, a component control module, and a voice optimization module. The processing result obtaining module is configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy includes at least one first optimization component. The component control module is configured to control, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy, a first optimization component turned on in the first pre-signal processing policy is different from a second optimization component turned on in the second pre-signal processing policy. The voice optimization module is configured to obtain uplink voice data of a first user of the service application in the game voice mode, and perform, based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy, voice optimization on the uplink voice data in the game voice mode.
- In an aspect of the embodiments of the present disclosure, an audio data processing apparatus is provided, which includes: a processing result obtaining module and a component control module. The processing result obtaining module is configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy includes at least one first optimization component. The component control module is configured to control, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, the second pre-signal processing policy includes at least one second optimization component.
- In an aspect of the embodiments of the present disclosure, an audio data processing apparatus is provided, which includes: a processing result obtaining module and a component control module. The processing result obtaining module is configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy includes at least one first optimization component. The component control module is configured to control, according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy, a first optimization component turned on in the first pre-signal processing policy is different from a second optimization component turned on in the second pre-signal processing policy.
- In an aspect of the embodiments of the present disclosure, a computer device is provided, which includes: a processor and a memory. The processor is connected to the memory, the memory is configured to store a computer program, the computer program, when executed by the processor, causing the computer device to perform the method according to the embodiments of the present disclosure.
- In an aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, which stores a computer program. The computer program is configured to be loaded and executed by a processor, to cause a computer device having the processor to perform the method according to the embodiments of the present disclosure.
- In an aspect of the embodiments of the present disclosure, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the computer device to perform the method according to the embodiments of the present disclosure.
- In the embodiments of the present disclosure, the computer device (for example, a mobile terminal) may control, in the application layer according to the signal processing result in the game voice mode, to turn on and turn off of the second optimization component in the second pre-signal processing policy in the terminal system layer (that is, the voice optimization component in the second pre-signal processing policy), or to turn on and turn off of the first optimization component in the first pre-signal processing policy (that is, the voice optimization component in the first pre-signal processing policy). It can be understood that, a first optimization component turned on in the first pre-signal processing policy is different from a second optimization component turned on in the second pre-signal processing policy. Therefore, it can be seen that, in the embodiments of the present disclosure, one or more voice optimization components in the terminal system layer may be controlled to be turned on or turned off in the application layer according to the foregoing signal processing result (that is, algorithm comparison results respectively of voice optimization components having the same function), so that the voice optimization components having the same optimization function may be either run in the application layer or the terminal system layer. In this way, sound quality loss of the uplink voice data may be reduced effectively. It can be understood that, the quantity and type of second optimization components turned on or turned off in the terminal system layer are not limited herein. Further, when obtaining the uplink voice data of the first user in the game voice mode, the computer device may quickly perform voice optimization on the uplink voice data in the game voice mode based on the first optimization component and the second optimization component having different functions, which can improve the voice optimization effect in the game scenario while reducing the sound quality loss.
-
-
FIG. 1 is a schematic structural diagram of a network architecture according to an embodiment of the present disclosure. -
FIG. 2 is a schematic diagram of service modes according to an embodiment of the present disclosure. -
FIG. 3 is a schematic diagram of a voice data processing process according to an embodiment of the present disclosure. -
FIG. 4 is a schematic diagram of a scenario of performing voice interaction in a game scenario according to an embodiment of the present disclosure. -
FIG. 5 is a schematic flowchart of an audio data processing method according to an embodiment of the present disclosure. -
FIG. 6 is a schematic diagram of a scenario of a test list according to an embodiment of the present disclosure. -
FIG. 7 is a schematic diagram of a scenario of determining an optimal signal processing policy associated with a sound quality parameter according to an embodiment of the present disclosure. -
FIG. 8 is a schematic diagram of a scenario of controlling each voice optimization component to be turned on or turned off in a voice pre-signal processing solution according to an embodiment of the present disclosure. -
FIG. 9 is a schematic diagram of an audio data processing method according to an embodiment of the present disclosure. -
FIG. 10 is a schematic diagram of a scenario of a resource configuration interface according to an embodiment of the present disclosure. -
FIG. 11 is a schematic flowchart of a process for providing a voice double-talk service of different types according to an embodiment of the present disclosure. -
FIG. 12 is a schematic flowchart of another audio data processing method according to an embodiment of the present disclosure. -
FIG. 13 is a schematic flowchart of another audio data processing method according to an embodiment of the present disclosure. -
FIG. 14 is a schematic structural diagram of an audio data processing apparatus according to an embodiment of the present disclosure. -
FIG. 15 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure. - Embodiments in the present disclosure may be individually implemented or arbitrarily combined to form a new embodiment, all of which should belong to the protective scope of the present disclosure.
- Before describing the embodiments of the present disclosure, some technical terms related to the present disclosure are first introduced.
- 1. Game voice mode is a voice mode, existed with a media mode and a call mode, that is provided by a terminal system according to voice requirements and characteristics in a game application scenario.
- 2. Sampling rate is also referred to as a sampling frequency, which refers to the quantity of samples extracted from continuous signals per second and forming discrete signals, and is in the unit of hertz (Hz). A higher sampling rate indicates more precise data. Generally, the sampling rate may be 8 kHz, 16 kHz, 44.1 kHz, and 48 kHz.
- 3. Bits of samples is a sample value or sampling value, which is a parameter for measuring sound fluctuation, and refers to binary bits of a digital sound signal used when an audio adapter collects and plays a sound file. Generally, the bits of samples include 8 bits, 16 bits and 32 bits, and a mobile phone platform usually use 16 bits of samples.
- 4. Number of sound channels is also referred to as the number of channels, that is, the number of acoustic channels, and is usually related to a hardware device. The common number of sound channels includes a single sound channel and a double sound channel (stereo), the single sound channel can only produce sound through one speaker, the double sound channel may produce sound through two speakers, where a left sound channel and a right sound channel are responsible for different services, to provide a good space effect.
- 5. Noise suppression: Voice data collected through a voice collection tool usually not only includes valid voice data, for example, a human sound, a musical sound and the like, but also includes useless noise data, for example, an environmental sound and the like. The noise suppression is a technology for eliminating or reducing impact of noise on the entire voice effect as much as possible according to characteristics of the voice data.
- 6. Automatic gain control is an automatic control method for adjusting a gain of an amplification circuit automatically with signal strength, and is mainly used for enhancing signal strength of the valid voice data.
- 7. Acoustic echo cancellation: An acoustic echo refers to a sound reflected or repeated by an acoustic wave or a sound returned to a speaker after a signal of the sound is transmitted and played through a network and then is collected and transmitted back again by a peer end. Acoustic echo cancellation refers to canceling these sounds through a signal processing algorithm or apparatus.
- 8. Dynamic range compression is dynamic range control, and may dynamically adjust an output amplitude of an audio. When the volume is high, the volume is appropriately turned down; and when the volume is low, the volume is appropriately turned up, so that the volume is always controlled to be in an appropriate range. The dynamic range compression is usually used for controlling an audio output power, so that the sound of the speaker is not cracked. Even if the sound is played at low volume, the sound can still be clearly heard.
- 9. Front-end processing refers to a technology for processing original voice data before being encoded and transmitted, to enable the processed voice signal to better reflect essential features of the voice. The voice front-end processing technology usually mainly includes technologies such as noise suppression, acoustic echo cancellation, and automatic gain control.
-
FIG. 1 is a schematic structural diagram of a network architecture according to an embodiment of the present disclosure. As shown inFIG. 1 , the network architecture may include aservice server 2000 and a user terminal cluster. - The user terminal cluster may include one or more user terminals, and the quantity of user terminals is not limited herein. As shown in
FIG. 1 , the multiple user terminals herein may specifically include auser terminal 3000a, a user terminal 3000b, a user terminal 3000c, ..., and auser terminal 3000n. As shown inFIG. 1 , theuser terminal 3000a, ..., and the user terminal 3000b may each establish a network connection to theservice server 2000, so that each user terminal in the user terminal cluster can exchange data with theservice server 2000 through the network connection. - The
service server 2000 shown inFIG. 1 may be an independent physical server, or may be a server cluster or a distributed system formed by multiple physical servers, or may be a cloud server that provides a basic cloud computing service such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a content delivery network (CDN), big data, and an artificial intelligence platform. - For ease of understanding, in this embodiment of the present disclosure, one user terminal (for example, a user terminal used by a user A) may be selected from the user terminal cluster shown in
FIG. 1 as a target user terminal. For example, in this embodiment of the present disclosure, theuser terminal 3000a shown inFIG. 1 may be used as the target user terminal. The target user terminal may be integrated with service applications having an audio data processing function (for example, audio data collection and playing function). The service applications may specifically include application clients having an audio data collection and playing function such as an entertainment client (for example, game client), a social client, an office client, a live streaming client and the like. The target user terminal (for example, theuser terminal 3000a) may specifically include: a mobile terminal carrying an audio data processing function such as a smartphone, a tablet computer, a notebook computer, a wearable device. In this embodiment of the present disclosure, application types of entertainment clients (for example, game client) may be collectively referred to as a game type, and application types respectively of a social client (for example, QQ, WeChat and other clients), an office client (for example, enterprise client), a live streaming client and the like may be collectively referred to as a non-game type. - It can be understood that, for a user terminal (for example, the foregoing target user terminal) on which the foregoing service applications are run, different service modes may be adaptively selected according to different application types of the service applications, so as to perform different types of voice interaction services in different service scenarios.
- As shown in
FIG. 2 , service modes herein may specifically include asystem media mode 21a (also referred to as a "media mode"), asystem call mode 21b (also referred to as a "voice call mode" or a "call mode") and agame voice mode 21c. - It is to be understood that, a target user terminal may configure a service mode of a service application as the
system media mode 21a by default in a case that a user (that is, a first user) does not have a voice double-talk requirement (that is, does not need to perform voice interaction). In an embodiment, the target user terminal may alternatively intelligently recognize, in a case that the user (that is, the first user) has the voice double-talk requirement (that is, needs to perform voice interaction), an application type of a service application that need to perform voice interaction, and adaptively select a corresponding service mode according to the application type of the service application. For example, in a case that the application type of the service application is a game type, the service mode of the service application is configured as thegame voice mode 21c. In a case that the application type of the service application is a non-game type, the service mode of the service application is configured as thesystem call mode 21b. - The
system media mode 21a may be used for indicating that the target user terminal plays audio data of a music or video program for the current user (that is, the first user). - The
system call mode 21b may be used for indicating that the target user terminal causes the current user (that is, the first user) to make a system call to another user (that is, a second user, which may be a user selected by the first user from a service application to make a system call) through thesystem call mode 21b in the non-game scenario. - The
game voice mode 21c may be used for indicating that the target user terminal provides a brand-new voice interaction service in the game scenario. For example, in thegame voice mode 21c, the user (that is, the first user) may directly make a game voice call to another user (for example, a third user, which may be a game user in the same game camp as the first user in thegame voice mode 21c). - Different from chat software, the voice environment in the game scenario is more complex, and consideration needs to be given to both voice call quality and media playing sound quality. The existing user terminal only provides the
system call mode 21b applicable to the call scenario and thesystem media mode 21a applicable to the music playing scenario, but has not considered a scenario of fusing the two cases, and consequently has an undesired application effect in the game scenario. Therefore, how to improve system media playing sound quality while ensuring call experience at two voice ends becomes a key to improving voice experience of a game user. As shown inFIG. 2 , in the present disclosure, by providing thegame voice mode 21c together with thesystem call mode 21b and thesystem media mode 21a, a mobile intelligent terminal optimizes the voice service in the game application scenario. A mobile application may also select the most proper voice mode according to its own service characteristics and requirements, so as to quickly and efficiently integrate a voice service in the application. Thegame voice mode 21c is a voice mode of an application in the game service or in the game scenario, which aims to optimize voice experience of a player for the game scenario. In thegame voice mode 21c, for the game application scenario, effective optimization measures are taken for various steps such as voice collection, processing, setting and the like, thereby providing a game player with smooth game voice and superior game sound effect experience. - It is to be noted that, the present disclosure is mainly applied to the game voice industry, and therefore the voice mode proposed by the present disclosure is referred to as a "game voice mode". It is to be understood that, the "game voice mode" is not only applicable to the game scenario, but also applicable to other service scenarios having a voice processing requirement the same as or similar to that of the game scenario, for example, applicable to all voice service scenarios that need to give consideration to both voice call quality and media playing sound quality, such as the live video streaming scenario, the video conference scenario and the like, which is not limited in the present disclosure.
- Using the game scenario as an example, game voice mainly undergoes such two stages as a voice data collection stage and a voice data playing stage.
FIG. 3 is a schematic diagram showing a voice data processing process. - The voice data collection stage sequentially includes the following
processes 1 to 4. - 1. Voice signal collection: A voice is usually inputted to a mobile phone through a microphone. The microphone mainly converts an acoustic wave into voltage signals, and then samples the voltage signals, thereby converting continuous voltage signals into digital signals that a computer can process. Indexes affecting quality of a collected voice signal mainly include a sampling rate, bits of samples and the number of sound channels. A higher sampling rate indicates that, the quantity of times of obtaining sound samples per second is also larger, and quality of a finally obtained audio is also higher.
- 2. Voice signal front-end processing: Data collected by the microphone is pre-processed, to improve quality of the voice data. The front-end processing process usually includes acoustic echo cancellation, automatic gain control, noise suppression and other audio processing algorithms.
- 3. Encoding: Voice encoding is used for compressing the collected digital voice signal, to reduce the transmission bit rate and perform digital transmission.
- 4. Transmission: Transmission refers to transmitting the encoded voice data to a designated voice server through a network, so that other users can hear the voice data of the user through the server.
The voice data playing stage sequentially includes the followingprocesses 5 to 8. - 5. Receiving the voice data: Receiving the voice data is a process of obtaining to-be-played voice data of other users from the designated voice server.
- 6. Decoding: Decoding is a process corresponding to encoding, that is, the received encoded voice data is decoded, to convert the digital signal into an analog signal.
- 7. Post-processing: For the decoded voice data, stalling and other phenomena affecting the audio playing effect may exist in the played voice data because of packet loss and other problems, and the decoded voice data needs to be adjusted and optimized through the post-processing process.
- 8. Playing: Audio data is played through a speaker, a headset and other devices.
- It can be understood that, the target user terminal may start a collaboration mechanism between the application layer and the terminal system layer in the game voice mode, and select, adaptively according to an algorithm comparison result (that is, a signal processing result) and according to the collaboration mechanism, to turn on a voice optimization component having the same optimization function from voice optimization components of the application layer and voice optimization components of the terminal system layer. In this way, when the application layer and the terminal system layer operate collaboratively according to the foregoing collaboration mechanism, real-time human sound processing may be performed on uplink voice data of the current user (that is, the foregoing first user) collected in real time in the game scenario, so as to improve the voice optimization effect of the uplink voice data, thereby improving voice interaction experience between game users.
- For ease of understanding,
FIG. 4 is a schematic diagram of a scenario of performing voice interaction in a game scenario according to an embodiment of the present disclosure. It can be understood that, in the game scenario, an application type of a service application in a user terminal 10a shown inFIG. 4 may be the foregoing game type. In this case, the user terminal 10a may switch a service mode of the service application from a system media mode to a game voice mode, so that a user 1 (that is, the foregoing first user) shown inFIG. 4 may make a game voice call to a user 2 (that is, the foregoing third user) shown inFIG. 4 in the game voice mode. - It can be understood that, the user terminal 10a shown in
FIG. 4 may be the foregoing target user terminal having the audio data processing function. It can be understood that, when theuser 1 shown inFIG. 4 needs to perform voice interaction with the user terminal 20a of theuser 2 shown inFIG. 4 through the user terminal 10a, voice optimization may be performed on a collected sound of theuser 1 in advance in the user terminal 10a, so that the optimized sound of theuser 1 may be transmitted to the user terminal 20a of theuser 2 as a target voice optimization result of uplink voice data, and the sound of theuser 1 may be played through a speaker shown inFIG. 4 in the user terminal 20a. It can be understood that, in this embodiment of the present disclosure, sounds of theuser 1 collected by a microphone (corresponding to a voice control in anapplication display interface 100a shown inFIG. 4 ) of the user terminal 10a may be collectively referred to as a voice uplink signal, that is, audio frames obtained after spectrum analysis is performed on the sound signals collected by the microphone may be collectively referred to as uplink voice data. Additionally, it can be understood that, in this embodiment of the present disclosure, the optimized sound of theuser 1 that is played by the speaker (corresponding to a playing control in anapplication display interface 200a shown inFIG. 4 ) of the user terminal 20a may be collectively referred to as a voice downlink signal, that is, audio frames of the sound signal transferred to the speaker for playing may be referred to as downlink voice data. Similarly, optimized sounds of another user (for example, the user 2) played by a speaker of the user terminal 10a may also be collectively referred to as a voice downlink signal. - It can be understood that, in the game scenario, after collecting the sound (that is, the foregoing voice uplink signal) of the
user 1 in real time through the microphone, the user terminal 10a shown in shown inFIG. 4 may obtain uplink voice data corresponding to the voice uplink signal, and perform voice optimization on the uplink voice data of theuser 1 through an optimal signal processing policy jointly negotiated between the application layer of the foregoing service application and the terminal system layer, for example, according to the first optimization component turned on in the application layer and the second optimization component turned on in the terminal system layer that are jointly negotiated. The second optimization component is different from the first optimization component. Additionally, the first optimization component turned on in the application layer (that is, the first optimization component turned on in the first pre-signal processing policy) and the second optimization component turned off in the second pre-signal processing policy have the same optimization function, and the second optimization component turned on in the terminal system layer and the first optimization component turned off in the foregoing first pre-signal processing policy have the same optimization function. It is to be understood that, in this embodiment of the present disclosure, voice optimization components in the first pre-signal processing policy may be collectively referred to as the first optimization components, and voice optimization components in the second pre-signal processing policy may be collectively referred to as the second optimization components. In this way, through the collaboration mechanism between the application layer and the terminal system layer, it can be effectively ensured that voice optimization components having the same optimization function are either run on the application layer, or run on the terminal system layer, thereby effectively avoiding a problem that voice optimization components having the same optimization function are repeatedly run. - The voice optimization here is the front-end processing process described above, and mainly includes but not limited to performing acoustic echo cancellation (AEC), performing noise suppression (NS), and performing automatic gain control (AGC).
- In the process of performing acoustic echo cancellation (AEC), an acoustic echo mainly refers to a phenomenon that a voice transmitted by a speaker (for example, the foregoing user 1) to another person (for example, the foregoing user 2) through a communication device (for example, the foregoing user terminal 10a) of the speaker returns to an earpiece of the speaker again. The acoustic echo cancellation involved in this embodiment of the present disclosure mainly refers to a processing solution in which the target user terminal (for example, the foregoing user terminal 10a) cancels this acoustic echo through a specific algorithm apparatus (for example, acoustic echo cancellation component).
- In the process of performing noise suppression (NS), noise mainly refers to a sound signal sent by another object different from the speaker (for example, the foregoing user 1) and collected by the target user terminal (for example, the foregoing user terminal 10a). Based on this, the noise suppression involved in this embodiment of the present disclosure mainly refers to a processing solution in which the target user terminal (for example, the foregoing user terminal 10a) cancels this noise through a specific algorithm apparatus (for example, noise suppression component).
- In the process of performing automatic gain control (AGC), the target user terminal (for example, the foregoing user terminal 10a) may intelligently adjust the energy of the voice signal according to an auditory perception range of a person for sounds through a specific algorithm apparatus (for example, gain control component), so that the voice signal can be better perceived.
- It is to be understood that, in a case that the user terminal 10a selects, through an algorithm comparison result, to turn on a first optimization component 11 (for example, acoustic echo suppression component) in the first pre-signal processing policy in the application layer, it is required to synchronously turn off a
second optimization component 21 having the same optimization function as the first optimization component 11 (for example, acoustic echo suppression component) in the terminal system layer, and thesecond optimization component 21 may be an acoustic echo suppression component in the second pre-signal processing policy in the terminal system layer controlled by the application layer to be turned off. This means that in this embodiment of the present disclosure, when collecting a sound of the user 1 (that is, uplink voice data of the first user) in the game scenario in real time through the microphone, the target user terminal only needs to run one voice optimization component having the same optimization function in the application layer or the terminal system layer, so as to ensure that the function of the voice optimization component having the same optimization function is run once, thereby resolving the problem of wasting computing resources due to repeatedly running the function of the voice optimization components having the same optimization function. - It can be understood that, as shown in
FIG. 4 , when the user 1 (herein mainly referring to a game user, for example, a game user A) selects to turn on the voice control (that is, when the voice control in a turned-off state, a service mode of the service application run on the user terminal 10a may be the system media mode) shown inFIG. 4 in theapplication display interface 100a shown inFIG. 4 , the terminal used by the user 1 (for example, the user terminal 10a shown inFIG. 4 ) may determine the application type of the service application run on the user terminal 10a, and switch the service mode of the service application from the system media mode to the game voice mode, so that the user terminal 10a may collect and optimize the sound of theuser 1 in real time in the game voice mode, to obtain the optimized sound of theuser 1 shown inFIG. 4 . Further, the user terminal 10a may broadcast the optimized sound of theuser 1 to another teammate in a camp in which theuser 1 is located (for example, theuser 2, theuser 2 may be another game user located in the same camp as the user 1). In this way, when a terminal (for example, the user terminal 20a shown inFIG. 4 ) used by the another teammate in the same camp (for example, the user 2) turns on a playing control shown inFIG. 4 (for example, turns on the speaker in the game scenario), the received optimized sound of theuser 1 may be played. - In an embodiment, in a case that the foregoing user terminal 10a detects that an application type of the foregoing service application belongs to the non-game type (for example, social type), the user terminal 10a (that is, the foregoing target user terminal) may intelligently switch a service mode of the service application from the system media mode to the system call mode, so as to perform the second type of voice call service in the system call mode, where the second type of voice call service may be a voice interaction service of a system call type in the non-game scenario. For example, in a social scenario, the
user 1 shown inFIG. 4 may be allowed to transmit a system call request corresponding to the system call type to theuser 2 shown inFIG. 4 , and when a terminal of theuser 2 shown inFIG. 4 (that is, the foregoing user terminal 20a) responds to the system call request (such as, theuser 2 confirms to receive a calling request of the user 1), a system communication channel between theuser 1 and theuser 2 may be established, so as to make a system call through the system communication channel. - For a specific implementation in which the target user terminal (for example, the user terminal 10a shown in
FIG. 4 ) performs control through the foregoing application layer to turn on or turn off the second optimization component in the second pre-signal processing policy in the terminal system layer, and performs voice optimization on the uplink voice data of the first user, reference may be made to the following embodiments corresponding toFIG. 5 to FIG. 15 . - Referring to
FIG.5, FIG. 5 is a schematic flowchart of an audio data processing method according to an embodiment of the present disclosure. The method is performed by a computer device. For example, the method may be performed by a user terminal (for example, the foregoing target user terminal, the target user terminal may be the user terminal 10a in the foregoing embodiment corresponding toFIG. 4 ), or may be performed by a service server (for example, the foregoingservice server 2000 shown inFIG. 1 ), or may be performed by a user terminal and a service server interactively and collaboratively. For ease of understanding, this embodiment is described by using an example in which the method is performed by the user terminal. The audio data processing method may include at least one step of the following step S 101 to step S103. - In step S 101, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application is acquired.
- Specifically, the target user terminal may obtain a sound quality index of the service application in the game voice mode, and configure a sound quality parameter of the service application according to the sound quality index of the service application (the sound quality parameter may include but not limited to a voice sampling rate and the number of voice channels). Further, the target user terminal obtains a terminal type of a terminal to which the service application belongs, and searches a test list associated with the service application for a test type matching the terminal type. The target user terminal may obtain, from the test list and based on the sound quality parameter in a case that a test type matching the terminal type is found in the test list, a first test processing result obtained by using the first pre-signal processing policy and a second test processing result obtained by using the second pre-signal processing policy. The first pre-signal processing policy is a pre-signal processing policy in the application layer of the service application. The second pre-signal processing policy is a pre-signal processing policy in a terminal system layer corresponding to a test terminal type. Further, the target user terminal may determine, based on the first test processing result and the second test processing result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and may use the determined optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- It can be understood that, before the target user terminal performs step S101, a system resource package of the service application may be loaded into the target user terminal in advance, and in a case that the system resource package is parsed, system resource data of the service application may be obtained. In this way, after the target user terminal initializes the system resource data, the service mode of the service application may be initially configured as the system media mode according to the initialized system resource data. It is to be understood that, in this embodiment of the present disclosure, after the system resource data is initialized, the target user terminal may enter the system media mode by default, so that an application display interface of the service application may be outputted according to the initialized system resource data in the system media mode, so as to output multimedia data of the service application (for example, video frame data and audio frame data) in the application display interface. It can be understood that, the application display interface may include a voice control used for indicating that the first user initiates a voice interaction service. In this way, when the first user needs to perform voice interaction with another user, the first user may select to trigger the voice control currently in a turned-off state, so that the target user terminal may respond to a voice starting operation performed by the first user for the voice control, and automatically detect an application type of the service application initiating the voice interaction service.
- It can be understood that, in a case that the target user terminal determines that an application type of the service application initiating the voice interaction service belongs to the game type, the target user terminal may determine that the current service scenario is a game scenario, and switch a service mode of the service application run on the target user terminal from the system media mode to the game voice mode. For example, the target user terminal generates a first voice call instruction associated with the game type in the game scenario, and switch the service mode of the service application run on the target user terminal from the system media mode to the game voice mode based on the first voice call instruction, so that a first type of voice call service may be subsequently performed in the game voice mode. It can be understood that, the target user terminal may refine, in the game voice mode according to a sound quality index of the service application, some sound quality parameters associated with the foregoing voice double-talk requirement. For example, the target user terminal may allow the foregoing first user (that is, the user using the target user terminal) to set the voice sampling rate and the number of voice channels corresponding to the target user terminal in the game voice mode.
- In an embodiment, it can be understood that, in a case that the target user terminal determines that the application type of the service application currently initiating the voice interaction service belongs to a non-game type, the target user terminal may determine that the current service scenario is a non-game scenario, and switch the service mode of the service application run on the target user terminal from the system media mode to the system voice mode. For example, the target user terminal generates a second voice call instruction associated with the non-game type in the non-game scenario, and switch the service mode of the service application run on the target user terminal from the system media mode to the system voice mode based on the second voice call instruction, and perform voice interaction with another user (for example, the foregoing second user) in the system voice mode, so as to perform the foregoing second type of voice call service.
- Therefore, it can be seen that, the game voice mode and the system voice mode according to this embodiment of the present disclosure are two service modes used for providing different types of voice call services in the foregoing voice double-talk scenario. In this way, by determining the application type of the service application initiating the voice call service, the target user terminal may intelligently enter the foregoing game voice mode when the application type is the game type, so as to perform the foregoing first type of voice call service. In an embodiment, the target user terminal may intelligently enter the foregoing system voice mode when the application type is the non-game type, so as to perform the foregoing second type of voice call service.
- It can be understood that, the target user terminal involved in this embodiment of the present disclosure may include but not limited to a mobile terminal having the foregoing voice data processing function. Therefore, the setting the voice sampling rate corresponding to the target user terminal involved in this embodiment of the present disclosure may mainly include setting an uplink sampling rate and a downlink sampling rate of the terminal. Moreover, the setting the number of voice channels of the target user terminal involved in this embodiment of the present disclosure mainly refers to setting the number of channels of voice. For example, the number of channels may be set to two according to a sound quality index of the target user terminal.
- It is to be understood that, the voice sampling rate (for example, uplink sampling rate and downlink sampling rate) may be the quantity of times of sampling sound signals by a sound recording component of the target user terminal in a unit sampling period. The voice sampling rate may include but not limited to 4 kHz, 8 kHz and 48 kHz. It is to be understood that, the value of the voice sampling rate may be used for reflecting trueness and naturalness of sounds of the user that the sound recording component can restore.
- For example, in the game voice mode, the first user may perform voice interaction through the voice double-talk service provided by the voice interaction system in the target user terminal. That is, when the microphone in the target user terminal is used for collecting a sound signal of the first user (that is, used for collecting a sound of the first user), spectrum analysis may be performed on the sound signal of the first user according to the foregoing uplink sampling rate in the game voice mode, to perform sampling to obtain the uplink voice data of the first user in the game voice mode. In this case, the target user terminal may perform voice optimization on the uplink voice data, and transmit the voice-optimized sound signal of the first user (that is, the foregoing voice-optimized sound of the first user) to another communication peer end (for example, a terminal corresponding to the foregoing third user), so as to play the foregoing voice-optimized sound of the first user in the another communication peer end through its own speaker. Similarly, the target user terminal may be further used for receiving the voice-optimized sound signal of the third user transmitted by the another communication peer end, and downlink voice data used for being transferred to the speaker of the target user terminal may be obtained after spectrum analysis is performed on the optimized sound signal of the third user according to the foregoing downlink sampling rate. In this way, when the downlink voice data is played through the speaker of the target user terminal, the optimized sound of the third user may be restored accurately for the first user as much as possible.
- For ease of understanding,
FIG. 6 is a schematic diagram of a scenario of a test list according to an embodiment of the present disclosure. A test terminal type in thetest list 301a may be test types of one or more test terminals. It can be understood that, the test terminal type may include but not limited to models of one or more brands. In an embodiment, the test terminal type may further include system types, system versions and the like of terminal environment systems corresponding to these models. - It can be understood that, when a developer of a service application has researched and developed a service application having the foregoing game voice mode, the service application may be integrated and installed in advance in test terminals of known models for performing test, so as to perform performance test using multiple pre-signal processing policies in these test terminals of the known models respectively (for example, the first pre-signal processing policy in the foregoing application layer and the second pre-signal processing policy in the foregoing terminal system layer), so as to obtain, through the test, optimization performance of voice optimization components of the same known model (that is, the same test type) in the application layer under a particular sound quality parameter, and optimization performance of voice optimization components with corresponding functions in the terminal system layer.
- For ease of understanding, using an example in which test terminal types are models of a single brand, n (n is a positive integer) models under the brand may be a test type T1, ..., and a test type Tn shown in
FIG. 6 . For example, the test type T1 may be amodel 1 of a brand A, the test type T2 may be amodel 2 of the brand A, by analogy..., and the test type Tn may be a model n of the brand A. - It can be understood that, to test optimization performance in voice test components in the application layer and voice test components in the terminal system layer under different sound quality parameters of the same model, the developer may use, in a case that the sound quality parameter is set to a sound quality parameter D 1 (for example, the uplink voice sampling rate is 8 kHz, the downlink voice sampling rate is 8 kHz, and the number of left sound channels is one), the first pre-signal processing policy in the application layer and the second pre-signal processing policy in the terminal system layer, to perform test to obtain a voice test effect of a test terminal whose model is the test type T1 under the sound quality parameter D1.
- For example, in the process of performing performance test, test processing results obtained by performing test optimization on uplink voice data (for example, uplink voice data R1 used for performing performance test) using the voice optimization components in the foregoing application layer (for example, the first optimization components such as the first acoustic echo cancellation component configured to perform acoustic echo cancellation, the first noise suppression component configured to perform noise suppression and the first gain control component configured to perform gain adjustment) may be test processing results of the application layer associated with the sound quality parameter D1 shown in
FIG. 6 . Moreover, test processing results obtained by performing test optimization on the same uplink voice data R1 using the voice optimization components in the foregoing terminal system layer (for example, the second optimization components such as the second acoustic echo cancellation component configured to perform acoustic echo cancellation, the second noise suppression component configured to perform noise suppression and the first gain control component configured to perform gain adjustment) may be test processing results of the terminal system layer associated with the sound quality parameter D1 shown inFIG. 6 . - For ease of understanding, in this embodiment of the present disclosure, it may be assumed that the test processing result of the first acoustic echo cancellation component in the application layer may be a
first test result 31a shown inFIG. 6 . In this case, the voice optimization component having the same optimization function as the foregoing first acoustic echo cancellation component in the terminal system layer may be the foregoing second acoustic echo cancellation component. As shown inFIG. 6 , the test processing result obtained by performing acoustic echo cancellation on the uplink voice data R1 using the second acoustic echo cancellation component may be a second test result 31b shown inFIG. 6 . - In another example, the test processing result of the first noise suppression component in the application layer may be a
first test result 32a shown inFIG. 6 . In this case, the voice optimization component having the same optimization function as the foregoing first noise suppression component in the terminal system layer may be the foregoing second noise suppression component. As shown inFIG. 6 , the test processing result obtained by performing noise suppression on the uplink voice data R1 using the second noise suppression component may be asecond test result 32b shown inFIG. 6 . - In another example, the test processing result of the first gain control component in the application layer may be a
first test result 33a shown inFIG. 6 . In this case, the voice optimization component having the same optimization function as the foregoing first gain control component in the terminal system layer may be the foregoing second gain control component. As shown inFIG. 6 , the test processing result obtained by performing gain adjustment on the uplink voice data R1 using the second noise suppression component may be asecond test result 33b shown inFIG. 6 . - Moreover, the rest can be deduced by analogy. As shown in
FIG. 6 , the developer may further use, in a case that the sound quality parameter is set to a sound quality parameter D2 (for example, the uplink voice sampling rate is 8 kHz, the downlink voice sampling rate is 16 kHz, and the number of left sound channels is one), the first pre-signal processing policy in the application layer and the second pre-signal processing policy in the terminal system layer, to perform test to obtain a voice test effect of another test terminal whose model is the test type Tn under the sound quality parameter D2. - For example, in another process of performing performance test, test processing results obtained by performing test optimization on another uplink voice data (for example, uplink voice data R2 used for performing performance test) using the voice optimization components in the foregoing application layer (for example, the first optimization components such as the first acoustic echo cancellation component configured to perform acoustic echo cancellation, the first noise suppression component configured to perform noise suppression and the first gain control component configured to perform gain adjustment) may be test processing results of the application layer associated with the sound quality parameter D2 shown in
FIG. 6 . Moreover, test processing results obtained by performing test optimization on the same uplink voice data R2 using the voice optimization components in the foregoing terminal system layer (for example, the second optimization components such as the second acoustic echo cancellation component configured to perform acoustic echo cancellation, the second noise suppression component configured to perform noise suppression and the second gain control component configured to perform gain adjustment) may be test processing results of the terminal system layer associated with the sound quality parameter D2 shown inFIG. 6 . - Similarly, for ease of understanding, in this embodiment of the present disclosure, it may be assumed that the test processing result of the first acoustic echo cancellation component in the application layer may be a
first test result 34a shown inFIG. 6 . In this case, the voice optimization component having the same optimization function as the foregoing first acoustic echo cancellation component in the terminal system layer may be the foregoing second acoustic echo cancellation component. As shown inFIG. 6 , the test processing result obtained after performing acoustic echo cancellation on the uplink voice data R2 using the second acoustic echo cancellation component may be asecond test result 34b shown inFIG. 6 . - Similarly, the test processing result of the first noise suppression component in the application layer may be a
first test result 35a shown inFIG. 6 . In this case, the voice optimization component having the same optimization function as the foregoing first noise suppression component in the terminal system layer may be the foregoing second noise suppression component. As shown inFIG. 6 , the test processing result obtained by performing noise suppression on the uplink voice data R1 using the second noise suppression component may be asecond test result 35b shown inFIG. 6 . - Similarly, the test processing result of the first gain control component in the application layer may be a
first test result 36a shown inFIG. 6 . In this case, the voice optimization component having the same optimization function as the foregoing first gain control component in the terminal system layer may be the foregoing second gain control component. As shown inFIG. 6 , the test processing result obtained by performing gain adjustment on the uplink voice data R2 using the second gain control component may be asecond test result 36b shown inFIG. 6 . - In view of the above, after the target user terminal performs performance test on the first optimization component in the application layer and the second optimization component having the same optimization function in the terminal system layer, test processing results of known models under different sound quality parameters may be obtained through preliminary test. Then, the developer may construct the foregoing
test list 301a inFIG. 6 according to the test terminal types, the sound quality parameters, the test processing results in the application layer and the test processing results in the terminal system layer. In this way, when the first user needs to perform the foregoing voice interaction service with another user under the foregoing game voice mode, thetest list 301 may be intelligently and quickly searched, according to a terminal type of a terminal (that is, the foregoing target user terminal) to which the service application currently belongs, for a test type matching the terminal type. For example, the target user terminal may quickly obtain, based on a sound quality parameter that is set by the current user (that is, the foregoing first user) according to the sound quality index of the service application (for example, the sound quality parameter set by the first user is the foregoing sound quality parameter D1), the first test processing result obtained using the foregoing first pre-signal processing policy and the second test processing result obtained using the foregoing second pre-signal processing policy from thetest list 301a. It can be understood that, in this case, after comparing the test results of the voice optimization components having the same optimization function, the target user terminal may quickly determine, from the first pre-signal processing policy and the second pre-signal processing policy according to the voice test effects of the voice optimization components having the same optimization function, an optimal signal processing policy corresponding to the optimization functions of the current terminal type (that is, current model) under the particular sound quality parameter, and the determined optimal signal processing policy may be used as a signal processing result of the first pre-signal processing policy, so that the following step S102 may be performed subsequently. - For example, in a case that the sound quality parameter set by the first user (that is, current user) according to the sound quality index is the foregoing sound
quality parameter D 1 shown inFIG. 6 , the first test processing result may specifically include thefirst test result 31a of the foregoing first acoustic echo cancellation component (that is, AEC component in the application layer), thefirst test result 32a of the foregoing first noise suppression component (that is, NS component in the application layer), and thefirst test result 33a of the foregoing first gain control component (that is, AGC component in the application layer). The second test processing result may specifically include the second test result 31b of the foregoing second acoustic echo cancellation component (that is, AEC component in the terminal system layer), thesecond test result 32b of the foregoing second noise suppression component (that is, NS component in the terminal system layer), and thesecond test result 33b of the foregoing second gain control component (that is, AGC component in the terminal system layer). - Similarly, in a case that the sound quality parameter set by the first user according to the sound quality index is another sound quality parameter shown in
FIG. 6 (for example, the foregoing sound quality parameter D2), the first test processing result obtained using the first pre-signal processing policy and the second test processing result obtained using the second pre-signal processing policy may be similarly obtained quickly from the foregoingtest list 301a. The first test processing results associated with other sound quality parameters, and the second test processing results associated with the other sound quality parameters are not enumerated herein. - In step S102, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer is controlled, or a state of a first optimization component in the first pre-signal processing policy is controlled.
- In an embodiment, a second optimization component in a second pre-signal processing policy in a terminal system layer, or a first optimization component in the first pre-signal processing policy is controlled to be turned on or turned off in the application layer according to the signal processing result, where the first pre-signal processing policy includes at least one first optimization component, and the second pre-signal processing policy includes at least one second optimization component. In some embodiments, the quantity of first optimization components included by the first pre-signal processing policy and the quantity of second optimization components included by the second pre-signal processing policy are the same, and are both, for example, 3. Moreover, in the second pre-signal processing policy, there is a second optimization component having the same optimization function as each first optimization component in the first pre-signal processing policy; and correspondingly, in the first pre-signal processing policy, there is a first optimization component having the same optimization function as each second optimization component in the second pre-signal processing policy.
- In an embodiment, a first optimization component turned on in the first pre-signal processing policy is different from a second optimization component turned on in the second pre-signal processing policy.
- In an embodiment, the first optimization component turned on in the first pre-signal processing policy and the voice optimization component turned off in the second pre-signal processing policy have the same optimization function, and the second optimization component turned on in the second pre-signal processing policy and the first optimization component turned off in the first pre-signal processing policy have the same optimization function.
- Specifically, the target user terminal determines, according to the signal processing result, the second optimization component turned on in the second pre-signal processing policy, and a second optimization component turned off in the second pre-signal processing policy. For example, the target user terminal may start, according to the foregoing signal processing result, a collaboration mechanism between the application layer and the terminal system layer of the terminal to which the service application belongs, and control, in the application layer based on the collaboration mechanism, to turn on or turn off of the second optimization component in the second pre-signal processing policy in the terminal system layer. Further, the target user terminal may use, in the application layer, the second optimization component turned off in the second pre-signal processing policy as a first collaboration component, and turn on, in the first pre-signal processing policy, a first optimization component having the same optimization function as the first collaboration component. Further, the target user terminal may use, in the application layer, the second optimization component turned on in the second pre-signal processing policy as a second collaboration component, and turn off, in the first pre-signal processing policy, a first optimization component having the same optimization function as the second collaboration component.
- It can be understood that, the first optimization component in the first pre-signal processing policy may include at least one of the following voice optimization algorithms: the first acoustic echo cancellation algorithm used for performing acoustic echo cancellation in the application layer (the first optimization component corresponding to the first acoustic echo cancellation algorithm is the foregoing first acoustic echo cancellation component), the first noise suppression algorithm used for performing noise suppression in the application layer (the first optimization component corresponding to the first noise suppression algorithm is the foregoing first noise suppression component), and the first gain control algorithm used for performing gain adjustment in the application layer (the first optimization component corresponding to the first gain control algorithm is the foregoing first gain control component). Similarly, the second optimization component in the second pre-signal processing policy may include at least one of the following voice optimization algorithms: the second acoustic echo cancellation algorithm used for performing acoustic echo cancellation in the terminal system layer (the second optimization component corresponding to the second acoustic echo cancellation algorithm is the foregoing second acoustic echo cancellation component), the second noise suppression algorithm used for performing noise suppression in the terminal system layer (the second optimization component corresponding to the second noise suppression algorithm is the foregoing second noise suppression component), and the second gain control algorithm used for performing gain adjustment in the terminal system layer (the second optimization component corresponding to the second gain control algorithm is the foregoing second gain control component).
- In this case, the signal processing result obtained by the target user terminal may be obtained by the following steps: obtaining a first acoustic echo cancellation result of the first acoustic echo cancellation algorithm from the first test processing result, and obtaining a second acoustic echo cancellation result of the second acoustic echo cancellation algorithm from the second test processing result; and selecting, based on the first acoustic echo cancellation result and the second acoustic echo cancellation result, an optimal acoustic echo cancellation algorithm from the first acoustic echo cancellation algorithm and the second acoustic echo cancellation algorithm, and using the optimal acoustic echo cancellation algorithm as a first optimal signal processing policy associated with the sound quality parameter. Further, the target user terminal may obtain a first noise suppression result of the first noise suppression algorithm from the first test processing result, and obtain a second noise suppression result of the second noise suppression algorithm from the second test processing result; select, based on the first noise suppression result and the second noise suppression result, an optimal noise suppression algorithm from the first noise suppression algorithm and the second noise suppression algorithm; and use the optimal noise suppression algorithm as a second optimal signal processing policy associated with the sound quality parameter. Further, the target user terminal may obtain a first gain control result of the first gain control algorithm from the first test processing result, and obtain a second gain control result of the second gain control algorithm from the second test processing result; select, based on the first gain control result and the second gain control result, an optimal gain control algorithm from the first gain control algorithm and the second gain control algorithm; and use the optimal gain control algorithm as a third optimal signal processing policy associated with the sound quality parameter. Further, the target user terminal may determine the first optimal signal processing policy, the second optimal signal processing policy, and the third optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- For ease of understanding,
FIG. 7 is a schematic diagram of a scenario of determining an optimal signal processing policy associated with a sound quality parameter according to an embodiment of the present disclosure. A first test processing result 401a shown inFIG. 7 may be the test processing result of the application layer associated with the sound quality parameter D1 in the foregoing embodiment corresponding toFIG. 6 (that is, the first test processing result associated with the sound quality parameter D1). Atest result 41a in the first test processing result 401a may be thefirst test result 31a in the foregoing embodiment corresponding toFIG. 6 , that is, thetest result 41a shown inFIG. 7 may be the first acoustic echo cancellation result of the first acoustic echo cancellation algorithm obtained from the first test processing result 401a. Atest result 42a in the first test processing result 401a may be thefirst test result 32a in the foregoing embodiment corresponding toFIG. 6 , that is, thetest result 42a shown inFIG. 7 may be the first noise suppression result of the first noise suppression algorithm obtained from the first test processing result 401a. Atest result 43a in the first test processing result 401a may be thefirst test result 33a in the foregoing embodiment corresponding toFIG. 6 , that is, thetest result 43a shown inFIG. 7 may be the first gain control result of the first gain control algorithm obtained from the first test processing result 401a. - A second
test processing result 401b shown inFIG. 7 may be the test processing result of the terminal system layer associated with the sound quality parameter D1 in the foregoing embodiment corresponding toFIG. 6 (that is, the second test processing result associated with the sound quality parameter D 1). Atest result 41b in the secondtest processing result 401b may be the second test result 31b in the foregoing embodiment corresponding toFIG. 6 , that is, thetest result 41b shown inFIG. 7 may be the second acoustic echo cancellation result of the second acoustic echo cancellation algorithm obtained from the secondtest processing result 401b. Atest result 42b in the secondtest processing result 401b may be thesecond test result 32b in the foregoing embodiment corresponding toFIG. 6 , that is, thetest result 42b shown inFIG. 7 may be the second noise suppression result of the second noise suppression algorithm obtained from the secondtest processing result 401b. Atest result 43b in the firsttest processing result 401b may be thesecond test result 33b in the foregoing embodiment corresponding toFIG. 6 , that is, thetest result 43b shown inFIG. 7 may be the second gain control result of the second gain control algorithm obtained from the secondtest processing result 401b. - It can be understood that, a process in which the target user terminal determines the first optimal signal processing policy according to the first acoustic echo cancellation result (for example, the foregoing
test result 41a shown inFIG. 7 ) and the second acoustic echo cancellation result (for example, the foregoingtest result 41b shown inFIG. 7 ) may be described as follows. The target user terminal may obtain the first acoustic echo cancellation result of the first acoustic echo cancellation algorithm from the first test processing result, and obtain the second acoustic echo cancellation result of the second acoustic echo cancellation algorithm from the second test processing result. Further, the target user terminal may perform a first comparison between optimization quality of the first acoustic echo cancellation result and optimization quality of the second acoustic echo cancellation result, to obtain a first comparison result. It can be understood that, as shown inFIG. 7 , the target user terminal may determine, according to thetest result 41a and thetest result 41b, voice test effects of the first optimization component and the second optimization component having the same optimization function. For example, by comparing a voice test effect V11 in the application layer of the first acoustic echo cancellation component in the application layer and a voice test effect V12 in the terminal system layer of the second acoustic echo cancellation component in the terminal system layer, whether thetest result 41a is better than thetest result 41b may be determined. In this way, in a case that the first comparison result shown inFIG. 7 indicates that thetest result 41a is better than thetest result 41b, it indicates that the optimization quality of the first acoustic echo cancellation result is better than the optimization quality of the second acoustic echo cancellation result, and the first acoustic echo cancellation algorithm in the first pre-signal processing policy may be used as the first optimal signal processing policy associated with the sound quality parameter; otherwise, in a case that the first comparison result shown inFIG. 7 indicates that thetest result 41b is better than thetest result 41a, it indicates that the optimization quality of the second acoustic echo cancellation result is better than the optimization quality of the first acoustic echo cancellation result, and the second acoustic echo cancellation algorithm in the second pre-signal processing policy may be used as the first optimal signal processing policy associated with the sound quality parameter. In an embodiment, it is to be understood that, in a case that thetest result 41a is the same as thetest result 41b, the first acoustic echo cancellation algorithm in the first pre-signal processing policy or the second acoustic echo cancellation algorithm in the second pre-signal processing policy may be used as the first optimal signal processing policy. - It can be understood that, a process in which the target user terminal determines the second optimal signal processing policy according to the first noise suppression result (for example, the foregoing
test result 42a shown inFIG. 7 ) and the second noise suppression result (for example, the foregoingtest result 42b shown inFIG. 7 ) may be described as follows. The target user terminal may obtain the first noise suppression result of the first noise suppression algorithm from the first test processing result, and obtain the second noise suppression result of the second noise suppression algorithm from the second test processing result. Further, the target user terminal may perform a second comparison between optimization quality of the first noise suppression result and optimization quality of the second noise suppression result, to obtain a second comparison result. It can be understood that, as shown inFIG. 7 , the target user terminal may determine, according to thetest result 42a and thetest result 42b, voice test effects of voice optimization components having the same optimization function. For example, by comparing a voice test effect V21 in the application layer of the first noise suppression component in the application layer and a voice test effect V22 in the terminal system layer of the second noise suppression component in the terminal system layer, whether thetest result 42a is better than thetest result 42b may be determined. In this way, in a case that the second comparison result shown inFIG. 7 indicates that thetest result 42a is better than thetest result 42b, it indicates that the optimization quality of the first noise suppression result is better than the optimization quality of the second noise suppression result, and the first noise suppression algorithm in the first pre-signal processing policy may be used as the second optimal signal processing policy associated with the sound quality parameter; otherwise, in a case that the second comparison result shown inFIG. 7 indicates that thetest result 42b is better than thetest result 42a, it indicates that the optimization quality of the second noise suppression result is better than the optimization quality of the first noise suppression result, and the target user terminal may use the second noise suppression algorithm in the second pre-signal processing policy as the second optimal signal processing policy associated with the sound quality parameter. Similarly, in an embodiment, in a case that thetest result 42a is the same as thetest result 42b, the first noise suppression algorithm in the first pre-signal processing policy or the second noise suppression algorithm in the second pre-signal processing policy may be used as the second optimal signal processing policy. - It can be understood that, a process in which the target user terminal determines the third optimal signal processing policy according to the first gain control result (for example, the foregoing
test result 43a shown inFIG. 7 ) and the second gain control result (for example, the foregoingtest result 43b shown inFIG. 7 ) may be described as follows. The target user terminal may obtain the first gain control result of the first gain control algorithm from the first test processing result, and obtain the second gain control result of the second gain control algorithm from the second test processing result. Further, the target user terminal may perform a third comparison between optimization quality of the first gain control result and optimization quality of the second gain control result, to obtain a third comparison result. It can be understood that, as shown inFIG. 7 , the target user terminal may determine, according to thetest result 43a and thetest result 43b, voice test effects of voice optimization components having the same optimization function. For example, by comparing a voice test effect V31 in the application layer of the first gain control component in the application layer and a voice test effect V32 in the terminal system layer of the second gain control component in the terminal system layer, whether thetest result 43a is better than thetest result 43b may be determined. In this way, in a case that the third comparison result shown inFIG. 7 indicates that thetest result 43a is better than thetest result 43b, it indicates that the optimization quality of the first gain control result is better than the optimization quality of the second gain control result, and the first gain control algorithm in the first pre-signal processing policy may be used as the third optimal signal processing policy associated with the sound quality parameter; otherwise, in a case that the second comparison result shown inFIG. 7 indicates that thetest result 43b is better than thetest result 43a, it indicates that the optimization quality of the second gain control result is better than the optimization quality of the first gain control result, and the second gain control algorithm in the second pre-signal processing policy may be used as the third optimal signal processing policy associated with the sound quality parameter. Similarly, in an embodiment, in a case that thetest result 43a is the same as thetest result 43b, the first gain control algorithm in the first pre-signal processing policy or the second gain control algorithm in the second pre-signal processing policy may be used as the third optimal signal processing policy. - In an embodiment, it can be understood that, in a case that the target user terminal has not found a test type matching the current terminal type by searching a test list (for example, the foregoing
test list 301a), the target user terminal may determine that the current terminal type belongs to a new model. Therefore, when obtaining uplink voice data (for example, the foregoing voice data R3) of the first user through the microphone in the game voice mode, the target user terminal may perform voice optimization (that is, perform real-time voice optimization) on the uplink voice data (for example, the foregoing voice data R3) through the first pre-signal processing policy, so as to obtain the first voice optimization result in real time, and perform voice optimization (that is, perform real-time voice optimization) on the uplink voice data (for example, the foregoing voice data R3) through the second pre-signal processing policy, so as to obtain the second voice optimization result in real time. Further, the target user terminal may determine, based on the first voice optimization result and the second voice optimization result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and use the determined optimal signal processing policy as the signal processing result of the first pre-signal processing policy. - It can be understood that, in a case of determining that its own model is not a new model, the target user terminal may perform, in the foregoing game scenario through the voice optimization controls in the application layer, real-time voice optimization on the foregoing voice data of the first user obtained in real time, and obtain the first voice optimization results of the voice optimization controls in the application layer. Similarly, the target user terminal may further perform, in the foregoing game scenario through the voice optimization controls in the terminal system layer, real-time voice optimization on the foregoing voice data of the first user obtained in real time, and obtain the second voice optimization results of the voice optimization controls in the terminal system layer. For a specific implementation in which the target user terminal compares the voice optimization effects of the voice optimization components having the same optimization function, reference may be made to the foregoing description about the voice test effects of the voice optimization components having the same optimization function, and details are not described again herein.
- The first optimization component in the first pre-signal processing policy may include at least one of the following: the foregoing first acoustic echo cancellation component, the foregoing first noise suppression component and the foregoing first gain control component. The second optimization component in the second pre-signal processing policy may include at least one of the following: the foregoing second acoustic echo cancellation component, the foregoing second noise suppression component and the foregoing second gain control component. The first acoustic echo cancellation component and the second acoustic echo cancellation component may be both configured to perform acoustic echo cancellation, the first noise suppression component and the second noise suppression component may be both configured to perform noise suppression, and the first gain control component and the second gain control component may be both configured to perform gain adjustment.
- To avoid repeatedly running the voice optimization components having the same optimization function in the application layer and the terminal system layer, in this embodiment of the present disclosure, switches may be provided in the game voice mode, for the foregoing application layer to control to turn on or turn off of each part (that is, each voice optimization component) in the pre-signal processing solution, so as to ensure that the voice optimization components having the same optimization function are either run in the application layer, or run in the terminal system layer. In this way, in the real-time voice optimization (that is, real-time human sound optimization) process in the game scenario, performance consumption of the entire human sound optimization process can be reduced, and the voice interaction experience in the game scenario may be improved. Moreover, in this embodiment of the present disclosure, in the game voice mode, waste of terminal system resources (for example, computing resources of a central processing unit (CPU)) may be further avoided, thereby effectively reducing power consumption of the terminal.
- For ease of understanding, referring to
FIG.8, FIG. 8 is a schematic diagram of a scenario of controlling each voice optimization component to be turned on or turned off in a voice pre-signal processing solution according to an embodiment of the present disclosure. It is to be understood that, the voice pre-signal processing solution may be related processing made by the foregoing target user terminal to improve clarity, loudness and the like of uplink voice data. For example, the related processing may include acoustic echo cancellation, noise suppression, automatic gain control and the like. For ease of understanding, using an example in which the voice pre-signal processing solution includes the foregoing first pre-signal processing policy and the foregoing second pre-signal processing policy, a specific process of controlling turn-on and turn-off of each voice optimization component in the voice pre-signal processing solution in the application layer is stated. - An
application layer 601a shown inFIG. 8 may be the application layer of the foregoing service application, and a voice pre-signal processing solution corresponding to theapplication layer 601a may be the foregoing first pre-signal processing policy. In this way, first optimization components in the first pre-signal processing policy include at least: avoice optimization component 61a, a voice optimization component 62a, and a voice optimization component 63a shown inFIG. 8 . It is to be understood that, thevoice optimization component 61a shown inFIG. 8 may be the foregoing first acoustic echo cancellation component configured to perform acoustic echo cancellation; similarly, the voice optimization component 62a shown inFIG. 8 may be the foregoing first noise suppression component configured to perform noise suppression; and similarly, the voice optimization component 63a shown inFIG. 8 may be the foregoing first gain control component configured to perform gain adjustment. - A
terminal system layer 602a shown inFIG. 8 may be an underlying system layer of a terminal (that is, the foregoing target user terminal) to which the foregoing service application belongs, and a voice pre-signal processing solution corresponding to theterminal system layer 602a may be the foregoing second pre-signal processing policy. In this way, second optimization components in the second pre-signal processing policy include at least: avoice optimization component 61b, avoice optimization component 62b, and avoice optimization component 63b shown inFIG. 8 . It is to be understood that, thevoice optimization component 61b shown inFIG. 8 may be the foregoing second acoustic echo cancellation component configured to perform acoustic echo cancellation; similarly, thevoice optimization component 62b shown inFIG. 8 may be the foregoing second noise suppression component configured to perform noise suppression; and similarly, thevoice optimization component 63b shown inFIG. 8 may be the foregoing second gain control component configured to perform gain adjustment. - It is to be understood that, to avoid repeatedly running voice optimization components having the same function, in this embodiment of the present disclosure, switches may be provided in the
application layer 601a shown inFIG. 8 , to facilitate theapplication layer 601a to turn on and turn off of voice optimization components in theterminal system layer 602a shown inFIG. 8 . - For example, a switch K11 in the
application layer 601a shown inFIG. 8 may be configured to control thevoice optimization component 61a shown inFIG. 8 , and a switch K12 in the application layer may be configured to control thevoice optimization component 61b in theterminal system layer 602a shown inFIG. 8 . It can be understood that, because thevoice optimization component 61a in theapplication layer 601a shown inFIG. 8 and thevoice optimization component 61b in theterminal system layer 602a shown inFIG. 8 have the same optimization function, the target user terminal may select, according to a collaboration mechanism (which may also be referred to as a negotiation mechanism) between theapplication layer 601a and theterminal system layer 602a, whether to turn on (or turn off) thevoice optimization component 61b in the second pre-signal processing policy in theterminal system layer 602a in theapplication layer 601a. For example, as shown inFIG. 8 , the target user terminal may control to turn on thevoice optimization component 61a in the first pre-signal processing policy in theapplication layer 601a, that is, the target user terminal may generate a first control instruction used for controlling aservice switch 64a to close the switch K11 and open the switch K12. In this case, the first control instruction may be used for instructing the target user terminal to use the second optimization component (for example, thevoice optimization component 61b inFIG. 8 ) turned off in the second pre-signal processing policy as a first collaboration component, and the first optimization component (for example, thevoice optimization component 61a shown inFIG. 8 ) having the same optimization function as the first collaboration component may be turned on in the first pre-signal processing policy. - Similarly, a switch K21 in the
application layer 601a may be configured to control the voice optimization component 62a shown inFIG. 8 , and a switch K22 in the application layer may be configured to control thevoice optimization component 62b in theterminal system layer 602a shown inFIG. 8 . It can be understood that, because the voice optimization component 62a in theapplication layer 601a shown inFIG. 8 and thevoice optimization component 62b in theterminal system layer 602a shown inFIG. 8 have the same optimization function, the target user terminal may select, according to a collaboration mechanism (which may also be referred to as a negotiation mechanism) between theapplication layer 601a and theterminal system layer 602a, whether to turn on (or turn off) of thevoice optimization component 62b in the second pre-signal processing policy in theterminal system layer 602a in theapplication layer 601a. For example, as shown inFIG. 8 , the target user terminal may control to turn on the voice optimization component 62a in the second pre-signal processing policy in theapplication layer 601a, that is, the target user terminal may generate a second control instruction used for controlling aservice switch 64b to close the switch K22 and open the switch K21. In this case, the second control instruction may be used for instructing the target user terminal to use the second optimization component (for example, thevoice optimization component 62b inFIG. 8 ) turned on in the second pre-signal processing policy as a second collaboration component, and the first optimization component (for example, the voice optimization component 62a shown inFIG. 8 ) having the same optimization function as that of the second collaboration component may be turned off in the first pre-signal processing policy. - Similarly, a switch K31 in the
application layer 601a may be configured to control the voice optimization component 63a shown inFIG. 8 , and a switch K32 in the application layer may be configured to control thevoice optimization component 63b in theterminal system layer 602a shown inFIG. 8 . It can be understood that, because the voice optimization component 63a in theapplication layer 601a shown inFIG. 8 and thevoice optimization component 63b in theterminal system layer 602a shown inFIG. 8 have the same optimization function, the target user terminal may select, according to a collaboration mechanism (which may also be referred to as a negotiation mechanism) between theapplication layer 601a and theterminal system layer 602a, whether to turn on (or turn off) thevoice optimization component 63b in the second pre-signal processing policy in theterminal system layer 602a in theapplication layer 601a. For a specific implementation in which the target user terminal may generate a third control instruction used for controlling aservice switch 64c to close a switch K31 and open a switch K32, reference may be made to the description about the foregoing first control instruction, and details are not described again herein. In this case, the target user terminal uses the second optimization component (for example, thevoice optimization component 63b inFIG. 8 ) turned off in the second pre-signal processing policy as a new first collaboration component, and the first optimization component (for example, the voice optimization component 63a shown inFIG. 8 ) having the same optimization function as the new first collaboration component may be turned on in the first pre-signal processing policy. - In step S103, uplink voice data of a first user of the service application in the game voice mode is obtained, and voice optimization is performed on the uplink voice data in the game voice mode based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy.
- It is to be understood that, the target user terminal may further perform, based on the first optimization component turned on in the foregoing first pre-signal processing policy and the second optimization component turned on in the foregoing second pre-signal processing policy, voice optimization on the uplink voice data of the first user collected in real time in the game scenario, so as to ensure clarity and loudness of the uplink voice data currently recorded into the target user terminal. In this way, when the target user terminal is in the game voice mode, the sound of the first user with relatively high clarity and loudness may be transferred to a communication peer end (that is, a terminal of the foregoing third user). In this way, downlink voice data played by the speaker of the communication peer end may be the optimized sound of the first user.
- In the embodiments of the present disclosure, a computer device (for example, the target user terminal used as a mobile terminal) may obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application. It can be understood that, each first optimization component in the first pre-signal processing policy and a corresponding second optimization component in the second pre-signal processing policy have the same optimization function. Therefore, in the subsequent real-time voice human sound processing process of the game (that is, voice optimization of uplink voice data), the phenomenon that voice optimization components having the same function are repeatedly run may be effectively eliminated in the game voice mode. For example, in this embodiment of the present disclosure, one or more second optimization components in the terminal system layer may be controlled to be turned on or turned off in the application layer according to the foregoing signal processing result (that is, algorithm comparison results of voice optimization components having the same function), so that the voice optimization components having the same function may be either run in the application layer of the game or the terminal system layer. In this way, sound quality loss of the uplink voice data may be reduced. It can be understood that, the quantity and type of second optimization components turned on or turned off in the terminal system layer are not limited herein. Further, when obtaining the uplink voice data of the first user in the game voice mode, the computer device may quickly perform voice optimization on the collected uplink voice data collaboratively based on the turned-on first optimization component and the turned-on second optimization component, which can improve the voice optimization effect in the game scenario while reducing the sound quality loss.
-
FIG. 9 is a schematic diagram of an audio data processing method according to an embodiment of the present disclosure. As shown inFIG. 9 , the method may be performed by a user terminal (for example, a target user terminal, the target user terminal may be the foregoinguser terminal 3000a shown inFIG. 1 ), and the method may specifically include at least one of the following steps S201 to S213. - In step S201, in a case that the first user accesses the service application, a system resource package used for loading the service application is obtained, and the system resource package is parsed, to obtain system resource data of the service application.
- In step S202, the system resource data is initialized, and a service mode of the service application is initially configured as a system media mode based on the initialized system resource data.
- For ease of understanding, referring to
FIG. 10, FIG. 10 is a schematic diagram of a scenario of a resource configuration interface according to an embodiment of the present disclosure. It can be understood that, in a game scenario, a game user A shown inFIG. 10 may be theuser 1 in the foregoing embodiment corresponding toFIG. 4 . - As shown in
FIG. 10 , when the game user A starts a service application shown inFIG. 10 in a target user terminal, a system resource package used for loading the service application may be obtained from a service server shown inFIG. 10 , and the obtained system resource package may be parsed through an encoder in the target user terminal, to obtain system resource data of the service application. Further, the target user terminal may further initialize the system resource data, and a resource configuration interface inFIG. 10 may be outputted based on the initialized system resource data. As shown inFIG. 10 , the resource configuration interface may be used for dynamically outputting multimedia data in the initialized system resource data, and the multimedia data may include but not limited to an image frame and an audio frame shown inFIG. 10 . It can be understood that, in this embodiment of the present disclosure, a service mode of the service application may be initially configured as the system media mode based on the initialized system resource data, so that medium audio data (that is, the foregoing audio frame data and video frame data) shown inFIG. 10 may be played in the resource configuration interface shown inFIG. 10 through a speaker. It can be understood that, after completing the system configuration, the target user terminal may further perform the following step S103, and switch a display interface of the service application from a resource configuration interface 800a shown inFIG. 10 to an application display interface including a voice control. In this way, when the game user A triggers the voice control in a turned-off state in the application display interface, the service mode of the service application may be switched from the current system media mode to the foregoing game voice mode, to perform voice interaction in the game voice mode. - In step S203, based on the initialized system resource data, an application display interface of the service application is outputted.
- The application display interface includes a voice control used for indicating that the first user initiates a voice interaction service.
- In step S204, an application type of the service application is detected in response to a starting operation of the first user for the voice control.
- In step S205, in a case of detecting that the application type of the service application is a game type, a first voice call instruction associated with the game type is generated, and the service mode of the service application is switched from the system media mode to the game voice mode based on the first voice call instruction.
- In an embodiment, after performing the foregoing step S204, the target user terminal may further directly switch, in a case of detecting that the application type of the service application is a game type, the service mode of the service application from the system media mode to the game voice mode.
- In step S206, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application is obtained.
- In step S207, in the application layer according to the signal processing result, a second optimization component in a second pre-signal processing policy in a terminal system layer, or a first optimization component in the first pre-signal processing policy is controlled to be turned on or turned off.
- It is to be understood that, for a specific implementation in which the target user terminal controls the first optimization component in the first pre-signal processing policy to be turned on or turned off according to an algorithm comparison result in the application layer, reference may be made to the description about the process of controlling the second optimization component in the second pre-signal processing policy in the terminal system layer to be turned on or turned off in the foregoing embodiment corresponding to
FIG. 5 , and details are not described again herein. - In step S208, uplink voice data of a first user of the service application in the game voice mode is obtained, and voice optimization is performed on the uplink voice data in the game voice mode based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy.
- For the specific implementation of step S205 to step S208, reference may be made to the description about step S101 to step S104 in the embodiment corresponding to
FIG. 5 , and details are not described herein again. - In step S209, optimized uplink voice data is used as a target voice optimization result of the uplink voice data.
- In step S210, the target voice optimization result is transmitted to a terminal of a third user associated with the first user, to cause the terminal of the third user to play the optimized uplink voice data through a speaker in the game voice mode.
- In an embodiment, the first user and the third user are game users in the same game camp in the game voice mode.
- In an embodiment, it can be understood that, after performing the foregoing step S204, in a case that the target user terminal detects that the application type of the currently running service application belongs to a non-game type, the computer device may further jump to perform the following step S211 to step S213, so as to enable the foregoing first user to make a system call to another user (for example, the second user) in the system call mode.
- In step S211, in a case of detecting that the application type of the service application is a non-game type, a second voice call instruction associated with the game type is detected, and the service mode of the service application from the system media mode is switched to the system call mode based on the second voice call instruction.
- In step S212, in a case of determining based on the system call mode that a call type of the voice interaction service is a system call type, a system call request corresponding to the system call type is transmitted to a second user through the service application.
- The second user is a user selected by the first user in the service application to make a system call.
- In step S213, in a case that the second user responds to the system call request, a system communication channel is established between the first user and the second user, and a system call is made based on the system communication channel.
- For ease of understanding, further, referring to
FIG.11, FIG. 11 is a schematic flowchart of a process of providing a voice double-talk service of different types according to an embodiment of the present disclosure. As shown inFIG. 11 , after starting the foregoing service application in the target user terminal, the first user may perform step S1 shown inFIG. 11 , to perform system resource initialization. For example, the target user terminal may initialize the foregoing system resource data obtained by parsing, and perform step S2 shown inFIG. 11 according to the initialized system resource data, so that the target user terminal enters the system media mode by default. Specifically, the target user terminal may initially configure the service mode of the service application as the system media mode. Further, when the first user needs to perform voice interaction with another user, the first user may perform step S3 shown inFIG. 11 , so as to initiate a voice call in the application layer of the target user terminal. In this case, the target user terminal may perform step S4 shown inFIG. 11 , so as to determine the application type of the service application initiating the voice call, and in a case that the application type of the service application is a game type, the target user terminal may perform step S5 shown inFIG. 11 , so as to enter the game voice mode, that is, the first user may perform a voice call in the game scenario with another user (for example, the foregoing third user) in the system call mode. Otherwise, as shown inFIG. 11 , the target user terminal may performstep S 11 shown inFIG. 11 , so as to enter the system call mode, that is, the first user may perform a system call in the non-game scenario with another user (for example, the foregoing second user) in the system call mode. - As shown in
FIG. 11 , after performing step S5, the target user terminal may further perform step S6, so as to set a voice sampling rate (for example, set uplink and downlink sampling rates shown inFIG. 11 , so as to ensure the sampling rate) and the number of sound channels (to ensure uplink and downlink voice quality) of the terminal in the target user terminal, and the voice sampling rate and the number of sound channels may be the foregoing sound quality parameters. Further, as shown inFIG. 11 , the target user terminal may further perform step S7, that is, the target user terminal may start the voice pre-signal processing algorithm of the application layer and close the pre-signal processing algorithm of the terminal system layer according to the foregoing algorithm comparison effect. In an embodiment, the target user terminal may alternatively close the voice pre-signal processing algorithm of the application layer while starting the pre-signal processing algorithm of the terminal system layer. In this way, it may be ensured that the voice optimization components having the same optimization function in the target user terminal either run in the application layer, or run in the terminal system layer. That is, in this embodiment of the present disclosure, it may be ensured as much as possible that a voice processing algorithm of only one voice optimization component of the first optimization component of the application layer and the second optimization component having the same optimization function of the terminal system layer is working at one moment. In this way, power consumption may be maximally reduced, and an optimal voice sound quality effect may be provided. - Further, as shown in
FIG. 11 , when performing step S8 shown inFIG. 11 with another user in the game scenario, the first user may perform an inter-end game voice call in the game voice scenario. That is, during a game voice call, the target user terminal may optimize, through the foregoing negotiated and determined first optimization component and second optimization component, the uplink voice data of the first user collected in real time, and transmit the optimized sound of the first user to the another user. Further, it can be understood that, when the first user does not need to transmit the optimized voice to another game user in the same camp, the first user may perform step S9 shown inFIG. 11 in the game scenario. For example, the target user terminal may respond to the closing operation of the first user for the foregoing voice control, and switch the service mode of the service application from the foregoing game voice mode back to the system media mode shown inFIG. 11 . It is to be understood that, in this embodiment of the present disclosure, an optimized sound of another user transmitted by a terminal of the another user may be further played through the system media mode in the game scenario. For example, the first user of the target user terminal may hear the optimized sound of the another user (that is, the foregoing third user) in the system media mode. In this case, in a case that the voice control is closed, the first user does not need to continue to perform voice optimization on the uplink voice data of the first user. That is, in this case, the first user does not need to transmit the optimized sound of the first user to another user in the game scenario. - It is to be understood that, as shown in
FIG. 11 , after running the game in the foregoing service application, the first user may perform step S10 shown inFIG. 11 , so as to exit the current game system. In this case, the target user terminal may release related system resource data. - It can be understood that, when the first user is listening to music in the target user terminal, the target user terminal may operate in the foregoing system media mode; and when the first user is making a phone call in the target user terminal, the target user terminal may operate in the foregoing system call mode. In an embodiment, when the first user is performing game voice in the target user terminal, the target user terminal may operate in the foregoing game voice mode. It is to be understood that, the voice interaction system involved in this embodiment of the present disclosure may include the following two modules. One module is the game voice mode in the target user terminal, and may exist in the target user terminal in parallel to the system call mode and the system media mode. It can be understood that, in the game voice mode, the uplink and downlink voice sampling rates and the number of channels configured based on the sound quality index of the target user terminal do not affect each other. The other module is the pre-signal processing solution run in the application layer. For example, the target user terminal may intelligently adjust the pre-signal processing solution of the application layer according to a voice processing effect of the terminal system layer. In this way, through collaborative working of the two modules, the target user terminal can improve experience of voice interaction between game users in the game scenario.
- In the embodiments of the present disclosure, in a case of detecting that the application type of the service application is the game type, the computer device (for example, the target user terminal) enters the game voice mode, and adaptively control, in the game voice mode and in the application layer, to turn on or turn off one or more second optimization components in the terminal system layer according to the foregoing signal processing result (that is, algorithm comparison results of voice optimization components having the same function), so that the voice optimization components having the same optimization function may be either run in the game application layer or the terminal system layer. In this way, sound quality loss of the uplink voice data can be reduced. It can be understood that, the quantity and type of second optimization components turned on or turned off in the terminal system layer are not limited herein. Further, when obtaining the uplink voice data of the first user in the game voice mode, the computer device (for example, the target user terminal) may further quickly perform voice optimization on the uplink voice data in the game voice mode based on the turned-on first optimization component and the turned-on second optimization component, which can improve the voice optimization effect in the game scenario while reducing the sound quality loss. In an embodiment, in this embodiment of the present disclosure, in a case of detecting that the application type of the service application is the non-game type, the target user terminal may alternatively enter the system voice mode, and the first user may make a system call to another user in the system voice mode.
-
FIG. 12 is a schematic flowchart of another audio data processing method according to an embodiment of the present disclosure. The method is performed by a computer device. For example, the method may be performed by a user terminal (for example, the foregoing target user terminal, the target user terminal may be the user terminal 10a in the foregoing embodiment corresponding toFIG. 4 ), or may be performed by a service server (for example, the foregoingservice server 2000 shown inFIG. 1 ), or may be performed by a user terminal and a service server interactively and collaboratively. For ease of understanding, this embodiment is described by using an example in which the method is performed by the user terminal. The audio data processing method may include at least one step of the following step S301 to step S302. - In step S301, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application is obtained.
- In step S302, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer is controlled in the application layer according to the signal processing result.
- The first pre-signal processing policy includes at least one first optimization component, and the second pre-signal processing policy includes at least one second optimization component.
- For example, a second optimization component to be turned on in the second pre-signal processing policy in the terminal system layer is determined in the application layer according to the signal processing result, and/or a second optimization component to be turned off in the second pre-signal processing policy in the terminal system layer is determined in the application layer according to the signal processing result, Then, for the second optimization component to be turned on in the second pre-signal processing policy, in a case that the current state of the second optimization component is the turned-off state, the application layer controls the second optimization component to be turned on, and in a case that the current state of the second optimization component is the turned-on state, the second optimization component is kept on; and for the second optimization component to be turned off in the second pre-signal processing policy, in a case that the current state of the second optimization component is the turned-on state, the application layer controls the second optimization component to be turned off, and in a case that the current state of the second optimization component is the turned-off state, the second optimization component is kept off.
- In an embodiment, a state of the first optimization component in the first pre-signal processing policy is controlled in the application layer according to the signal processing result.
- In some embodiments, the foregoing step S302 includes: determining, according to the signal processing result, the second optimization component turned on in the second pre-signal processing policy, and a second optimization component turned off in the second pre-signal processing policy; using, in the application layer, the second optimization component turned off in the second pre-signal processing policy as a first collaboration component, and turning on, in the first pre-signal processing policy, a first optimization component having the same optimization function as the first collaboration component; and using, in the application layer, the second optimization component turned on in the second pre-signal processing policy as a second collaboration component, and turning off, in the first pre-signal processing policy, a first optimization component having the same optimization function as the second collaboration component.
- In some embodiments, the foregoing step S301 includes: obtaining a terminal type of a terminal to which the service application belongs, and searching a test list associated with the service application for a test type matching the terminal type; obtaining, from the test list and based on the sound quality parameter in a case that a test type matching the terminal type is found in the test list, a first test processing result obtained by using the first pre-signal processing policy and a second test processing result obtained by using the second pre-signal processing policy; and determining, based on the first test processing result and the second test processing result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and using the optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- In an embodiment, in a case that no test type matching the terminal type is found in the test list, in a case that the uplink voice data of the first user is obtained through a microphone in the game voice mode, voice optimization is performed on the uplink voice data through the first pre-signal processing policy, to obtain a first voice optimization result, and voice optimization is performed on the uplink voice data through the second pre-signal processing policy, to obtain a second voice optimization result. An optimal signal processing policy associated with the sound quality parameter is determined from the first pre-signal processing policy and the second pre-signal processing policy based on the first voice optimization result and the second voice optimization result, and the optimal signal processing policy is used as the signal processing result of the first pre-signal processing policy.
- In some embodiments, the foregoing method further includes: obtaining uplink voice data of a first user of the service application in the game voice mode, and performing, based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy, voice optimization on the uplink voice data in the game voice mode.
- In some embodiments, the foregoing method further includes: obtaining, in a case that the first user accesses the service application, a system resource package used for loading the service application, and parsing the system resource package, to obtain system resource data of the service application; and initializing the system resource data, and initially configuring, based on the initialized system resource data, a service mode of the service application as a system media mode.
- In some embodiments, the foregoing method further includes: using optimized uplink voice data as a target voice optimization result of the uplink voice data; and transmitting the target voice optimization result to a terminal of a third user associated with the first user, to cause the terminal of the third user to play the optimized uplink voice data through a speaker in the game voice mode.
- In the embodiments of the present disclosure, the game voice mode is provided. In the mode, the application layer of the service application has permission to control a state of a voice optimization component in the terminal system layer, so that the service application can flexibly control the state of the voice optimization component in the terminal system layer according to an actual service request or requirement, to ensure a voice optimization effect in the mode.
- Referring to
FIG. 13, FIG. 13 is a schematic flowchart of another audio data processing method according to an embodiment of the present disclosure. The method is performed by a computer device. For example, the method may be performed by a user terminal (for example, the foregoing target user terminal, the target user terminal may be the user terminal 10a in the foregoing embodiment corresponding toFIG. 4 ), or may be performed by a service server (for example, the foregoingservice server 2000 shown inFIG. 1 ), or may be performed by a user terminal and a service server interactively and collaboratively. For ease of understanding, this embodiment is described by using an example in which the method is performed by the user terminal. The audio data processing method may include at least one step of the following step S401 to step S402: - In step S401, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application is obtained.
- In step S402, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy is controlled according to the signal processing result, a first optimization component turned on in the first pre-signal processing policy is different from a second optimization component turned on in the second pre-signal processing policy.
- The first pre-signal processing policy includes at least one first optimization component, and the second pre-signal processing policy includes at least one second optimization component.
- In an embodiment, the first optimization component turned on in the first pre-signal processing policy and the voice optimization component turned off in the second pre-signal processing policy have the same optimization function, and the second optimization component turned on in the second pre-signal processing policy and the first optimization component turned off in the first pre-signal processing policy have the same optimization function.
- In an embodiment, step S402 may be performed by the application layer of the service application, or may be performed by the terminal system layer, or performed by the application layer and the terminal system layer collaboratively. For example, the application layer controls the state of the first optimization component in the first pre-signal processing policy, and the terminal system layer controls the state of the second optimization component in the second pre-signal processing policy. In this case, between the application layer and the terminal system layer, the signal processing result needs to be synchronized or the first optimization components and/or the second optimization components needing to be turned on and turned off are synchronized.
- In some embodiments, the foregoing step S402 includes: determining, according to the signal processing result, the second optimization component to be turned on in the second pre-signal processing policy, and a second optimization component to be turned off in the second pre-signal processing policy; turning off the second optimization component to be turned off in the second pre-signal processing policy, and turning on, in the first pre-signal processing policy, a first optimization component having the same optimization function as the turned-off second optimization component; and turning on the second optimization component to be turned on in the second pre-signal processing policy, and turning off, in the first pre-signal processing policy, a first optimization component having the same optimization function as the turned-on second optimization component. In an embodiment, for the second optimization component to be turned on in the second pre-signal processing policy, in a case that the current state of the second optimization component is the turned-off state, the second optimization component is controlled to be turned on, and in a case that the current state of the second optimization component is the turned-on state, the second optimization component is kept on; and for the second optimization component to be turned off in the second pre-signal processing policy, in a case that the current state of the second optimization component is the turned-on state, the second optimization component is controlled to be turned off, and in a case that the current state of the second optimization component is the turned-off state, the second optimization component is kept off.
- In some embodiments, the foregoing step S401 includes: obtaining a terminal type of a terminal to which the service application belongs, and searching a test list associated with the service application for a test type matching the terminal type; obtaining, from the test list and based on the sound quality parameter in a case that a test type matching the terminal type is found in the test list, a first test processing result obtained by using the first pre-signal processing policy and a second test processing result obtained by using the second pre-signal processing policy; and determining, based on the first test processing result and the second test processing result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and using the optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- In an embodiment, in a case that no test type matching the terminal type is found in the test list, in a case that the uplink voice data of the first user obtained through a microphone in the game voice mode, voice optimization is performed on the uplink voice data through the first pre-signal processing policy, to obtain a first voice optimization result, and voice optimization is performed on the uplink voice data through the second pre-signal processing policy, to obtain a second voice optimization result. An optimal signal processing policy associated with the sound quality parameter is determined from the first pre-signal processing policy and the second pre-signal processing policy based on the first voice optimization result and the second voice optimization result, and the optimal signal processing policy is used as the signal processing result of the first pre-signal processing policy.
- In some embodiments, the foregoing method further includes: obtaining, in a case that the first user accesses the service application, a system resource package used for loading the service application, and parsing the system resource package, to obtain system resource data of the service application; and initializing the system resource data, and initially configuring, based on the initialized system resource data, a service mode of the service application as a system media mode.
- In an embodiment, after the foregoing step S402, the method further includes: obtaining uplink voice data of a first user of the service application in the game voice mode, and performing, based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy, voice optimization on the uplink voice data in the game voice mode.
- In the embodiments of the present disclosure, one or more voice optimization components in the terminal system layer is controlled to be turned on or turned off according to the foregoing signal processing result, so that the voice optimization components having the same optimization function may be either run in the application layer or the terminal system layer. In this way, sound quality loss of the uplink voice data can be reduced from the source, thereby improving the voice optimization effect in the game scenario.
- Additionally, for details not described in the embodiments of
FIG. 12 andFIG. 13 , reference may be made to the descriptions of the related content in other embodiments of the present disclosure, and details are not described herein again. -
FIG. 14 is a schematic structural diagram of an audio data processing apparatus according to an embodiment of the present disclosure. The audiodata processing apparatus 1 may include at least one of the following: a processingresult obtaining module 12, acomponent control module 13 and avoice optimization module 14. In an embodiment, the audio data processing apparatus may further include at least one of the following: a resourcepackage obtaining module 15, aninitialization module 16, an applicationinterface output module 17, avoice starting module 18, a gamemode switching module 11, a callmode switching module 19, a callrequest transmitting module 20, a communicationchannel establishing module 21, a targetresult determining module 22, a targetresult transmitting module 23, and avoice closing module 24. - The processing
result obtaining module 12 is configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy includes at least one first optimization component. - The processing
result obtaining module 12 includes: a sound qualityindex obtaining unit 121, a terminaltype search unit 122, a testresult obtaining unit 123, an optimal policy determining unit 124, an optimizationresult obtaining unit 125 and a processingresult determining unit 126. - The sound quality
index obtaining unit 121 is configured to obtain a sound quality index of the service application in the game voice mode, and configure a sound quality parameter of the service application according to the sound quality index of the service application. - The terminal
type search unit 122 is configured to obtain a terminal type of a terminal to which the service application belongs, and search a test list associated with the service application for a test type matching the terminal type. - The test
result obtaining unit 123 is configured to obtain, from the test list and based on the sound quality parameter in a case that a test type matching the terminal type is found in the test list, a first test processing result obtained by using the first pre-signal processing policy and a second test processing result obtained by using the second pre-signal processing policy. The first pre-signal processing policy is a pre-signal processing policy in the application layer of the service application. The second pre-signal processing policy is a pre-signal processing policy in a terminal system layer corresponding to a test terminal type. - The optimal policy determining unit 124 is configured to determine, based on the first test processing result and the second test processing result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and use the determined optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- The first optimization component in the first pre-signal processing policy includes at least one of the following voice optimization algorithms: a first acoustic echo cancellation algorithm used for performing acoustic echo cancellation in the application layer, a first noise suppression algorithm used for performing noise suppression in the application layer, and a first gain control algorithm used for performing gain adjustment in the application layer; and the second optimization component in the second pre-signal processing policy includes at least one of the following voice optimization algorithms: a second acoustic echo cancellation algorithm used for performing acoustic echo cancellation in the terminal system layer, a second noise suppression algorithm used for performing noise suppression in the terminal system layer, and a second gain control algorithm used for performing gain adjustment in the terminal system layer.
- The optimal policy determining unit 124 includes: a first selecting
subunit 1241, a second selectingsubunit 1242, a third selectingsubunit 1243 and an optimalpolicy determining subunit 1244. - The first selecting
subunit 1241 is configured to obtain a first acoustic echo cancellation result of the first acoustic echo cancellation algorithm from the first test processing result, obtain a second acoustic echo cancellation result of the second acoustic echo cancellation algorithm from the second test processing result, select, based on the first acoustic echo cancellation result and the second acoustic echo cancellation result, an optimal acoustic echo cancellation algorithm from the first acoustic echo cancellation algorithm and the second acoustic echo cancellation algorithm, and use the optimal acoustic echo cancellation algorithm as a first optimal signal processing policy associated with the sound quality parameter. - The first selecting
subunit 1241 is further configured to obtain the first acoustic echo cancellation result of the first acoustic echo cancellation algorithm from the first test processing result, and obtain the second acoustic echo cancellation result of the second acoustic echo cancellation algorithm from the second test processing result. - The first selecting
subunit 1241 is further configured to perform a first comparison between optimization quality of the first acoustic echo cancellation result and optimization quality of the second acoustic echo cancellation result, to obtain a first comparison result. - The first selecting
subunit 1241 is further configured to use, in a case that the first comparison result indicates that the optimization quality of the first acoustic echo cancellation result is better than the optimization quality of the second acoustic echo cancellation result, the first acoustic echo cancellation algorithm in the first pre-signal processing policy as the first optimal signal processing policy associated with the sound quality parameter. - In an embodiment, the first selecting
subunit 1241 is further configured to use, in a case that the first comparison result indicates that the optimization quality of the second acoustic echo cancellation result is better than the optimization quality of the first acoustic echo cancellation result, the second acoustic echo cancellation algorithm in the second pre-signal processing policy as the first optimal signal processing policy associated with the sound quality parameter. - The second selecting
subunit 1242 is configured to obtain a first noise suppression result of the first noise suppression algorithm from the first test processing result, obtain a second noise suppression result of the second noise suppression algorithm from the second test processing result, select, based on the first noise suppression result and the second noise suppression result, an optimal noise suppression algorithm from the first noise suppression algorithm and the second noise suppression algorithm, and use the optimal noise suppression algorithm as a second optimal signal processing policy associated with the sound quality parameter. - The second selecting
subunit 1242 is further configured to obtain the first noise suppression result of the first noise suppression algorithm from the first test processing result, and obtain the second noise suppression result of the second noise suppression algorithm from the second test processing result. - The second selecting
subunit 1242 is further configured to perform a second comparison between optimization quality of the first noise suppression result and optimization quality of the second noise suppression result, to obtain a second comparison result. - The second selecting
subunit 1242 is further configured to use, in a case that the second comparison result indicates that the optimization quality of the first noise suppression result is better than the optimization quality of the second noise suppression result, the first noise suppression algorithm in the first pre-signal processing policy as the second optimal signal processing policy associated with the sound quality parameter. - In an embodiment, the second selecting
subunit 1242 is further configured to use, in a case that the second comparison result indicates that the optimization quality of the second noise suppression result is better than the optimization quality of the first noise suppression result, the second noise suppression algorithm in the second pre-signal processing policy as the second optimal signal processing policy associated with the sound quality parameter. - The third selecting
subunit 1243 is configured to obtain a first gain control result of the first gain control algorithm from the first test processing result, obtain a second gain control result of the second gain control algorithm from the second test processing result, select, based on the first gain control result and the second gain control result, an optimal gain control algorithm from the first gain control algorithm and the second gain control algorithm, and use the optimal gain control algorithm as a third optimal signal processing policy associated with the sound quality parameter. - The third selecting
subunit 1243 is further configured to obtain the first gain control result of the first gain control algorithm from the first test processing result, and obtain the second gain control result of the second gain control algorithm from the second test processing result. - The third selecting
subunit 1243 is further configured to perform a third comparison between optimization quality of the first gain control result and optimization quality of the second gain control result, to obtain a third comparison result. - The third selecting
subunit 1243 is further configured to use, in a case that the third comparison result indicates that the optimization quality of the first gain control result is better than the optimization quality of the second gain control result, the first gain control algorithm in the first pre-signal processing policy as the third optimal signal processing policy associated with the sound quality parameter. - In an embodiment, the third selecting
subunit 1243 is further configured to use, in a case that the third comparison result indicates that the optimization quality of the second gain control result is better than the optimization quality of the first gain control result, the second gain control algorithm in the second pre-signal processing policy as the third optimal signal processing policy associated with the sound quality parameter. - The optimal
policy determining subunit 1244 is configured to determine the first optimal signal processing policy, the second optimal signal processing policy, and the third optimal signal processing policy as the signal processing result of the first pre-signal processing policy. - For specific implementations of the first selecting
subunit 1241, the second selectingsubunit 1242, the third selectingsubunit 1243 and the optimalpolicy determining subunit 1244, reference may be made to the description about the foregoing specific implementation of determining the signal processing result, and details are not described again herein. - In an embodiment, the optimization
result obtaining unit 125 is configured to, in a case that no test type matching the terminal type is found in the test list and the uplink voice data of the first user obtained through a microphone in the game voice mode, perform voice optimization on the uplink voice data through the first pre-signal processing policy, to obtain a first voice optimization result, and perform voice optimization on the uplink voice data through the second pre-signal processing policy, to obtain a second voice optimization result. - The processing
result determining unit 126 is configured to determine, based on the first voice optimization result and the second voice optimization result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and use the determined optimal signal processing policy as the signal processing result of the first pre-signal processing policy. - For specific implementations of the sound quality
index obtaining unit 121, the terminaltype search unit 122, the testresult obtaining unit 123, the optimal policy determining unit 124, the optimizationresult obtaining unit 125 and the processingresult determining unit 126, reference may be made to the description about step S101 and step S102 in the foregoing embodiment corresponding toFIG. 5 , and details are not described again herein. - The
component control module 13 is configured to control, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy. - A first optimization component turned on in the first pre-signal processing policy is different from a second optimization component turned on in the second pre-signal processing policy. The first optimization component turned on in the first pre-signal processing policy and the voice optimization component turned off in the second pre-signal processing policy have the same optimization function, and the second optimization component turned on in the second pre-signal processing policy and the first optimization component turned off in the first pre-signal processing policy have the same optimization function.
- The
component control module 13 includes: a collaborationmechanism starting unit 131, acomponent control unit 132, a first component turn-onunit 133 and a second component turn-onunit 134. - The collaboration
mechanism starting unit 131 is configured to start, according to the signal processing result, a collaboration mechanism between the application layer and the terminal system layer of the terminal to which the service application belongs. - The
component control unit 132 is configured to control, in the application layer based on the collaboration mechanism, to turn on or turn off the second optimization component in the second pre-signal processing policy in the terminal system layer. - The first component turn-on
unit 133 is configured to use, in the application layer, the second optimization component turned off in the second pre-signal processing policy as a first collaboration component, and turn on, in the first pre-signal processing policy, a first optimization component having the same optimization function as the first collaboration component. - The second component turn-on
unit 134 is configured to use, in the application layer, the second optimization component turned on in the second pre-signal processing policy as a second collaboration component, and turn off, in the first pre-signal processing policy, a first optimization component having the same optimization function as the second collaboration component. - For the specific implementations of the collaboration
mechanism starting unit 131, thecomponent control unit 132, the first component turn-onunit 133 and the second component turn-onunit 134, reference may be made to the description about step S102 in the embodiment corresponding toFIG. 5 , and details are not described herein again. - The
voice optimization module 14 is configured to obtain uplink voice data of a first user of the service application in the game voice mode, and perform, based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy, voice optimization on the uplink voice data in the game voice mode. - The first optimization component in the first pre-signal processing policy includes at least: a first acoustic echo cancellation component, a first noise suppression component, and a first gain control component; the second optimization component in the second pre-signal processing policy includes at least: a second acoustic echo cancellation component, a second noise suppression component, and a second gain control component; the first acoustic echo cancellation component and the second acoustic echo cancellation component are both configured to perform acoustic echo cancellation; the first noise suppression component and the second noise suppression component are both configured to perform noise suppression; and the first gain control component and the second gain control component are both configured to perform gain adjustment.
- In an embodiment, the resource
package obtaining module 15 is configured to obtain, in a case that the first user accesses the service application, a system resource package used for loading the service application, and parse the system resource package, to obtain system resource data of the service application; and theinitialization module 16 is configured to initialize the system resource data, and initially configure, based on the initialized system resource data, a service mode of the service application as a system media mode. - The application
interface output module 17 is configured to output, based on the initialized system resource data, an application display interface of the service application, where the application display interface includes a voice control used for indicating the first user to initiate a voice interaction service; and thevoice starting module 18 is configured to detect an application type of the service application in response to a voice starting operation of the first user for the voice control. - It can be understood that, the
voice starting module 18 may instruct, in a case that the application type of the service application is a game type, the gamemode switching module 11 to generate, in the case that the application type of the service application is the game type, a first voice call instruction associated with the game type, and switch, based on the first voice call instruction, the service mode of the service application from the system media mode to the game voice mode. - In an embodiment, the
voice starting module 18 may alternatively instruct, in a case that the application type of the service application is a non-game type (for example, social type), the callmode switching module 19 to generate, in the case that the application type of the service application is the non-game type, a second voice call instruction associated with the game type, and switch, based on the second voice call instruction, the service mode of the service application from the system media mode to the system call mode. - The call
request transmitting module 20 is configured to transmit, in a case of determining based on the system call mode that a call type of the voice interaction service is a system call type, a system call request corresponding to the system call type to a second user through the service application, where the second user is a user selected by the first user in the service application to make a system call and; and
the communicationchannel establishing module 21 is configured to establish, in a case that the second user responds to the system call request, a system communication channel between the first user and the second user, and make a system call by using the system communication channel. - In an embodiment, the target
result determining module 22 is configured to use voice-optimized uplink voice data as a target voice optimization result of the uplink voice data; and the targetresult transmitting module 23 is configured to transmit the target voice optimization result to a terminal of a third user associated with the first user, to cause the terminal of the third user to play the voice-optimized uplink voice data through a speaker in the game voice mode. In an embodiment, the first user and the third user are game users in the same game camp in the game voice mode. - In an embodiment, the
voice closing module 24 is configured to switch, in response to a voice closing operation of the first user for the voice control, the service mode of the service application from the game voice mode back to the system media mode. - For the specific implementation of the processing
result obtaining module 12, thecomponent control module 13 and thevoice optimization module 14, reference may be made to the description about step S101 to step S103 in the embodiment corresponding toFIG. 5 , and details are not described herein again. Further, For the specific implementation of the resourcepackage obtaining module 15, theinitialization module 16, the applicationinterface output module 17, thevoice starting module 18, the gamemode switching module 11, the callmode switching module 19, the callrequest transmitting module 20, the communicationchannel establishing module 21, the targetresult determining module 22, the targetresult transmitting module 23, and thevoice closing module 24, reference may be made to the description about step S201 to step S213 in the embodiment corresponding toFIG. 9 , and details are not described herein again. In addition, the description of beneficial effects of the same method is not described herein again. - An audio data processing apparatus is further provided according to an exemplary embodiment of the present disclosure, the apparatus is configured to perform the method embodiment shown in
FIG. 12 , and the apparatus may include at least one of the following: a processing result obtaining module and a component control module. - The processing result obtaining module is configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy includes at least one first optimization component.
- The component control module is configured to control, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, the second pre-signal processing policy includes at least one second optimization component.
- An audio data processing apparatus is further provided according to an exemplary embodiment of the present disclosure, the apparatus is configured to perform the method embodiment shown in
FIG. 13 , and the apparatus may include at least one of the following: a processing result obtaining module and a component control module. - The processing result obtaining module is configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy includes at least one first optimization component.
- The component control module is configured to control, according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy, a first optimization component turned on in the first pre-signal processing policy is different from a second optimization component turned on in the second pre-signal processing policy.
- For details not described in detail in the foregoing apparatus embodiments, reference may be made to the corresponding method embodiments.
- Further, referring to
FIG. 15, FIG. 15 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure. As shown inFIG. 15 , thecomputer device 1000 may be a user terminal, and the user terminal may be the foregoing target user terminal. In this case, thecomputer device 1000 may include: aprocessor 1001, anetwork interface 1004 and amemory 1005. Moreover, thecomputer device 1000 may further include: auser interface 1003 and at least onecommunication bus 1002. Thecommunication bus 1002 is configured to implement connection and communication between the components. Theuser interface 1003 may include a display, a keyboard, and preferably, theuser interface 1003 may further include a standard wired interface, a wireless interface. In an embodiment, thenetwork interface 1004 may include a standard wired interface and a standard wireless interface (such as a Wi-Fi interface). Thememory 1005 may be a high-speed random access memory (RAM), or may be a non-volatile memory, for example, at least one magnetic disk memory. In an embodiment, thememory 1005 may be at least one storage apparatus that is located far away from the foregoingprocessor 1001. As shown inFIG. 15 , thememory 1005 used as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device-control application. - The
network interface 1004 in thecomputer device 1000 may further provide a network communication function, and preferably, theuser interface 1003 may further include a display and a keyboard. In thecomputer device 1000 shown inFIG. 15 , thenetwork interface 1004 may provide a network communication function, theuser interface 1003 is mainly configured to provide an input interface for a user, and theprocessor 1001 may be configured to invoke the device-control application stored in thememory 1005, to perform the description about the audio data processing method in the foregoing embodiment corresponding toFIG. 5 orFIG. 9 orFIG. 12 orFIG. 13 or another method embodiment, or perform the description about the audiodata processing apparatus 1 in the foregoing embodiment corresponding toFIG. 14 , and details are not described herein again. In addition, the description of beneficial effects of the same method is not described herein again. - Moreover, a computer storage medium is further provided according to an exemplary embodiment of the present disclosure. The computer storage medium stores a computer program executed by the audio
data processing apparatus 1 mentioned above, and the computer program includes program instructions. When executing the program instructions, the processor may perform the description about the audio data processing method in the foregoing embodiment corresponding toFIG. 5 orFIG. 9 orFIG. 12 orFIG. 13 or another method embodiment. Therefore, details are not described herein again. In addition, the description of beneficial effects of the same method is not described herein again. For technical details that are not disclosed in the computer storage medium embodiments of the present disclosure, refer to the descriptions of the method embodiments of the present disclosure. - It can be understood that, a computer program product or a computer program is further provided according to an exemplary embodiment of the present disclosure, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the computer device to perform the description about the audio data processing method in the foregoing embodiment corresponding to
FIG. 5 orFIG. 9 orFIG. 12 orFIG. 13 or another method embodiment. Therefore, details are not described herein again. In addition, the description of beneficial effects of the same method is not described herein again. For technical details that are not disclosed in the computer storage medium embodiments of the present disclosure, refer to the descriptions of the method embodiments of the present disclosure. - Persons of ordinary skill in the art may understand that all or some of the procedures of the methods in the embodiments may be implemented by using a computer program instructing relevant hardware. The program may be stored in a computer-readable storage medium. When the program runs, the procedures of the methods in the embodiments are performed. The storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), or the like.
- Embodiments of the present disclosure disclosed above are merely exemplary, and are not intended to limit the protection scope of the present disclosure. Therefore, equivalent variations made in accordance with the claims of the present disclosure shall fall within the scope of the present disclosure.
Claims (34)
- An audio data processing method, performed by a computer device, the method comprising:obtaining, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy comprising at least one first optimization component;controlling, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy, a first optimization component turned on in the first pre-signal processing policy being different from a second optimization component turned on in the second pre-signal processing policy; andobtaining uplink voice data of a first user of the service application in the game voice mode, and performing, based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy, voice optimization on the uplink voice data in the game voice mode.
- The method according to claim 1, wherein the controlling, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer comprises:determining, according to the signal processing result, the second optimization component turned on in the second pre-signal processing policy and a second optimization component turned off in the second pre-signal processing policy;using, in the application layer, the second optimization component turned off in the second pre-signal processing policy as a first collaboration component, and turning on, in the first pre-signal processing policy, a first optimization component having the same optimization function as the first collaboration component; andusing, in the application layer, the second optimization component turned on in the second pre-signal processing policy as a second collaboration component, and turning off, in the first pre-signal processing policy, a first optimization component having the same optimization function as the second collaboration component.
- The method according to claim 1, whereinthe first optimization component in the first pre-signal processing policy comprises at least one of the following: a first acoustic echo cancellation component, a first noise suppression component, and a first gain control component;the second optimization component in the second pre-signal processing policy comprises at least one of the following: a second acoustic echo cancellation component, a second noise suppression component, and a second gain control component;the first acoustic echo cancellation component and the second acoustic echo cancellation component are both configured to perform acoustic echo cancellation;the first noise suppression component and the second noise suppression component are both configured to perform noise suppression; andthe first gain control component and the second gain control component are both configured to perform gain adjustment.
- The method according to claim 1, wherein the obtaining, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application comprises:configuring, in the game voice mode according to a sound quality index of the service application, a sound quality parameter of the service application;obtaining a terminal type of a terminal to which the service application belongs, and searching a test list associated with the service application for a test type matching the terminal type;obtaining, from the test list and based on the sound quality parameter in a case that a test type matching the terminal type is found in the test list, a first test processing result obtained by using the first pre-signal processing policy and a second test processing result obtained by using the second pre-signal processing policy; anddetermining, based on the first test processing result and the second test processing result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and using the optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- The method according to claim 4, whereinthe first optimization component in the first pre-signal processing policy comprises at least one of the following voice optimization algorithms: a first acoustic echo cancellation algorithm used for performing acoustic echo cancellation in the application layer, a first noise suppression algorithm used for performing noise suppression in the application layer, and a first gain control algorithm used for performing gain adjustment in the application layer; andthe second optimization component in the second pre-signal processing policy comprises at least one of the following voice optimization algorithms: a second acoustic echo cancellation algorithm used for performing acoustic echo cancellation in the terminal system layer, a second noise suppression algorithm used for performing noise suppression in the terminal system layer, and a second gain control algorithm used for performing gain adjustment in the terminal system layer.
- The method according to claim 5, wherein the determining, based on the first test processing result and the second test processing result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and using the optimal signal processing policy as the signal processing result of the first pre-signal processing policy comprises:obtaining a first acoustic echo cancellation result of the first acoustic echo cancellation algorithm from the first test processing result, obtaining a second acoustic echo cancellation result of the second acoustic echo cancellation algorithm from the second test processing result, selecting, based on the first acoustic echo cancellation result and the second acoustic echo cancellation result, an optimal acoustic echo cancellation algorithm from the first acoustic echo cancellation algorithm and the second acoustic echo cancellation algorithm, and using the optimal acoustic echo cancellation algorithm as a first optimal signal processing policy associated with the sound quality parameter;obtaining a first noise suppression result of the first noise suppression algorithm from the first test processing result, obtaining a second noise suppression result of the second noise suppression algorithm from the second test processing result, selecting, based on the first noise suppression result and the second noise suppression result, an optimal noise suppression algorithm from the first noise suppression algorithm and the second noise suppression algorithm, and using the optimal noise suppression algorithm as a second optimal signal processing policy associated with the sound quality parameter;obtaining a first gain control result of the first gain control algorithm from the first test processing result, obtaining a second gain control result of the second gain control algorithm from the second test processing result, selecting, based on the first gain control result and the second gain control result, an optimal gain control algorithm from the first gain control algorithm and the second gain control algorithm, and using the optimal gain control algorithm as a third optimal signal processing policy associated with the sound quality parameter; anddetermining the first optimal signal processing policy, the second optimal signal processing policy, and the third optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- The method according to claim 6, wherein the obtaining a first acoustic echo cancellation result of the first acoustic echo cancellation algorithm from the first test processing result, obtaining a second acoustic echo cancellation result of the second acoustic echo cancellation algorithm from the second test processing result, selecting, based on the first acoustic echo cancellation result and the second acoustic echo cancellation result, an optimal acoustic echo cancellation algorithm from the first acoustic echo cancellation algorithm and the second acoustic echo cancellation algorithm, and using the optimal acoustic echo cancellation algorithm as a first optimal signal processing policy associated with the sound quality parameter comprises:obtaining the first acoustic echo cancellation result of the first acoustic echo cancellation algorithm from the first test processing result, and obtaining the second acoustic echo cancellation result of the second acoustic echo cancellation algorithm from the second test processing result;comparing optimization quality of the first acoustic echo cancellation result with optimization quality of the second acoustic echo cancellation result, to obtain a first comparison result;using, in a case that the first comparison result indicates that the optimization quality of the first acoustic echo cancellation result is better than the optimization quality of the second acoustic echo cancellation result, the first acoustic echo cancellation algorithm in the first pre-signal processing policy as the first optimal signal processing policy associated with the sound quality parameter; andusing, in a case that the first comparison result indicates that the optimization quality of the second acoustic echo cancellation result is better than the optimization quality of the first acoustic echo cancellation result, the second acoustic echo cancellation algorithm in the second pre-signal processing policy as the first optimal signal processing policy associated with the sound quality parameter.
- The method according to claim 6, wherein the obtaining a first noise suppression result of the first noise suppression algorithm from the first test processing result, obtaining a second noise suppression result of the second noise suppression algorithm from the second test processing result, selecting, based on the first noise suppression result and the second noise suppression result, an optimal noise suppression algorithm from the first noise suppression algorithm and the second noise suppression algorithm, and using the optimal noise suppression algorithm as a second optimal signal processing policy associated with the sound quality parameter comprises:obtaining the first noise suppression result of the first noise suppression algorithm from the first test processing result, and obtaining the second noise suppression result of the second noise suppression algorithm from the second test processing result;comparing optimization quality of the first noise suppression result with optimization quality of the second noise suppression result, to obtain a second comparison result;using, in a case that the second comparison result indicates that the optimization quality of the first noise suppression result is better than the optimization quality of the second noise suppression result, the first noise suppression algorithm in the first pre-signal processing policy as the second optimal signal processing policy associated with the sound quality parameter; andusing, in a case that the second comparison result indicates that the optimization quality of the second noise suppression result is better than the optimization quality of the first noise suppression result, the second noise suppression algorithm in the second pre-signal processing policy as the second optimal signal processing policy associated with the sound quality parameter.
- The method according to claim 6, wherein the obtaining a first gain control result of the first gain control algorithm from the first test processing result, obtaining a second gain control result of the second gain control algorithm from the second test processing result, selecting, based on the first gain control result and the second gain control result, an optimal gain control algorithm from the first gain control algorithm and the second gain control algorithm, and using the optimal gain control algorithm as a third optimal signal processing policy associated with the sound quality parameter comprises:obtaining the first gain control result of the first gain control algorithm from the first test processing result, and obtaining the second gain control result of the second gain control algorithm from the second test processing result;comparing optimization quality of the first gain control result with optimization quality of the second gain control result, to obtain a third comparison result;using, in a case that the third comparison result indicates that the optimization quality of the first gain control result is better than the optimization quality of the second gain control result, the first gain control algorithm in the first pre-signal processing policy as the third optimal signal processing policy associated with the sound quality parameter; andusing, in a case that the third comparison result indicates that the optimization quality of the second gain control result is better than the optimization quality of the first gain control result, the second gain control algorithm in the first pre-signal processing policy as the third optimal signal processing policy associated with the sound quality parameter.
- The method according to claim 4, further comprising:in a case that no test type matching the terminal type is found in the test list and the uplink voice data of the first user is obtained through a microphone in the game voice mode, performing voice optimization on the uplink voice data through the first pre-signal processing policy, to obtain a first voice optimization result, and performing voice optimization on the uplink voice data through the second pre-signal processing policy, to obtain a second voice optimization result; anddetermining, based on the first voice optimization result and the second voice optimization result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and using the optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- The method according to claim 1, further comprising:obtaining, in a case that the first user accesses the service application, a system resource package used for loading the service application, and parsing the system resource package, to obtain system resource data of the service application; andinitializing the system resource data, and initially configuring, based on the initialized system resource data, a service mode of the service application as a system media mode.
- The method according to claim 11, further comprising:outputting, based on the initialized system resource data, an application display interface of the service application, wherein the application display interface comprises a voice control used for indicating the first user to initiate a voice interaction service;detecting an application type of the service application in response to a voice starting operation of the first user for the voice control; andswitching, in a case that the application type of the service application is a game type, the service mode of the service application from the system media mode to the game voice mode.
- The method according to claim 12, further comprising:switching, in a case that the application type of the service application is a non-game type, the service mode of the service application from the system media mode to a system call mode;transmitting, in a case of determining based on the system call mode that a call type of the voice interaction service is a system call type, a system call request corresponding to the system call type to a second user through the service application, wherein the second user is a user selected by the first user in the service application to make a system call; andestablishing, in a case that the second user responds to the system call request, a system communication channel between the first user and the second user, and making a system call by using the system communication channel.
- The method according to claim 12, further comprising:
switching, in response to a voice closing operation of the first user for the voice control, the service mode of the service application from the game voice mode back to the system media mode. - The method according to any one of claims 1 to 14, further comprising:using optimized uplink voice data as a target voice optimization result of the uplink voice data; andtransmitting the target voice optimization result to a terminal of a third user associated with the first user, to cause the terminal of the third user to play the optimized uplink voice data through a speaker in the game voice mode.
- An audio data processing method, performed by a computer device, the method comprising:obtaining, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy comprising at least one first optimization component;controlling, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, the second pre-signal processing policy comprising at least one second optimization component.
- The method according to claim 16, wherein the controlling, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer comprises:determining, according to the signal processing result, the second optimization component turned on in the second pre-signal processing policy, and a second optimization component turned off in the second pre-signal processing policy;using, in the application layer, the second optimization component turned off in the second pre-signal processing policy as a first collaboration component, and turning on, in the first pre-signal processing policy, a first optimization component having the same optimization function as the first collaboration component; andusing, in the application layer, the second optimization component turned on in the second pre-signal processing policy as a second collaboration component, and turning off, in the first pre-signal processing policy, a first optimization component having the same optimization function as the second collaboration component.
- The method according to claim 16, wherein the obtaining, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application comprises:obtaining a terminal type of a terminal to which the service application belongs, and searching a test list associated with the service application for a test type matching the terminal type;obtaining, from the test list and based on the sound quality parameter in a case that a test type matching the terminal type is found in the test list, a first test processing result obtained by using the first pre-signal processing policy and a second test processing result obtained by using the second pre-signal processing policy; anddetermining, based on the first test processing result and the second test processing result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and using the optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- The method according to claim 18, wherein the first optimization component in the first pre-signal processing policy comprises at least one of the following voice optimization algorithms: a first acoustic echo cancellation algorithm used for performing acoustic echo cancellation in the application layer, a first noise suppression algorithm used for performing noise suppression in the application layer, and a first gain control algorithm used for performing gain adjustment in the application layer; and the second optimization component in the second pre-signal processing policy comprises at least one of the following voice optimization algorithms: a second acoustic echo cancellation algorithm used for performing acoustic echo cancellation in the terminal system layer, a second noise suppression algorithm used for performing noise suppression in the terminal system layer, and a second gain control algorithm used for performing gain adjustment in the terminal system layer.
- The method according to claim 19, wherein the determining, based on the first test processing result and the second test processing result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and using the optimal signal processing policy as the signal processing result of the first pre-signal processing policy comprises:obtaining a first acoustic echo cancellation result of the first acoustic echo cancellation algorithm from the first test processing result, obtaining a second acoustic echo cancellation result of the second acoustic echo cancellation algorithm from the second test processing result, selecting, based on the first acoustic echo cancellation result and the second acoustic echo cancellation result, an optimal acoustic echo cancellation algorithm from the first acoustic echo cancellation algorithm and the second acoustic echo cancellation algorithm, and using the optimal acoustic echo cancellation algorithm as a first optimal signal processing policy associated with the sound quality parameter;obtaining a first noise suppression result of the first noise suppression algorithm from the first test processing result, obtaining a second noise suppression result of the second noise suppression algorithm from the second test processing result, selecting, based on the first noise suppression result and the second noise suppression result, an optimal noise suppression algorithm from the first noise suppression algorithm and the second noise suppression algorithm, and using the optimal noise suppression algorithm as a second optimal signal processing policy associated with the sound quality parameter;obtaining a first gain control result of the first gain control algorithm from the first test processing result, obtaining a second gain control result of the second gain control algorithm from the second test processing result, selecting, based on the first gain control result and the second gain control result, an optimal gain control algorithm from the first gain control algorithm and the second gain control algorithm, and using the optimal gain control algorithm as a third optimal signal processing policy associated with the sound quality parameter; anddetermining the first optimal signal processing policy, the second optimal signal processing policy, and the third optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- The method according to claim 18, further comprising:in a case that no test type matching the terminal type is found in the test list and the uplink voice data of the first user is obtained through a microphone in the game voice mode, performing voice optimization on the uplink voice data through the first pre-signal processing policy, to obtain a first voice optimization result, and voice optimization on the uplink voice data through the second pre-signal processing policy, to obtain a second voice optimization result; anddetermining, based on the first voice optimization result and the second voice optimization result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and using the optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- An audio data processing method, performed by a computer device, the method comprising:obtaining, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy comprising at least one first optimization component;controlling, according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy, a first optimization component turned on in the first pre-signal processing policy being different from a second optimization component turned on in the second pre-signal processing policy.
- The method according to claim 22, wherein the controlling, according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy comprises:determining, according to the signal processing result, a second optimization component to be turned on in the second pre-signal processing policy, and a second optimization component to be turned off in the second pre-signal processing policy;turning off the second optimization component to be turned off in the second pre-signal processing policy, and turning on, in the first pre-signal processing policy, a first optimization component having the same optimization function as the turned-off second optimization component; andturning on the second optimization component to be turned on in the second pre-signal processing policy, and turning off, in the first pre-signal processing policy, a first optimization component having the same optimization function as the turned-on second optimization component.
- The method according to claim 22, wherein the obtaining, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application comprises:obtaining a terminal type of a terminal to which the service application belongs, and searching a test list associated with the service application for a test type matching the terminal type;obtaining, from the test list and based on the sound quality parameter in a case that a test type matching the terminal type is found in the test list, a first test processing result obtained by using the first pre-signal processing policy and a second test processing result obtained by using the second pre-signal processing policy; anddetermining, based on the first test processing result and the second test processing result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and using the optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- The method according to claim 24, wherein the first optimization component in the first pre-signal processing policy comprises at least one of the following voice optimization algorithms: a first acoustic echo cancellation algorithm used for performing acoustic echo cancellation in the application layer, a first noise suppression algorithm used for performing noise suppression in the application layer, and a first gain control algorithm used for performing gain adjustment in the application layer; and the second optimization component in the second pre-signal processing policy comprises at least one of the following voice optimization algorithms: a second acoustic echo cancellation algorithm used for performing acoustic echo cancellation in the terminal system layer, a second noise suppression algorithm used for performing noise suppression in the terminal system layer, and a second gain control algorithm used for performing gain adjustment in the terminal system layer.
- The method according to claim 25, wherein the determining, based on the first test processing result and the second test processing result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and using the optimal signal processing policy as the signal processing result of the first pre-signal processing policy comprises:obtaining a first acoustic echo cancellation result of the first acoustic echo cancellation algorithm from the first test processing result, obtaining a second acoustic echo cancellation result of the second acoustic echo cancellation algorithm from the second test processing result, selecting, based on the first acoustic echo cancellation result and the second acoustic echo cancellation result, an optimal acoustic echo cancellation algorithm from the first acoustic echo cancellation algorithm and the second acoustic echo cancellation algorithm, and using the optimal acoustic echo cancellation algorithm as a first optimal signal processing policy associated with the sound quality parameter;obtaining a first noise suppression result of the first noise suppression algorithm from the first test processing result, obtaining a second noise suppression result of the second noise suppression algorithm from the second test processing result, selecting, based on the first noise suppression result and the second noise suppression result, an optimal noise suppression algorithm from the first noise suppression algorithm and the second noise suppression algorithm, and using the optimal noise suppression algorithm as a second optimal signal processing policy associated with the sound quality parameter;obtaining a first gain control result of the first gain control algorithm from the first test processing result, obtaining a second gain control result of the second gain control algorithm from the second test processing result, selecting, based on the first gain control result and the second gain control result, an optimal gain control algorithm from the first gain control algorithm and the second gain control algorithm, and using the optimal gain control algorithm as a third optimal signal processing policy associated with the sound quality parameter; anddetermining the first optimal signal processing policy, the second optimal signal processing policy, and the third optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- The method according to claim 24, further comprising:in a case that no test type matching the terminal type is found in the test list and the uplink voice data of the first user is obtained through a microphone in the game voice mode, performing voice optimization on the uplink voice data through the first pre-signal processing policy, to obtain a first voice optimization result, and performing voice optimization on the uplink voice data through the second pre-signal processing policy, to obtain a second voice optimization result; anddetermining, based on the first voice optimization result and the second voice optimization result, an optimal signal processing policy associated with the sound quality parameter from the first pre-signal processing policy and the second pre-signal processing policy, and using the optimal signal processing policy as the signal processing result of the first pre-signal processing policy.
- The method according to any one of claims 22 to 27, further comprising:
obtaining uplink voice data of a first user of the service application in the game voice mode, and performing, based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy, voice optimization on the uplink voice data in the game voice mode. - An audio data processing apparatus, comprising:a processing result obtaining module, configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy comprising at least one first optimization component;a component control module, configured to control, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy, a first optimization component turned on in the first pre-signal processing policy being different from a second optimization component turned on in the second pre-signal processing policy; anda voice optimization module, configured to obtain uplink voice data of a first user of the service application in the game voice mode, and perform, based on the first optimization component turned on in the first pre-signal processing policy and the second optimization component turned on in the second pre-signal processing policy, voice optimization on the uplink voice data in the game voice mode.
- An audio data processing apparatus, comprising:a processing result obtaining module, configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy comprising at least one first optimization component;a component control module, configured to control, in the application layer according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, the second pre-signal processing policy comprising at least one second optimization component.
- An audio data processing apparatus, comprising:a processing result obtaining module, configured to obtain, in a game voice mode, a signal processing result of a first pre-signal processing policy in an application layer of a service application, the first pre-signal processing policy comprising at least one first optimization component;a component control module, configured to control, according to the signal processing result, a state of a second optimization component in a second pre-signal processing policy in a terminal system layer, or a state of a first optimization component in the first pre-signal processing policy, a first optimization component turned on in the first pre-signal processing policy being different from a second optimization component turned on in the second pre-signal processing policy.
- A computer device, comprising a processor and a memory,
the processor being connected to the memory, the memory being configured to store a computer program, and the processor being configured to invoke the computer program, to cause the computer device to perform the method according to any one of claims 1 to 15, or perform the method according to any one of claims 16 to 21, or perform the method according to any one of claims 22 to 28. - A computer-readable storage medium, storing a computer program, the computer program being configured to be loaded and executed by a processor, to cause a computer device having the processor to perform the method according to any one of claims 1 to 15, or perform the method according to any one of claims 16 to 21, or perform the method according to any one of claims 22 to 28.
- A computer program product or a computer program, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium, a processor reading and executing the computer instructions from the computer-readable storage medium to perform the method according to any one of claims 1 to 15, or perform the method according to any one of claims 16 to 21, or perform the method according to any one of claims 22 to 28.
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110088769.3A CN114822570B (en) | 2021-01-22 | 2021-01-22 | Audio data processing method, device and equipment and readable storage medium |
| PCT/CN2021/131404 WO2022156336A1 (en) | 2021-01-22 | 2021-11-18 | Audio data processing method and apparatus, device, storage medium, and program product |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| EP4283617A1 true EP4283617A1 (en) | 2023-11-29 |
| EP4283617A4 EP4283617A4 (en) | 2024-07-03 |
Family
ID=82524619
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| EP21920712.3A Pending EP4283617A4 (en) | 2021-01-22 | 2021-11-18 | Audio data processing method and apparatus, device, storage medium, and program product |
Country Status (6)
| Country | Link |
|---|---|
| US (1) | US12477069B2 (en) |
| EP (1) | EP4283617A4 (en) |
| JP (1) | JP7597300B2 (en) |
| KR (1) | KR20230130730A (en) |
| CN (1) | CN114822570B (en) |
| WO (1) | WO2022156336A1 (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114822570B (en) * | 2021-01-22 | 2023-02-14 | 腾讯科技(深圳)有限公司 | Audio data processing method, device and equipment and readable storage medium |
| CN115430156B (en) * | 2022-08-16 | 2024-10-18 | 中国联合网络通信集团有限公司 | Calling method, calling device and calling user terminal during game |
| GB2636385A (en) * | 2023-12-11 | 2025-06-18 | Sony Interactive Entertainment Europe Ltd | Method for adjusting an audio mix of a video game |
| CN121771168A (en) * | 2024-09-29 | 2026-03-31 | 华为技术有限公司 | A method and apparatus for processing multimedia data |
Family Cites Families (30)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3425548B2 (en) * | 2000-02-14 | 2003-07-14 | コナミ株式会社 | Video game apparatus, announcement sound output method in video game, and computer-readable recording medium on which announcement sound output program is recorded |
| US7142335B2 (en) * | 2002-07-22 | 2006-11-28 | Eastman Kodak Company | Method and apparatus for transparency scanning with a duplex reflective scanner |
| US7102615B2 (en) * | 2002-07-27 | 2006-09-05 | Sony Computer Entertainment Inc. | Man-machine interface using a deformable device |
| US20100098266A1 (en) * | 2007-06-01 | 2010-04-22 | Ikoa Corporation | Multi-channel audio device |
| US8713440B2 (en) * | 2008-02-13 | 2014-04-29 | Microsoft Corporation | Techniques to manage communications resources for a multimedia conference event |
| JP5436793B2 (en) * | 2008-04-04 | 2014-03-05 | 株式会社バンダイナムコゲームス | Game video distribution system |
| WO2009132270A1 (en) * | 2008-04-25 | 2009-10-29 | Andrea Electronics Corporation | Headset with integrated stereo array microphone |
| US20120310652A1 (en) * | 2009-06-01 | 2012-12-06 | O'sullivan Daniel | Adaptive Human Computer Interface (AAHCI) |
| JP2012238964A (en) * | 2011-05-10 | 2012-12-06 | Funai Electric Co Ltd | Sound separating device, and camera unit with it |
| KR20130106462A (en) | 2012-03-19 | 2013-09-30 | 엔에이치엔엔터테인먼트 주식회사 | Apparatus, method and computer-readable recording medium for controlling voice input of a mobile terminal by using a moving sensor |
| CN103617797A (en) * | 2013-12-09 | 2014-03-05 | 腾讯科技(深圳)有限公司 | Voice processing method and device |
| US10034088B2 (en) * | 2014-11-11 | 2018-07-24 | Sony Corporation | Sound processing device and sound processing method |
| CN106920559B (en) * | 2017-03-02 | 2020-10-30 | 奇酷互联网络科技(深圳)有限公司 | Voice communication optimization method and device and call terminal |
| CN107610698A (en) * | 2017-08-28 | 2018-01-19 | 深圳市金立通信设备有限公司 | A kind of method for realizing Voice command, robot and computer-readable recording medium |
| CN107920176A (en) * | 2017-11-19 | 2018-04-17 | 天津光电安辰信息技术股份有限公司 | A kind of tonequality for voice communication system optimizes device |
| CN107966910B (en) | 2017-11-30 | 2021-08-03 | 深圳Tcl新技术有限公司 | Voice processing method, smart speaker and readable storage medium |
| CN108762607A (en) * | 2018-04-28 | 2018-11-06 | 努比亚技术有限公司 | A kind of game communication method, terminal and computer readable storage medium |
| CN108762926A (en) * | 2018-05-29 | 2018-11-06 | 努比亚技术有限公司 | A kind of system optimization method, terminal and computer readable storage medium |
| CN110176244B (en) * | 2018-06-19 | 2023-10-03 | 腾讯科技(深圳)有限公司 | Echo cancellation method, device, storage medium and computer equipment |
| CN108854062B (en) * | 2018-06-24 | 2019-08-09 | 广州银汉科技有限公司 | A kind of voice-enabled chat module of moving game |
| CN109165091A (en) * | 2018-07-03 | 2019-01-08 | 南昌黑鲨科技有限公司 | Method, mobile terminal and the storage medium of running quality are applied in a kind of optimization |
| CN109147784B (en) * | 2018-09-10 | 2021-06-08 | 百度在线网络技术(北京)有限公司 | Voice interaction method, device and storage medium |
| CN109343902B (en) * | 2018-09-26 | 2021-08-03 | Oppo广东移动通信有限公司 | Operation method, device, terminal and storage medium of audio processing component |
| CN109065065A (en) * | 2018-09-27 | 2018-12-21 | 南昌努比亚技术有限公司 | Call method, mobile terminal and computer readable storage medium |
| CN110704191A (en) * | 2019-09-29 | 2020-01-17 | Oppo广东移动通信有限公司 | Game optimization method, game optimization device and mobile terminal |
| CN110996153B (en) * | 2019-12-06 | 2021-09-24 | 深圳创维-Rgb电子有限公司 | Audio and video quality enhancement method, system and display based on scene recognition |
| CN113836345B (en) * | 2020-06-23 | 2026-02-24 | 索尼公司 | Information processing apparatus, information processing method, and computer-readable storage medium |
| CN111739549B (en) * | 2020-08-17 | 2020-12-08 | 北京灵伴即时智能科技有限公司 | Sound optimization method and sound optimization system |
| CN111933184B (en) * | 2020-09-29 | 2021-01-08 | 平安科技(深圳)有限公司 | Voice signal processing method and device, electronic equipment and storage medium |
| CN114822570B (en) * | 2021-01-22 | 2023-02-14 | 腾讯科技(深圳)有限公司 | Audio data processing method, device and equipment and readable storage medium |
-
2021
- 2021-01-22 CN CN202110088769.3A patent/CN114822570B/en active Active
- 2021-11-18 WO PCT/CN2021/131404 patent/WO2022156336A1/en not_active Ceased
- 2021-11-18 KR KR1020237027570A patent/KR20230130730A/en active Pending
- 2021-11-18 JP JP2023544240A patent/JP7597300B2/en active Active
- 2021-11-18 EP EP21920712.3A patent/EP4283617A4/en active Pending
-
2022
- 2022-11-21 US US17/991,239 patent/US12477069B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| KR20230130730A (en) | 2023-09-12 |
| EP4283617A4 (en) | 2024-07-03 |
| US12477069B2 (en) | 2025-11-18 |
| WO2022156336A1 (en) | 2022-07-28 |
| JP7597300B2 (en) | 2024-12-10 |
| JP2024510367A (en) | 2024-03-07 |
| CN114822570A (en) | 2022-07-29 |
| US20230146871A1 (en) | 2023-05-11 |
| CN114822570B (en) | 2023-02-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12477069B2 (en) | Audio data processing method and apparatus, device, and storage medium | |
| EP1949552B1 (en) | Configuration of echo cancellation | |
| US20190312798A1 (en) | Media connection channel quality testing system | |
| US8284922B2 (en) | Methods and systems for changing a communication quality of a communication session based on a meaning of speech data | |
| US20160170970A1 (en) | Translation Control | |
| EP3282669A2 (en) | Private communications in virtual meetings | |
| RU2507707C2 (en) | Method and apparatus for controlling video and audio data reproduction | |
| JP2019530546A (en) | Listening test and modulation of acoustic signals | |
| US20230364513A1 (en) | Audio processing method and apparatus | |
| US11622197B2 (en) | Audio enhancement for hearing impaired in a shared listening environment | |
| US11115444B2 (en) | Private communications in virtual meetings | |
| US10187432B2 (en) | Replaying content of a virtual meeting | |
| CN111951813A (en) | Voice coding control method, device and storage medium | |
| US20160142453A1 (en) | Features and optimizations for personal communication device based public addressing system | |
| WO2018099143A1 (en) | Method and device for processing audio data | |
| EP2158753B1 (en) | Selection of audio signals to be mixed in an audio conference | |
| US8976223B1 (en) | Speaker switching in multiway conversation | |
| CN110730408A (en) | Audio parameter switching method and device, electronic equipment and storage medium | |
| CN111951821B (en) | Calling methods and devices | |
| CN111885130A (en) | Voice communication method, device, system, equipment and storage medium | |
| HK40071001A (en) | An audio data processing method, device, equipment, and readable storage medium | |
| HK40071001B (en) | An audio data processing method, device, equipment, and readable storage medium | |
| CN122002073A (en) | A method, related apparatus, device, and storage medium for audio playback. | |
| WO2025201011A1 (en) | Hearing aid fitting method and apparatus, and electronic device, computer-readable storage medium and computer program product | |
| CN121098984A (en) | Microphone-based communication methods, systems, and storage media |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE INTERNATIONAL PUBLICATION HAS BEEN MADE |
|
| PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE |
|
| 17P | Request for examination filed |
Effective date: 20230822 |
|
| AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
| DAV | Request for validation of the european patent (deleted) | ||
| DAX | Request for extension of the european patent (deleted) | ||
| A4 | Supplementary search report drawn up and despatched |
Effective date: 20240531 |
|
| RIC1 | Information provided on ipc code assigned before grant |
Ipc: G06F 3/16 20060101ALI20240524BHEP Ipc: G10L 21/0208 20130101AFI20240524BHEP |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: EXAMINATION IS IN PROGRESS |
|
| 17Q | First examination report despatched |
Effective date: 20250516 |
|
| GRAP | Despatch of communication of intention to grant a patent |
Free format text: ORIGINAL CODE: EPIDOSNIGR1 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: GRANT OF PATENT IS INTENDED |
|
| INTG | Intention to grant announced |
Effective date: 20260202 |
|
| GRAS | Grant fee paid |
Free format text: ORIGINAL CODE: EPIDOSNIGR3 |
|
| GRAA | (expected) grant |
Free format text: ORIGINAL CODE: 0009210 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE PATENT HAS BEEN GRANTED |