Voice data transmission method and device, electronic equipment and storage medium

By establishing a connection between the first terminal device and the second terminal device, transmitting voice data and playing through the audio device, the problem of users needing to frequently remove the headphones when wearing the headphones for communication is solved, and more convenient communication is achieved.

CN119521444APending Publication Date: 2025-02-25BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311014814.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-11
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

The noise reduction function of existing audio devices causes users to frequently remove the headphones when communicating with others when wearing headphones, which increases the complexity of the communication process.

Method used

By establishing a connection between the first terminal device and the second terminal device, voice data is transmitted, and playing through the connected audio device, communication is achieved without removing the audio device.

Benefits of technology

It improves the convenience of users to communicate when wearing audio equipment, and reduces communication interruptions caused by noise reduction function.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119521444A_ABST
    Figure CN119521444A_ABST
Patent Text Reader

Abstract

The invention relates to a voice data transmission method and device, electronic equipment and a storage medium, and the method comprises the steps: determining that the voice data transmission device is in a connection state with second terminal equipment, and the second terminal equipment is connected with first audio equipment; and in response to the received first voice data, transmitting the first voice data to the second terminal device, so that the first voice data is played through the first audio device. According to the technical scheme, when the first terminal device and the second terminal device are in the connection state and the second terminal device is connected with the first audio device, the voice data received by the first terminal device can be transmitted to the second terminal device and played through the first audio device. Therefore, the user can communicate with other users under the condition that the audio equipment is not removed, and the convenience of communication of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of audio technology, and in particular to a voice data transmission method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of audio equipment, most headphones in the related art are equipped with a noise reduction function, that is, they can shield the audio signals in the environment. Therefore, when a user wears headphones to communicate with others, he needs to take off the headphones to communicate. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the present disclosure provides a voice data transmission method, device, electronic device and storage medium.

[0004] According to a first aspect of an embodiment of the present disclosure, a voice data transmission method is provided, which is executed by a first terminal device and includes:

[0005] Determining that a connection state is established with a second terminal device, wherein the second terminal device is connected to a first audio device;

[0006] In response to receiving the first voice data, the first voice data is transmitted to the second terminal device so that the first voice data is played through the first audio device.

[0007] Optionally, the first terminal device is connected to a second audio device, and the method further includes:

[0008] In response to receiving the second voice data, the second voice data is played through the second audio device, wherein the second voice data is voice data sent by the second terminal device.

[0009] Optionally, the second audio device plays target audio data, and the playing of the second voice data through the second audio device includes:

[0010] While or after reducing the volume of the target audio data played by the second audio device, the second voice data is played through the second audio device.

[0011] Optionally, the method further comprises:

[0012] collecting the first voice data through the second audio device;

[0013] In response to receiving the first voice data, transmitting the first voice data to the second terminal device includes:

[0014] In response to the second audio device collecting the first voice data, the first voice data is transmitted to the second terminal device.

[0015] Optionally, the method further comprises:

[0016] In response to receiving second voice data, displaying a play control, wherein the second voice data is voice data sent by the second terminal device;

[0017] In response to a triggering operation on the play control, the second voice data is played.

[0018] Optionally, the method further comprises:

[0019] Displaying a selection control, wherein the selection control is used for the user to select whether to transmit voice data to the second terminal device;

[0020] In response to receiving the first voice data, transmitting the first voice data to the second terminal device includes:

[0021] In the case where the selection control is used to select to transmit the voice data to the second terminal device, the first voice data is collected and transmitted to the second terminal device.

[0022] Optionally, both the first audio device and the second audio device are headphones, and the method further includes:

[0023] When both the first audio device and the second audio device are not worn, disconnect the second terminal device.

[0024] Optionally, before determining that the second terminal device is in a connected state, the method further includes:

[0025] In response to a trigger operation on a target link or a scan operation on a target QR code, target information is determined, where the target information is used to represent information required when the second terminal device establishes a connection with the first terminal device, where the target link or the target QR code is generated by the second terminal device in response to a trigger operation on a preset control, where the preset control is used to generate the target link or the target QR code according to the target information;

[0026] Establish a connection with the second terminal device according to the target information.

