EP-3920550-B1 - AUDIO PLAYING AND COLLECTION METHOD, APPARATUS AND DEVICE AND READABLE STORAGE MEDIUM
Inventors
- ZHENG, Xiangwei
Dates
- Publication Date
- 20260506
- Application Date
- 20200117
Claims (11)
- An audio play and acquisition method, performed by a terminal (110) connected to a Bluetooth headset (120), the terminal (110) being configured with a terminal microphone (530), and the Bluetooth headset (120) being configured with a headset microphone, characterized in that the method comprises: displaying (401) a program interface of a target application program, the program interface being corresponding to first audio, and the first audio being played through the Bluetooth headset (120) in a form of a stereo sound effect; receiving (402) a voice input signal, the voice input signal being used for enabling a voice input function of the terminal (110), and the voice input function being used for acquiring voice input content; determining a play sound effect of the first audio played by the Bluetooth headset (120); in response to the determined play sound effect of the first audio being the stereo sound effect when the voice input signal is received, blocking (403) a channel activating notification to be transmitted to the headset microphone, the channel activating notification being used for notifying the headset microphone to activate a first voice input channel; and notifying (404) the terminal microphone (530) to activate a second voice input channel to acquire second audio through the terminal microphone (530) as the voice input content.
- The method according to claim 1, wherein the voice input function is a function provided by the program interface, and a connection mode between the Bluetooth headset (120) and the terminal (110) comprises any one of a stereo connection mode and a mono connection mode; and wherein blocking (403), according to the voice input signal, the channel activating notification to be transmitted to the headset microphone comprises: determining (702) the connection mode between the Bluetooth headset (120) and the terminal (110); and blocking, in response to the connection mode between the Bluetooth headset (120) and the terminal (110) being the stereo connection mode, the channel activating notification to be transmitted to the headset microphone.
- The method according to claim 2, wherein the connection mode between the Bluetooth headset (120) and the terminal (110) is the stereo connection mode; and the stereo connection mode is a default connection mode between the Bluetooth headset (120) and the terminal (110); or the stereo connection mode is a currently set connection mode between the Bluetooth headset (120) and the terminal (110).
- The method according to claim 2, further comprising: notifying (705), in response to the connection mode between the Bluetooth headset (120) and the terminal (110) being the mono connection mode, the headset microphone to activate the first voice input channel to acquire the second audio as the voice input content, the first audio being played through the Bluetooth headset (120) in a form of a mono sound effect.
- The method according to claim 2, further comprising: receiving a mode selection operation, the mode selection operation being used for selecting the connection mode between the Bluetooth headset (120) and the terminal (110) among the mono connection mode and the stereo connection mode; and amplifying, in response to the selected connection mode corresponding to the mode selection operation being the stereo connection mode, a sound intensity of the acquired second audio by a preset multiple.
- The method according to any one of claims 1 to 5, further comprising: receiving a first volume adjustment operation, and adjusting a play volume of the first audio according to the first volume adjustment operation.
- The method according to any one of claims 1 to 5, further comprising: receiving a second volume adjustment operation, and adjusting, according to the second volume adjustment operation, the sound intensity of the acquired second audio.
- The method according to any one of claims 1 to 5, wherein the target application program comprises a game application program, the program interface comprises a picture of observing a virtual environment according to a virtual object, the first audio is background audio in a game process, and the first audio is used for identifying an orientation of a sound-emitting position relative to the virtual object in the virtual environment in a case that the first audio is audio with the stereo sound effect.
- An audio play and acquisition apparatus, performed by a terminal (110) connected to a Bluetooth headset (120), the terminal (110) being configured with a terminal microphone (530), and the Bluetooth headset (120) being configured with a headset microphone, the apparatus being arranged to perform the audio play and acquisition method according to any one of claims 1 to 8.
- A computer device, comprising a processor (1401) and a memory (1402), the memory (1402) storing at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by the processor (1401) to perform the audio play and acquisition method according to any one of claims 1 to 8.
- A computer-readable storage medium, the storage medium storing at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by a processor (1401) to perform the audio play and acquisition method according to any one of claims 1 to 8.
Description
RELATED APPLICATION This application claims priority to Chinese Patent Application No. 201910092056.7, entitled "AUDIO PLAY AND ACQUISITION METHOD, DEVICE, AND STORAGE MEDIUM" and filed on January 30, 2019. FIELD OF THE TECHNOLOGY Embodiments of the present application relate to the field of audio processing, and in particular, to an audio play and acquisition method and apparatus, a computer device, and a computer-readable storage medium. BACKGROUND OF THE DISCLOSURE A Bluetooth headset is a headset device that plays current to-be-played audio in a terminal after being connected to the terminal through Bluetooth. Generally, the Bluetooth headset is equipped with a microphone for receiving sound and a sound-emitting unit for sounding, and users may wear the Bluetooth headset to listen to music being played in a music application program installed on the terminal, or a game background sound being played in a game application program. In the related art, the Bluetooth headset is connected to the terminal through a Synchronous Connection Oriented VoIP (SCO VoIP) connection mode. In the connection mode, the Bluetooth headset may sound through the sound-emitting unit and receive sound through the microphone, and the sound through the sound-emitting unit is a sound with a mono sound effect. However, in the game application program, it is usually necessary to play the game background sound through a stereo sound effect. The game background sound through the stereo sound effect is used for identifying orientations such as an orientation of a shot sound and an orientation of a footstep sound. Through the foregoing connection mode, the Bluetooth headset cannot play the game background sound with the stereo sound effect while acquiring audio, and functions of the game application program cannot be achieved normally. CN108924361A discloses an audio play and acquisition control method, comprising the following steps: a Bluetooth connection between a Bluetooth audio device and a smart terminal is established; a usage scenario of the smart terminal is identified; when the usage scenario is that a specified application has been activated, the audio play mode of the smart terminal is adjusted to the sound quality enhancement mode; the smart terminal cancels the data transmission with the Bluetooth audio device through the voice and audio path; when the specified application requests to obtain the voice and audio, the smart terminal collects the voice and audio, and the Bluetooth audio device plays the sound audio in the specified application. SUMMARY The present invention is set out in the appended set of claims. The claimed invention provides an audio play and acquisition method and apparatus, a computer device, and a computer-readable storage medium, thereby implementing audio acquisition while playing stereo sound. In accordance with the invention, an audio play and acquisition method is provided in claim 1. In accordance with the invention, an audio play and acquisition apparatus is provided in claim 9. In accordance with the invention, a computer device is provided in claim 10. In accordance with the invention, a computer-readable storage medium is provided in claim 11. Beneficial effects brought by the technical solutions provided in the embodiments of the present application are at least as follows: When the terminal is connected to the Bluetooth headset and plays the first audio in a form of the stereo sound effect through the Bluetooth headset, the second audio is acquired as the voice input content through the terminal microphone. The second audio is acquired through the terminal microphone while ensuring the first audio is played with a stereo sound effect by the Bluetooth headset, thereby avoiding the problem that the audio cannot be acquired while the stereo sound is played by using the Bluetooth headset. By applying the technical solutions in a game application program, the functions of the game application program can be achieved normally. BRIEF DESCRIPTION OF THE DRAWINGS To describe the technical solutions in embodiments of the present application more clearly, the following briefly describes the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following descriptions show only some embodiments of the present application, and a person of ordinary skill in the art may still derive other accompanying drawings from the accompanying drawings without creative efforts. FIG. 1 is a schematic diagram of an implementation environment according to an exemplary embodiment of the present application.FIG. 2 is a schematic functional diagram of a Bluetooth headset when data is transmitted between the Bluetooth headset and a terminal through an A2DP protocol according to an exemplary embodiment of the present application.FIG. 3 is a schematic functional diagram of a Bluetooth headset when data is transmitted between the Bluetooth headset and a terminal through an S