[0027] Optionally, before determining that the second terminal device is in a connected state, the method further includes:

[0028] Determine a historical device and a device to be connected within a preset range, wherein the historical device is used to represent a device that has established a connection with the first terminal device;

[0029] When both the historical device and the device to be connected include the second terminal device, a connection is established with the second terminal device.

[0030] Optionally, the method further comprises:

[0031] When receiving a call request, disconnecting the second terminal device from the second terminal device and sending a connection interruption message to the second terminal device so that the second terminal device displays the connection interruption message;

[0032] After the call request is completed, an inquiry message is displayed, and when it is determined by operating the inquiry message that the connection with the second terminal device is to be restored, the connection with the second terminal device is restored, wherein the inquiry message is used to inquire whether to restore the connection with the second terminal device.

[0033] According to a second aspect of an embodiment of the present disclosure, a voice data transmission method is provided, which is performed by a second terminal device, where the second terminal device is connected to a first terminal device and a first audio device, and the method includes:

[0034] receiving first voice data, wherein the first voice data is received by the first terminal device and transmitted to the second terminal device;

[0035] The first voice data is played through the first audio device.

[0036] According to a third aspect of an embodiment of the present disclosure, a voice data transmission apparatus is provided, which is applied to a first terminal device, and the apparatus includes:

[0037] A first determining module is configured to determine that a connection state is established with a second terminal device, wherein the second terminal device is connected to a first audio device;

[0038] The first transmission module is configured to transmit the first voice data to the second terminal device in response to receiving the first voice data, so that the first voice data is played through the first audio device.

[0039] Optionally, the first terminal device is connected to a second audio device, and the apparatus further includes:

[0040] The second playing module is configured to play the second voice data through the second audio device in response to receiving the second voice data, wherein the second voice data is the voice data sent by the second terminal device.

[0041] Optionally, the second audio device plays target audio data, and accordingly, the second playing module is configured to play the second voice data through the second audio device while or after reducing the volume of the target audio data played by the second audio device.

[0042] Optionally, the device further comprises:

[0043] a collection module, configured to collect the first voice data through the second audio device;

[0044] Correspondingly, the first transmission module is configured to transmit the first voice data to the second terminal device in response to the second audio device collecting the first voice data.

[0045] Optionally, the device further comprises:

[0046] A first display module is configured to display a play control in response to receiving second voice data, wherein the second voice data is voice data sent by the second terminal device;

[0047] The third playing module is configured to play the second voice data in response to a triggering operation on the playing control.

[0048] Optionally, the device further comprises:

[0049] a second display module, configured to display a selection control, wherein the selection control is used for a user to select whether to transmit voice data to the second terminal device;

[0050] Correspondingly, the first transmission module is configured to collect the first voice data and transmit the first voice data to the second terminal device when the selection control is used to select to transmit the voice data to the second terminal device.

[0051] Optionally, both the first audio device and the second audio device are headphones, and the apparatus further includes:

[0052] The first disconnection module is configured to disconnect the second terminal device when both the first audio device and the second audio device are not worn.

[0053] Optionally, the device further comprises:

[0054] a second determination module, configured to determine target information in response to a trigger operation on a target link or a scan operation on a target QR code, the target information being used to characterize information required when the second terminal device establishes a connection with the first terminal device, the target link or the target QR code being generated by the second terminal device in response to a trigger operation on a preset control, the preset control being used to generate the target link or the target QR code according to the target information;

[0055] The first connection establishing module is configured to establish a connection with the second terminal device according to the target information.

[0056] Optionally, the device further comprises:

[0057] A third determining module is configured to determine a historical device and a device to be connected within a preset range, wherein the historical device is used to represent a device that has established a connection with the first terminal device;

[0058] The second connection establishing module is configured to establish a connection with the second terminal device when both the historical device and the device to be connected include the second terminal device.

[0059] Optionally, the device further comprises:

[0060] A second disconnection module is configured to disconnect the second terminal device when receiving a call request, and send a connection interruption message to the second terminal device so that the second terminal device displays the connection interruption message;

[0061] The third connection establishment module is configured to display an inquiry message after the call request ends, and restore the connection with the second terminal device when it is determined to restore the connection with the second terminal device through operation on the inquiry message, wherein the inquiry message is used to inquire whether to restore the connection with the second terminal device.

[0062] According to a fourth aspect of an embodiment of the present disclosure, a voice data transmission apparatus is provided, which is applied to a second terminal device, wherein the second terminal device is connected to a first terminal device and a first audio device, and the apparatus includes:

[0063] A first receiving module is configured to receive first voice data, wherein the first voice data is received by the first terminal device and transmitted to the second terminal device;

[0064] The first playing module is configured to play the first voice data through the first audio device.

[0065] According to a fifth aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0066] processor;

[0067] a memory for storing processor-executable instructions;

[0068] Wherein, the processor is configured to:

[0069] Execute the steps of the voice data transmission method provided in the first aspect or the second aspect of the present disclosure.

[0070] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the voice data transmission method provided in the first aspect or the second aspect of the present disclosure are implemented.

[0071] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0072] Through the above technical solution, when the first terminal device and the second terminal device are in a connected state and the second terminal device is connected to the first audio device, the voice data received by the first terminal device can be transmitted to the second terminal device and played through the first audio device. As a result, the user can communicate with other users without removing the audio device, reducing the situation where the user cannot hear each other's voice when wearing audio devices such as headphones, thereby improving the convenience of user communication.

[0073] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0075] Figure 1 is a flow chart of a method for transmitting voice data according to an exemplary embodiment;

[0076] Figure 2 is a schematic diagram of a scenario of a voice data transmission method according to an exemplary embodiment;

[0077] Figure 3 is a schematic diagram of another scenario of a voice data transmission method according to an exemplary embodiment;

[0078] Figure 4 is a flow chart showing another voice data transmission method according to an exemplary embodiment;

[0079] Figure 5is a block diagram of a voice data transmission device according to an exemplary embodiment;

[0080] Figure 6 is a block diagram of another voice data transmission device according to an exemplary embodiment;

[0081] Figure 7 The invention is a block diagram showing a device for voice data transmission according to an exemplary embodiment. DETAILED DESCRIPTION

[0082] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0083] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.

[0084] As mentioned in the background technology, with the rapid development of audio equipment, most headphones in the related technology are equipped with a noise reduction function, that is, they can shield the audio signals in the environment. Therefore, when a user wears headphones to communicate with others, the noise reduction function of the headphones will shield the audio data sent by others, so the user needs to take off the headphones frequently to communicate, which increases the complexity of the communication process.

[0085] In view of this, the embodiments of the present disclosure provide a voice data transmission method, apparatus, electronic device and storage medium, by connecting a first terminal device and a second terminal device connected to an audio device, so that the voice data received by the first terminal device can be transmitted to the second terminal device and played through the first audio device. As a result, the user can communicate with other users without removing the audio device, reducing the situation where the users cannot hear each other's voices when wearing audio devices such as headphones, thereby improving the convenience of user communication.

[0086] Figure 1 is a flow chart of a method for transmitting voice data according to an exemplary embodiment. Figure 1 As shown, the voice data transmission method can be executed by the first terminal device, including steps S101 and S102.

[0087] In step S101, it is determined that a second terminal device is in a connection state, wherein the second terminal device is connected to a first audio device.

[0088] It should be understood that the device types of the first terminal device and the second terminal device may be the same or different. For example, the first terminal device is a mobile phone, and the second terminal device is a mobile phone, a tablet or a computer. In addition, the number of second terminal devices may be one or more, and the embodiments of the present disclosure do not impose any restrictions on this. The first audio device may be a device with an audio playback function, such as a wired headset or a wireless headset, and the embodiments of the present disclosure do not impose any restrictions on this.

[0089] In addition, it should be understood that before determining that the connection state is established with the second terminal device, it is necessary to first establish a connection with the second terminal device. The first terminal device may establish a connection with the second terminal device via Bluetooth, or via a wireless local area network (Wireless Fidelity, wifi), or via a near field communication (Near Field Communication, NFC), and the embodiments of the present disclosure do not impose any restrictions on this.

[0090] When the first terminal device establishes a connection with the second terminal device via WiFi, the first terminal device and the second terminal device may share the same WiFi signal, or the second terminal device may use the WiFi signal generated by the first terminal device. The embodiments of the present disclosure do not impose any restrictions on this.

[0091] When the first terminal device establishes a connection with the second terminal device via Bluetooth, the first terminal device may search for the Bluetooth information of the second terminal device, and when the Bluetooth information of the second terminal device is found, the first terminal device clicks on the Bluetooth information of the second terminal device to establish a connection with the second terminal device. Alternatively, the second terminal device triggers a preset control to generate a link or QR code containing Bluetooth information, the first audio device information, and the second terminal device information and sends it to the first terminal device, and the first terminal device establishes a connection with the second terminal device by triggering the link or scanning the QR code.

[0092] That is, according to an embodiment of the present disclosure, before determining that the second terminal device is in a connected state, the method may further include:

[0093] In response to a trigger operation on a target link or a scan operation on a target QR code, target information is determined, where the target information is used to characterize the information required for the second terminal device to establish a connection with the first terminal device, and the target link or the target QR code is generated by the second terminal device in response to a trigger operation on a preset control, and the preset control is used to generate the target link or the target QR code according to the target information; and a connection is established with the second terminal device according to the target information.

[0094] In addition, in order to avoid the need to re-acquire the Bluetooth information of the second terminal device each time a connection is established with the second terminal device, in a possible implementation, the Bluetooth information of the second terminal device can be saved after the first connection is established with the second terminal device, so that a connection is automatically established with the second terminal device when the connection is within the distance range where the connection with the second terminal device can be established.

[0095] That is, according to an embodiment of the present disclosure, before determining that the second terminal device is in a connected state, the method may further include:

[0096] Determine historical devices and devices to be connected within a preset range, wherein the historical devices are used to characterize devices that have established a connection with the first terminal device; when the historical devices and the devices to be connected both include the second terminal device, establish a connection with the second terminal device.

[0097] In step S102, in response to receiving the first voice data, the first voice data is transmitted to the second terminal device, so that the first voice data is played through the first audio device.

[0098] For example, the first voice data may be voice data sent by a user of the first terminal device, or may be voice data played in an application with an audio playback function, such as a music application or a recording application of the first terminal device, which is not limited in this embodiment of the present disclosure.

[0099] For example, Figure 2 As shown, user B wears headphones. When user A communicates with user B, the voice data sent by user A is detected by mobile phone A and transmitted to mobile phone B, so that the voice data sent by user A can be played through the headphones. As a result, user B can hear the conversation between user A and him without removing the headphones, reducing the situation where user B cannot hear user A's voice clearly when wearing headphones, thereby improving the convenience of communication between user A and user B.

[0100] In a possible implementation, in order to allow user A to quickly know that user B can hear the voice data sent by user A, preset identification information can also be displayed on the first terminal device, and the preset identification information is used to indicate that the first voice data can be played through the first audio device. The preset identification information can be represented by an identification name or an identifier, and the embodiments of the present disclosure do not impose any restrictions on this. In a possible implementation, the identification name "headphone mode" can be used to indicate that the first voice data can be played through the first audio device.

[0101] Through the above technical solution, when the first terminal device and the second terminal device are in a connected state, and the second terminal device is connected to the first audio device, the voice data received by the first terminal device can be transmitted to the second terminal device and played through the first audio device. As a result, the user can communicate with other users normally without removing the audio device, reducing the situation where the user cannot hear each other's voice when wearing audio devices such as headphones, thereby improving the convenience of user communication.

[0102] In a possible implementation manner, the first terminal device is connected to a second audio device, and the method may further include:

[0103] In response to receiving the second voice data, the second voice data is played through the second audio device, wherein the second voice data is voice data sent by the second terminal device.

[0104] The device type of the second audio device and the first audio device may be the same or different, and the embodiment of the present disclosure does not impose any limitation on this.

[0105] For example, the second audio device may be a device with an audio playback function, such as a wired headset or a wireless headset, which is not limited in the embodiments of the present disclosure. The second voice data may be voice data sent by a user of the second terminal device, or may be voice data played in an application with an audio playback function, such as a music application or a recording application of the second terminal device, which is not limited in the embodiments of the present disclosure.

[0106] For example, Figure 3As shown, user A wears earphone A, and user B wears earphone B. When user A communicates with user B, the first voice data sent by user A is detected by earphone A, and transmitted to mobile phone A after receiving the sound. Mobile phone A transmits the first voice data to mobile phone B, and plays it through earphone B. Similarly, the second voice data sent by user B is detected by earphone B, and transmitted to mobile phone B after receiving the sound. Mobile phone B transmits the second voice data to mobile phone A, and plays it through earphone A. In this way, when both users are wearing earphones, they can communicate without taking off their earphones, reducing the situation where users cannot hear each other's voices clearly when wearing earphones, thereby improving the convenience of user communication.

[0107] In a possible implementation manner, the second audio device plays target audio data, and playing the second voice data through the second audio device may include:

[0108] While or after reducing the volume of the target audio data played by the second audio device, the second voice data is played through the second audio device.

[0109] It should be understood that the target audio data can be determined according to actual conditions, and the embodiments of the present disclosure do not impose any restrictions on this. In possible implementations, the target audio data can be audio data played by a music application, audio data played by a navigation application, or audio data played by a book application.

[0110] In this embodiment, by automatically reducing the playback volume of the target audio data when the second voice data is received, it is possible to avoid the problem that the user needs to manually turn off the target audio data when receiving the second voice data, thereby reducing the user's operation complexity.

[0111] In addition, in order to avoid the problem that the user needs to manually turn on the target audio data after playing the second voice data, in a possible implementation, the playback volume of the target audio data can be automatically restored after the second voice data is played, so as to further reduce the complexity of the user's operation.

[0112] In a possible implementation, the method may further include:

[0113] collecting the first voice data through the second audio device;

[0114] Accordingly, in response to receiving the first voice data, transmitting the first voice data to the second terminal device includes:

[0115] In response to the second audio device collecting the first voice data, the first voice data is transmitted to the second terminal device.

[0116] For example, it can be Figure 3 As shown, user A wears earphone A, and user B wears earphone B. When user A communicates with user B, the first voice data sent by user A can be detected by earphone A, and transmitted to mobile phone A after earphone A completes sound reception, so that the first voice data is transmitted to mobile phone B through mobile phone A. Similarly, the second voice data sent by user B can be detected by earphone B, and transmitted to mobile phone B after earphone B completes sound reception, so that the second voice data is transmitted to mobile phone A through mobile phone B.

[0117] In a possible implementation, the method may further include:

[0118] In response to receiving second voice data, a play control is displayed, wherein the second voice data is voice data sent by the second terminal device; in response to a triggering operation on the play control, the second voice data is played.

[0119] The playback control may be represented by a control name or a control identifier. The triggering operation of the playback control may be a click operation, a slide operation, or a long press operation on the playback control, and the present disclosure does not impose any restrictions on this. In a possible implementation, the control identifier " " represents the playback control and is displayed by clicking the control identifier " ", play the received second voice data.

[0120] In this embodiment, by displaying a play control when the second voice data is received, and playing the second voice data when the play control is triggered, the user can control whether to play the second voice data, the play time and play location of the second voice data, etc. through the play control.

[0121] In a possible implementation, when the second terminal device receives the first voice data transmitted by the first terminal device, it can also display a play control, thereby controlling whether the second terminal device plays the first voice data, the play time and play location of the first voice data, etc. through the play control.

[0122] In a possible implementation, the method may further include:

[0123] Displaying a selection control, wherein the selection control is used for the user to select whether to transmit voice data to the second terminal device;

[0124] Accordingly, in response to receiving the first voice data, transmitting the first voice data to the second terminal device may include:

[0125] In the case where the selection control is used to select to transmit the voice data to the second terminal device, the first voice data is collected and transmitted to the second terminal device.

[0126] In this embodiment, a selection control is configured for the user to select whether to transmit voice data to the second terminal device. Thus, the user can determine whether to transmit the first voice data to the second terminal device and the content of the transmission through the selection control.

[0127] In a possible implementation manner, the first audio device and the second audio device are both headphones, and the method may further include:

[0128] When both the first audio device and the second audio device are not worn, disconnect the second terminal device.

[0129] The earphone may be a wired earphone or a wireless earphone, and the embodiments of the present disclosure do not impose any limitation on this.

[0130] It should be understood that when both the first audio device and the second audio device are not worn, it means that the user corresponding to the first terminal device and the user corresponding to the second terminal device can communicate normally, and there is no need to transmit voice data through the first terminal device and the second terminal device. Therefore, when it is detected that both the first audio device and the second audio device are not worn, in order to reduce power consumption, the connection with the second terminal device is automatically disconnected.

[0131] In a possible implementation, the method may further include:

[0132] When a call request is received, the connection with the second terminal device is disconnected, and a connection interruption message is sent to the second terminal device, so that the second terminal device displays the connection interruption message; after the call request ends, an inquiry message is displayed, and when it is determined by operating the inquiry message that the connection with the second terminal device is to be restored, the connection with the second terminal device is restored, wherein the inquiry message is used to inquire whether to restore the connection with the second terminal device.

[0133] In this embodiment, when disconnecting from the second terminal device, a connection interruption message is sent to the second terminal device so that the user of the second terminal device can promptly learn about the connection status between the first terminal device and the second terminal device, thereby preventing the voice signal sent by the user of the second terminal device from being unable to be transmitted to the first terminal device due to the connection interruption. At the same time, after the call ends, an inquiry message is displayed so that the user of the first terminal device can promptly learn about the connection status with the second terminal device.

[0134] Based on the same concept, the embodiment of the present disclosure also provides a method for transmitting voice data, such as Figure 4 As shown, the method is performed by a second terminal device, the second terminal device is connected to the first terminal device and the first audio device, and the method may include steps S401 and 402.

[0135] In step S401, first voice data is received; wherein the first voice data is received by the first terminal device and transmitted to the second terminal device;

[0136] In step S402, the first voice data is played through the first audio device.

[0137] In a possible implementation manner, the first terminal device is connected to a second audio device, and the method may further include:

[0138] receiving second voice data;

[0139] The second voice data is transmitted to the first terminal device so that the second voice data is played through the second audio device.

[0140] Based on the same concept, the embodiment of the present disclosure also provides a voice data transmission device, such as Figure 5 As shown, applied to a first terminal device, the voice data transmission device may include:

[0141] The first determining module 501 is configured to determine that the second terminal device is in a connected state; wherein the second terminal device is connected to a first audio device;

[0142] The first transmission module 502 is configured to transmit the first voice data to the second terminal device in response to receiving the first voice data, so that the first voice data is played through the first audio device.

[0143] In a possible implementation manner, the first terminal device is connected to a second audio device, and the voice data transmission device may further include:

[0144] The second playing module is configured to play the second voice data through the second audio device in response to receiving the second voice data, wherein the second voice data is the voice data sent by the second terminal device.

[0145] In a possible implementation, the second audio device plays target audio data, and accordingly, the second playing module is configured to play the second voice data through the second audio device while or after reducing the volume of the target audio data played by the second audio device.

[0146] Optionally, the voice data transmission device may further include:

[0147] a collection module, configured to collect the first voice data through the second audio device;

[0148] Correspondingly, the first transmission module 502 is configured to transmit the first voice data to the second terminal device in response to the second audio device collecting the first voice data.

[0149] In a possible implementation manner, the voice data transmission device may further include:

[0150] A first display module is configured to display a play control in response to receiving second voice data, wherein the second voice data is voice data sent by the second terminal device;

[0151] The third playing module is configured to play the second voice data in response to a triggering operation on the playing control.

[0152] In a possible implementation manner, the voice data transmission device may further include:

[0153] A second display module is configured to display a selection control, wherein the selection control is used for a user to select whether to transmit voice data to the second terminal device;

[0154] Correspondingly, the first transmission module 502 is configured to collect the first voice data and transmit the first voice data to the second terminal device when the selection control is used to select to transmit the voice data to the second terminal device.

[0155] In a possible implementation manner, the first audio device and the second audio device are both headphones, and the voice data transmission device may further include:

[0156] The first disconnection module is configured to disconnect the second terminal device when both the first audio device and the second audio device are not worn.

[0157] In a possible implementation manner, the voice data transmission device may further include:

[0158] a second determination module, configured to determine target information in response to a trigger operation on a target link or a scan operation on a target QR code, the target information being used to characterize information required when the second terminal device establishes a connection with the first terminal device, the target link or the target QR code being generated by the second terminal device in response to a trigger operation on a preset control, the preset control being used to generate the target link or the target QR code according to the target information;

[0159] The first connection establishing module is configured to establish a connection with the second terminal device according to the target information.

[0160] In a possible implementation manner, the voice data transmission device may further include:

[0161] A third determining module is configured to determine a historical device and a device to be connected within a preset range, wherein the historical device is used to represent a device that has established a connection with the first terminal device;

[0162] The second connection establishing module is configured to establish a connection with the second terminal device when both the historical device and the device to be connected include the second terminal device.

[0163] In a possible implementation manner, the voice data transmission device may further include:

[0164] A second disconnection module is configured to disconnect the second terminal device when receiving a call request, and send a connection interruption message to the second terminal device so that the second terminal device displays the connection interruption message;

[0165] The third connection establishment module is configured to display an inquiry message after the call request ends, and restore the connection with the second terminal device when it is determined to restore the connection with the second terminal device through operation on the inquiry message, wherein the inquiry message is used to inquire whether to restore the connection with the second terminal device.

[0166] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0167] Based on the same concept, the embodiment of the present disclosure also provides a voice data transmission device, such as Figure 6 As shown, applied to a second terminal device, the second terminal device is connected to a first terminal device and a first audio device, and the voice data transmission device may include:

[0168] A first receiving module 601 is configured to receive first voice data, wherein the first voice data is received by the first terminal device and transmitted to the second terminal device;

[0169] The first playing module 602 is configured to play the first voice data through the first audio device.

[0170] In a possible implementation manner, the first terminal device is connected to a second audio device, and the voice data transmission device may include:

[0171] A second receiving module is configured to receive second voice data;

[0172] The second transmission module is configured to transmit the second voice data to the first terminal device so that the second voice data is played through the second audio device.

[0173] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0174] Based on the same concept, the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the voice data transmission method provided in the first aspect or the second aspect of the present disclosure are implemented.

[0175] Based on the same concept, the present disclosure also provides an electronic device, including:

[0176] processor;

[0177] a memory for storing processor-executable instructions;

[0178] Wherein, the processor is configured to:

[0179] Execute the steps of the voice data transmission method provided in the first aspect or the second aspect of the present disclosure.

[0180] Figure 7 7 is a block diagram of a device (ie, the electronic device described above) 700 for voice data transmission according to an exemplary embodiment. For example, the device 700 may be a mobile phone, a tablet, or a computer.

[0181] Reference Figure 7 , the device 700 may include one or more of the following components: a processing component 702 , a memory 704 , a power component 706 , a multimedia component 708 , an audio component 710 , an input / output interface 712 , a sensor component 714 , and a communication component 716 .

[0182] The processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above-mentioned voice data transmission method. In addition, the processing component 702 may include one or more modules to facilitate the interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate the interaction between the multimedia component 708 and the processing component 702.

[0183] The memory 704 is configured to store various types of data to support operations on the device 700. Examples of such data include instructions for any application or method operating on the device 700, contact data, phone book data, messages, pictures, videos, etc. The memory 704 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0184] The power supply component 706 provides power to the various components of the device 700. The power supply component 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 700.

[0185] The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front camera and / or a rear camera. When the device 700 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0186] The audio component 710 is configured to output and / or input audio signals. For example, the audio component 710 includes a microphone (MIC), and when the device 700 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 704 or sent via the communication component 716. In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

[0187] The input / output interface 712 provides an interface between the processing component 702 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0188] The sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for the device 700. For example, the sensor assembly 714 can detect the open / closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, the sensor assembly 714 can also detect the position change of the device 700 or a component of the device 700, the presence or absence of user contact with the device 700, the orientation or acceleration / deceleration of the device 700, and the temperature change of the device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0189] The communication component 716 is configured to facilitate wired or wireless communication between the device 700 and other devices. The device 700 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0190] In an exemplary embodiment, the apparatus 700 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the voice data transmission method.

[0191] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, which can be executed by a processor 720 of the device 700 to complete the voice data transmission method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0192] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program executable by a programmable device, and the computer program has a code portion for executing the above-mentioned voice data transmission method when executed by the programmable device.

[0193] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0194] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A voice data transmission method, characterized in that: The method is executed by the first terminal device and includes: Determining that a connection state is established with a second terminal device, wherein the second terminal device is connected to a first audio device; In response to receiving the first voice data, the first voice data is transmitted to the second terminal device so that the first voice data is played through the first audio device.

2. The method according to claim 1, characterized in that The first terminal device is connected to a second audio device, and the method further includes: In response to receiving the second voice data, the second voice data is played through the second audio device, wherein the second voice data is voice data sent by the second terminal device.

3. The method according to claim 2, characterized in that The second audio device plays the target audio data, and the playing of the second voice data by the second audio device includes: While or after reducing the volume of the target audio data played by the second audio device, the second voice data is played through the second audio device.

4. The method according to claim 2, characterized in that: The method further comprises: collecting the first voice data through the second audio device; In response to receiving the first voice data, transmitting the first voice data to the second terminal device includes: In response to the second audio device collecting the first voice data, the first voice data is transmitted to the second terminal device.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: In response to receiving second voice data, displaying a play control, wherein the second voice data is voice data sent by the second terminal device; In response to a triggering operation on the play control, the second voice data is played.

6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Displaying a selection control, wherein the selection control is used for the user to select whether to transmit voice data to the second terminal device; In response to receiving the first voice data, transmitting the first voice data to the second terminal device includes: In the case where the selection control is used to select to transmit the voice data to the second terminal device, the first voice data is collected and transmitted to the second terminal device.

7. The method according to any one of claims 2 to 4, characterized in that: The first audio device and the second audio device are both headphones, and the method further includes: When both the first audio device and the second audio device are not worn, disconnect the second terminal device.

8. The method according to any one of claims 1 to 4, characterized in that Before determining that the connection state is established with the second terminal device, the method further includes: In response to a trigger operation on a target link or a scan operation on a target QR code, target information is determined, where the target information is used to represent information required when the second terminal device establishes a connection with the first terminal device, where the target link or the target QR code is generated by the second terminal device in response to a trigger operation on a preset control, where the preset control is used to generate the target link or the target QR code according to the target information; Establish a connection with the second terminal device according to the target information.

9. The method according to any one of claims 1 to 4, characterized in that: Before determining that the connection state is established with the second terminal device, the method further includes: Determine a historical device and a device to be connected within a preset range, wherein the historical device is used to represent a device that has established a connection with the first terminal device; When both the historical device and the device to be connected include the second terminal device, a connection is established with the second terminal device.

10. The method according to any one of claims 1 to 4, characterized in that The method further comprises: When receiving a call request, disconnecting the second terminal device from the second terminal device and sending a connection interruption message to the second terminal device so that the second terminal device displays the connection interruption message; After the call request is completed, an inquiry message is displayed, and when it is determined by operating the inquiry message that the connection with the second terminal device is to be restored, the connection with the second terminal device is restored, wherein the inquiry message is used to inquire whether to restore the connection with the second terminal device.

11. A voice data transmission method, characterized in that: The method is performed by a second terminal device, the second terminal device being connected to a first terminal device and a first audio device, and includes: receiving first voice data, wherein the first voice data is received by the first terminal device and transmitted to the second terminal device; The first voice data is played through the first audio device.

12. A voice data transmission device, characterized in that: Applied to the first terminal device, including: A first determining module is configured to determine that a connection state is established with a second terminal device, wherein the second terminal device is connected to a first audio device; The first transmission module is configured to transmit the first voice data to the second terminal device in response to receiving the first voice data, so that the first voice data is played through the first audio device.

13. A voice data transmission device, characterized in that: Applied to a second terminal device, the second terminal device is connected to a first terminal device and a first audio device, the apparatus comprises: A first receiving module is configured to receive first voice data, wherein the first voice data is received by the first terminal device and transmitted to the second terminal device; The first playing module is configured to play the first voice data through the first audio device.

14. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: Execute the steps of the method according to any one of claims 1 to 11.

15. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 11 are implemented.