A voice data transmission method and system
By generating voice packets containing existing device identifiers and broadcasting them to multiple voice devices, and generating and decoding voice data based on the device identifiers, the problem of a single transmission control method in existing technologies is solved, enabling flexible voice transmission control and improving the user experience.
Patent Information
- Application Number
- CN202310772024.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-27
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2043-06-27
AI Technical Summary
Existing voice communication systems use a single transmission control method, which cannot meet the diverse needs of users.
By generating voice packets containing existing device identifiers, broadcasting them to multiple voice devices, and generating and decoding voice data based on the device identifiers, flexible voice transmission control is achieved.
It enhances the flexibility and user experience of voice transmission, enabling voice data transmission based on user needs, thereby improving the user experience.
Smart Images

Figure CN116647539B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and more specifically, to a voice data transmission method and system. Background Technology
[0002] With the rapid development of the internet, voice communication systems are becoming increasingly diverse. Most current voice communication systems are one-to-one or one-to-many broadcast systems. For example, during a conference, one terminal device broadcasts voice data, which other terminal devices can then receive and play.
[0003] However, as user needs change, the requirements for controlling voice data in voice broadcasting systems have become higher, while existing voice communication can only broadcast one-to-one or one-to-many, and the transmission control method is too simplistic. Summary of the Invention
[0004] The purpose of this invention is to address the shortcomings of the prior art by providing a voice data transmission method and system to solve problems such as the limited control of voice communication transmission in the prior art.
[0005] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows:
[0006] In a first aspect, embodiments of this application provide a voice data transmission method, applied to a first voice device in a voice data transmission system, the voice data transmission system further comprising: a plurality of second voice devices, the method comprising:
[0007] The first voice packet is generated based on the collected first voice data and the existing device identifier;
[0008] The first voice packet is broadcast to the plurality of second voice devices. The first voice packet is used to enable the target second voice device to decode the first voice packet, obtain and play the first voice data and the existing device identifier, and generate a second voice packet based on the identifier of the target second voice device and the collected second voice data when the existing device identifier includes the identifier of the target second voice device. The target second voice device is the voice device corresponding to any device identifier among the existing device identifiers of the plurality of second voice devices.
[0009] Receive the second voice packet uploaded by the target second voice device;
[0010] The second voice packet is decoded to obtain the second voice data;
[0011] Play the second audio data.
[0012] Optionally, if the number of the target second voice devices is at least two, then playing the second voice data includes:
[0013] Perform a combination process on the second speech data corresponding to at least two of the target second speech devices to obtain a merged audio;
[0014] Play the merged audio.
[0015] Optionally, before generating the first voice packet based on the collected first voice data and the existing device identifier, the method further includes:
[0016] Receive a first access request uploaded by each of the second voice devices, wherein the first access request includes: the identifier of each of the second voice devices;
[0017] The existing device identifier is generated based on the device identifier of each of the second voice devices.
[0018] Optionally, the method further includes:
[0019] Receive a second access request sent by other second voice devices among the plurality of second voice devices, wherein the second access request includes: the identifier of the other second voice device;
[0020] If the number of target second voice devices that have been uploaded and connected reaches a preset threshold, then a voice device to be replaced is determined from the target second voice devices that have been uploaded and connected.
[0021] Based on the identifiers of the other second voice devices, the identifier of the voice device to be replaced in the connected device identifiers is replaced and updated to generate an updated connected device identifier.
[0022] Optionally, the method further includes:
[0023] If the number of target second voice devices that have been uploaded and connected is less than the preset threshold, then the identifiers of the other second voice devices are added to the identifiers of the connected devices.
[0024] Secondly, embodiments of this application provide a voice data transmission method, applied to any second voice device in a voice data transmission system, wherein the voice data transmission system further includes: a first voice device, and the method includes:
[0025] Receive a first voice packet broadcast by the first voice device, wherein the first voice packet is a voice packet generated by the first voice device based on the collected first voice data and the existing device identifier;
[0026] Decode the first voice packet to obtain the existing device identifier and the first voice data;
[0027] If the existing device identifier includes the identifier of any second voice device, then the first voice data is played, and a second voice packet is generated based on the identifier of any second voice device and the collected second voice data;
[0028] The second voice packet is uploaded to the first voice device. The second voice packet is used to enable the first voice device to decode the second voice packet, obtain the second voice data, and play the second voice data.
[0029] Optionally, the method further includes:
[0030] If the existing device identifier does not include the identifier of any of the second voice devices, then the first voice data is played.
[0031] Optionally, before playing the first voice data and generating the second voice packet based on the existing device identifier and the collected second voice data, if the existing device identifier includes the identifier of any second voice device, the method further includes:
[0032] Send a first access request to the first voice device. The first access request includes the identifier of any second voice device. The first access request is used to enable the first voice device to generate the existing device identifier based on the devices of the second voice device pairs in each of the received first access requests.
[0033] Optionally, before uploading the second voice packet to the first voice device, the method further includes:
[0034] A second access request is sent to the first voice device. The second access request includes the identifier of any of the second voice devices. The second access request is used to enable the first voice device to update the connected device identifier based on the identifier of any of the second voice devices.
[0035] Thirdly, embodiments of this application provide a voice data transmission system, comprising a first voice device and a plurality of second voice devices, wherein the first voice device and the plurality of second voice devices are communicatively connected;
[0036] Wherein, the first voice device is used to execute any of the methods described in the first aspect above, and each second voice device is used to execute any of the methods described in the second aspect above.
[0037] Compared with the prior art, this application has the following beneficial effects:
[0038] This application provides a voice data transmission method and system. The method generates a first voice packet based on collected first voice data and an existing device identifier; broadcasts the first voice packet to multiple second voice devices; the first voice packet enables a target second voice device to decode the first voice packet, obtain and play the first voice data and the existing device identifier, and, if the existing device identifier includes the identifier of the target second voice device, generates a second voice packet based on the identifier of the target second voice device and the collected second voice data; wherein the target second voice device is the voice device corresponding to any one of the existing device identifiers among the multiple second voice devices; receives the second voice packet uploaded by the target second voice device; decodes the second voice packet to obtain second voice data; and plays the second voice data. This makes voice transmission control more flexible, allowing voice data transmission according to user needs and improving the user experience. Attached Figure Description
[0039] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 This is a schematic diagram of the structure of a voice data transmission system provided in an embodiment of this application;
[0041] Figure 2 A flowchart illustrating a voice data transmission method applied to a first voice device, provided as an embodiment of this application;
[0042] Figure 3 A flowchart illustrating a method for playing multiple second voice data provided in an embodiment of this application;
[0043] Figure 4 A flowchart illustrating a method for generating an existing device identifier provided in an embodiment of this application;
[0044] Figure 5 A flowchart illustrating a method for updating the identifier of a connected device provided in an embodiment of this application;
[0045] Figure 6 A flowchart illustrating a voice data transmission method applied to a second voice device, provided as an embodiment of this application;
[0046] Figure 7 A schematic diagram of a voice data transmission device applied to a first voice device provided in an embodiment of this application;
[0047] Figure 8 A schematic diagram of a voice data transmission device applied to a second voice device provided in an embodiment of this application;
[0048] Figure 9 This is a schematic diagram of a voice device provided in an embodiment of this application.
[0049] Icons: First voice device 100, multiple second voice devices 200, generation module 701, first transmission module 702, first receiving module 703, first decoding module 704, first playback module 705, second receiving module 801, second decoding module 802, second playback module 803, second transmission module 804, processor 901, transmitter 902, receiver 903. Detailed Implementation
[0050] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. The components of the embodiments of the present application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0051] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0052] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0053] Furthermore, the terms "first" and "second" are used only to distinguish descriptions and should not be interpreted as indicating or implying relative importance.
[0054] It should be noted that, where there is no conflict, the features in the embodiments of the present invention can be combined with each other.
[0055] To adapt to diverse voice transmission needs and improve the user experience of voice communication data transmission, this application provides a voice data transmission method and system.
[0056] Before introducing the voice data transmission method, let's first explain the voice data transmission system. Figure 1 This is a schematic diagram of a voice data transmission system provided in an embodiment of this application. Figure 1As shown, the system includes: a first voice device 100 and a plurality of second voice devices 200, wherein the first voice device 100 is communicatively connected to the plurality of second voice devices 200.
[0057] For example, the voice data transmission system can be a voice data transmission system for video conferencing, where the first voice device 100 is the voice device corresponding to the conference host, and multiple second voice devices 200 are the voice devices corresponding to the conference participants.
[0058] The following specific examples illustrate a voice data transmission method for a first voice device provided in this application. Figure 2 This is a flowchart illustrating a voice data transmission method applied to a first voice device, as provided in an embodiment of this application. The execution subject of this method is the first voice device in the voice data transmission system, which can be a device with receiving, sending, calculation, and processing functions. Figure 2 As shown, the method includes:
[0059] S101. Generate a first voice packet based on the collected first voice data and the existing device identifier.
[0060] The first voice device collects the user's voice data and encodes it to generate a voice data packet. After encoding, an existing device identifier is added to the header of the voice data packet, and then the packet is encapsulated to generate the first voice packet. The existing device identifier can be a single device identifier or multiple device identifiers.
[0061] For example, when adding an existing device identifier, the first voice device may add one or more device identifiers according to user instructions, or it may choose not to add any device identifiers.
[0062] For example, the existing device identifier can be the device identifier determined by the first voice device according to user instructions. The second voice device corresponding to the added device identifier is the device that the first voice device requests to send uplink voice data. For example, if the meeting host wants Zhang San and Li Si to speak, they can manually or automatically add the device identifiers of the second voice devices corresponding to Zhang San and Li Si.
[0063] For example, the encoding process is PCM (Pulse Code Modulation) encoding process.
[0064] S102, Send the first voice packet to multiple second voice devices via broadcast.
[0065] The first voice packet is used to enable the target second voice device to decode the first voice packet, obtain and play the first voice data and the existing device identifier, and generate the second voice packet according to the identifier of the target second voice device and the collected second voice data when the existing device identifier includes the identifier of the target second voice device; wherein, the target second voice device is the voice device corresponding to any device identifier among the existing device identifiers of multiple second voice devices.
[0066] S103, Receive the second voice packet uploaded by the target second voice device.
[0067] Among them, the target second voice device is the second voice device corresponding to the existing device identifier.
[0068] For example, the first voice device has a reception period, which is divided into multiple reception sub-periods. Within each sub-reception period, it receives multiple second voice packets uploaded by multiple target second voice devices. For instance, the reception period can be 15ms, which can be divided into multiple reception sub-periods. Because the reception period is very short, receiving multiple second voice packets sequentially does not affect the user's intuitive experience during playback.
[0069] S104. Decode the second voice packet to obtain the second voice data.
[0070] The second voice packet is encoded data. Decoding the second voice packet facilitates the subsequent playback of the second voice data.
[0071] S105, Play the second voice data.
[0072] The first voice device identifies the target second voice device using an existing device identifier and then plays the second voice data uploaded by the target second voice device. This allows for targeted playback of the target second voice device's voice data, rather than simultaneously playing voice data from all second voice devices. This makes voice transmission control more flexible, enabling voice data transmission based on user needs and improving the user experience.
[0073] In summary, in this embodiment, a first voice packet is generated based on the collected first voice data and existing device identifiers; the first voice packet is broadcast to multiple second voice devices; the first voice packet enables the target second voice device to decode the first voice packet, obtain and play the first voice data and existing device identifiers, and when the existing device identifiers include the identifier of the target second voice device, a second voice packet is generated based on the identifier of the target second voice device and the collected second voice data; wherein, the target second voice device is the voice device corresponding to any device identifier among the existing device identifiers of the multiple second voice devices; the second voice packet uploaded by the target second voice device is received; the second voice packet is decoded to obtain second voice data; and the second voice data is played. This makes voice transmission control more flexible, allowing voice data transmission according to user needs, thus improving the user experience.
[0074] In the above Figure 2 Based on the corresponding embodiments, this application also provides a method for playing multiple second voice data. Figure 3 This is a flowchart illustrating a method for playing multiple second voice data sets, provided as an embodiment of this application. Figure 3 As shown, if the number of target second voice devices is at least two, then playing the second voice data in S105 includes:
[0075] S201. Perform phonosynthesis processing on the second speech data corresponding to at least two target second speech devices to obtain merged audio.
[0076] If the number of target second voice devices is at least two, in order to play at least two second voice data simultaneously, at least two more second voice data need to be combined to obtain merged audio.
[0077] S202, Play the merged audio.
[0078] For example, in a conference scenario, both Zhang San's and Li Si's second voice devices upload their second voice data. Through merging processing, the conference host can hear Zhang San and Li Si speaking simultaneously.
[0079] In summary, in this embodiment, the second voice data corresponding to at least two target second voice devices are combined to obtain merged audio; the merged audio is then played. This improves the user experience.
[0080] In the above Figure 2 Based on the corresponding embodiments, this application also provides a method for generating existing device identifiers. Figure 4 This is a flowchart illustrating a method for generating an existing device identifier, provided as an embodiment of this application. Figure 4As shown, before generating the first voice packet based on the collected first voice data and the existing device identifier in S101, the method further includes:
[0081] S301, Receive the first access request uploaded by each second voice device.
[0082] The first access request includes: the identifiers of each second voice device.
[0083] In order to establish a connection with the first voice device and to allow the first voice device to know its own device identifier, the second voice device first sends a first access request to the first voice device.
[0084] S302. Generate existing device identifiers based on the device identifiers of each second voice device.
[0085] In addition to the method for determining existing device identifiers in the above embodiments, the first voice device can also generate existing device identifiers based on the device identifiers of each of the second voice devices.
[0086] For example, the device identifiers of each second voice device can be added to the existing device identifiers, or a subset of the device identifiers from each second voice device can be added to the existing device identifiers. For instance, if multiple participants send access requests through second voice devices, the conference controller can add all the device identifiers of the participants sending access requests to the existing device identifiers using the first voice device, or choose to add only a subset of those device identifiers.
[0087] In summary, in this embodiment, a first access request uploaded by each second voice device is received, and the first access request includes: the identifier of each second voice device; an existing device identifier is generated based on the device identifier of each second voice device. Thus, an existing device identifier is generated based on the access request.
[0088] In the above Figure 4 Based on the corresponding embodiments, this application also provides a method for updating the identifier of a connected device. Figure 5 This is a flowchart illustrating a method for updating the identifier of a connected device, as provided in an embodiment of this application. Figure 5 As shown, the method also includes:
[0089] S401, Receive a second access request sent by another second voice device among multiple second voice devices.
[0090] The second access request includes: the identifier of another second voice device.
[0091] During the voice data transmission process, in order to establish an upload connection with the first voice device and to send voice data to the first voice device, the second voice device needs to send a second access request to the first voice device to request the establishment of an upload connection with the first voice device.
[0092] Upon receiving the identifier of another second voice device, if the identifier of the other second voice device is the same as the device identifier added in the first voice packet, then access for the other second voice device is granted. If the identifier of the other second voice device is different from the device identifier added in the first voice packet, then access for the other second voice device is denied.
[0093] S402. If the number of target second voice devices that have been uploaded and connected reaches a preset threshold, then determine the voice device to be replaced from the target second voice devices that have been uploaded and connected.
[0094] The number of second voice devices that a first voice device can upload and connect to is limited, with an upper limit of a preset threshold. If the number of target second voice devices that have already uploaded and connected reaches the preset threshold, in order to receive second voice packets uploaded by other second voice devices, it is necessary to determine the voice devices to be replaced from the already uploaded and connected target second voice devices. The number of voice devices to be replaced is the same as the number of other second voice devices.
[0095] For example, the target second voice device that connects first can be identified as the voice device to be replaced, based on the order of access. Alternatively, the target second voice device with the worst signal quality can be identified as the voice device to be replaced.
[0096] S403. Based on the identifiers of other second voice devices, replace and update the identifier of the voice device to be replaced in the connected device identifiers to generate an updated connected device identifier.
[0097] You can replace the identifier of another second voice device in the position of the identifier of the voice device to be replaced. You can also add the identifier of another second voice device to the end of the identifier of the connected device.
[0098] For example, the reception period of the first voice device includes not only multiple reception sub-periods but also an interval period. The interval period is used to replace and update the device identifier and receive second voice packets uploaded by other second voice devices. For instance, the reception period can be 15ms, with the first 12ms divided into multiple reception sub-periods and the last 3ms defined as the interval period.
[0099] In summary, in this embodiment, a second access request is received from other second voice devices among a plurality of second voice devices. The second access request includes the identifier of the other second voice device. If the number of target second voice devices that have been uploaded and connected reaches a preset threshold, a voice device to be replaced is determined from the target second voice devices that have been uploaded and connected. Based on the identifier of the other second voice devices, the identifier of the voice device to be replaced in the connected device identifiers is replaced and updated to generate an updated connected device identifier. Thus, the updating of the connected device identifiers is achieved.
[0100] Furthermore, in this embodiment of the application, the method further includes:
[0101] If the number of target second voice devices is less than a preset threshold, the identifiers of other second voice devices will be added to the existing device identifiers.
[0102] If the number of target second voice devices is less than the preset threshold, there is no need to replace them; simply add the identifiers of other second voice devices to the last position of the connected device identifiers.
[0103] The following specific examples illustrate a voice data transmission method for a second voice device provided in this application. Figure 6 This is a flowchart illustrating a voice data transmission method applied to a second voice device, provided as an embodiment of this application. The execution subject of this method is any second voice device in the voice data transmission system, which can be a device with receiving, sending, calculation, and processing functions. Figure 6 As shown, the method includes:
[0104] S501, Receive the first voice packet broadcast by the first voice device.
[0105] The first voice packet is a voice packet generated by the first voice device based on the collected first voice data and the existing device identifier.
[0106] S502. Decode the first voice packet to obtain the existing device identifier and the first voice data.
[0107] S503. If the existing device identifier includes the identifier of any second voice device, then play the first voice data and generate a second voice packet based on the identifier of any second voice device and the collected second voice data.
[0108] If the existing device identifier includes the identifier of any second voice device, meaning the current second voice device is the one for which the first voice device requests the transmission of uplink voice data, then the current second voice device, in addition to playing the first voice data, also needs to collect second voice data. Based on the identifier of any second voice device and the collected second voice data, a second voice packet is generated.
[0109] S504. Upload the second voice packet to the first voice device.
[0110] The second voice packet is used to enable the first voice device to decode the second voice packet, obtain the second voice data, and play the second voice data.
[0111] In summary, in this embodiment, a first voice packet broadcast by a first voice device is received. This first voice packet is generated by the first voice device based on collected first voice data and an existing device identifier. The first voice packet is decoded to obtain the existing device identifier and the first voice data. If the existing device identifier includes the identifier of any second voice device, the first voice data is played, and a second voice packet is generated based on the identifier of any second voice device and the collected second voice data. The second voice packet is then uploaded to the first voice device, which decodes it to obtain second voice data and plays it. This makes voice transmission control more flexible, allowing voice data transmission according to user needs and improving the user experience.
[0112] In the above Figure 6 Based on the corresponding embodiments, in the embodiments of this application, the method further includes:
[0113] If the existing device identifiers do not include the identifier of any second voice device, then the first voice data is played.
[0114] If the existing device identifiers do not include the identifier of any second voice device, meaning the current second voice device is not the device for which the first voice device requested to send uplink voice data, then directly play the first voice data without any further processing.
[0115] In the above Figure 6 Based on the corresponding embodiments, in this application embodiment, if the existing device identifier includes the identifier of any second voice device, then before playing the first voice data and generating the second voice packet based on the existing device identifier and the collected second voice data, the method further includes:
[0116] Send a first access request to a first voice device. The first access request includes the identifier of any second voice device. The first access request is used to enable the first voice device to generate an existing device identifier based on the devices of the second voice device pairs in each of the received first access requests.
[0117] In order to establish a connection with the first voice device and to allow the first voice device to know its own device identifier, the second voice device first sends a first access request to the first voice device.
[0118] In summary, in this embodiment, a first access request is sent to the first voice device. The first access request includes the identifier of any second voice device. The first access request enables the first voice device to generate an existing device identifier based on the devices of the second voice device pairs in each received first access request. This facilitates the first voice device in generating an existing device identifier.
[0119] In the above Figure 6 Based on the corresponding embodiments, in this embodiment of the application, before uploading the second voice packet to the first voice device in S504, the method further includes:
[0120] Send a second access request to the first voice device. The second access request includes the identifier of any second voice device. The second access request is used to enable the first voice device to update its existing device identifier based on the identifier of any second voice device.
[0121] In order to establish an upload connection with the first voice device and to send voice data to the first voice device, the second voice device needs to send a second access request to the first voice device, requesting to establish an upload connection with the first voice device.
[0122] In summary, in this embodiment, a second access request is sent to the first voice device. This second access request includes the identifier of any second voice device. The second access request enables the first voice device to update its existing device identifier based on the identifier of any second voice device. This establishes an upload connection between the second voice device and the first voice device.
[0123] In a voice data transmission system provided in this application embodiment, a first voice device is used to execute any method in the embodiment corresponding to the voice data transmission method applied to the first voice device, and each second voice device is used to execute any method in the embodiment corresponding to the voice data transmission method applied to the second voice device.
[0124] The following describes a voice data transmission apparatus, device, and storage medium provided in this application for implementation. The specific implementation process and technical effects are described above and will not be repeated below.
[0125] Figure 7 A schematic diagram of a voice data transmission device applied to a first voice device provided in an embodiment of this application is shown below. Figure 7 As shown, a first voice device is applied in a voice data transmission system. The voice data transmission system further includes: multiple second voice devices. The device includes:
[0126] The generation module 701 is used to generate a first voice packet based on the collected first voice data and the existing device identifier.
[0127] The first sending module 702 is used to send a first voice packet to multiple second voice devices via broadcast. The first voice packet is used to enable the target second voice device to decode the first voice packet, obtain and play the first voice data and the existing device identifier, and generate a second voice packet based on the identifier of the target second voice device and the collected second voice data when the existing device identifier includes the identifier of the target second voice device. The target second voice device is the voice device corresponding to any device identifier among the existing device identifiers of the multiple second voice devices.
[0128] The first receiving module 703 is used to receive the second voice packet uploaded by the target second voice device.
[0129] The first decoding module 704 is used to decode the second voice packet to obtain the second voice data.
[0130] The first playback module 705 is used to play the second audio data.
[0131] Furthermore, the playback module 705 is specifically used to perform compositing processing on the second voice data corresponding to at least two target second voice devices to obtain merged audio; and to play the merged audio.
[0132] Furthermore, the first receiving module 703 is also used to receive a first access request uploaded by each of the second voice devices, the first access request including: the identifier of each of the second voice devices.
[0133] Furthermore, the generation module 701 is also used to generate an existing device identifier based on the device identifier of each second voice device.
[0134] Furthermore, the first receiving module 703 is also used to receive a second access request sent by other second voice devices among a plurality of second voice devices, the second access request including: the identifier of the other second voice device;
[0135] Furthermore, the generation module 701 is also used to determine the voice device to be replaced from the target second voice devices that have been uploaded and connected if the number of target second voice devices that have been uploaded and connected reaches a preset threshold; and to replace and update the identifier of the voice device to be replaced in the identifier of the connected device based on the identifier of other second voice devices, so as to generate an updated connected device identifier.
[0136] Furthermore, the generation module 701 is also used to add the identifiers of other second voice devices to the existing device identifiers if the number of target second voice devices is less than a preset threshold.
[0137] Figure 8 A schematic diagram of a voice data transmission device applied to a second voice device provided in an embodiment of this application is shown below. Figure 8As shown, any second voice device is applied in a voice data transmission system, the voice data transmission system further includes: a first voice device, the device comprising:
[0138] The second receiving module 801 is used to receive the first voice packet broadcast by the first voice device. The first voice packet is a voice packet generated by the first voice device based on the collected first voice data and the existing device identifier.
[0139] The second decoding module 802 is used to decode the first voice packet to obtain the existing device identifier and the first voice data.
[0140] The second playback module 803 is used to play the first voice data if the existing device identifier includes the identifier of any second voice device, and to generate a second voice packet based on the identifier of any second voice device and the collected second voice data.
[0141] The second sending module 804 is used to upload a second voice packet to the first voice device. The second voice packet is used to enable the first voice device to decode the second voice packet, obtain the second voice data, and play the second voice data.
[0142] Furthermore, the second playback module 803 is also used to play the first voice data if the existing device identifier does not include the identifier of any second voice device.
[0143] Furthermore, the second sending module 804 is also used to send a first access request to the first voice device. The first access request includes the identifier of any second voice device. The second access request is used to enable the first voice device to generate an existing device identifier based on the devices of the second voice device pairs in each received first access request.
[0144] Furthermore, the second sending module 804 is also used to send a second access request to the first voice device. The second access request includes the identifier of any second voice device. The second access request is used to enable the first voice device to update the connected device identifier based on the identifier of any second voice device.
[0145] Figure 9 This is a schematic diagram of a voice device provided in an embodiment of this application. The voice device can be a device with processing, sending, and receiving functions. For example... Figure 9 As shown: The voice device includes: processor 901, transmitter 902, and receiver 903.
[0146] The processor 901 is connected to the transmitter 902 and receiver 903 via a bus communication connection. The receiver 903 is used to receive signals sent by other voice devices and transmit them to the processor 901. The processor 901 is used to execute the above-described method embodiment. The specific implementation and technical effects are similar and will not be described again here. The transmitter 902 is used to send the processing results of the processor 901 to other voice devices.
[0147] Optionally, the present invention also provides a program product, such as a computer-readable storage medium, including a program that, when executed by a processor, is used to perform the above-described method embodiments.
[0148] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0149] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0150] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0151] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
Claims
1. A voice data transmission method, characterized in that, A first voice device applied in a voice data transmission system, the voice data transmission system further comprising: a plurality of second voice devices, the method comprising: wherein the first voice device is a voice device corresponding to a conference host, and the plurality of second voice devices are voice devices corresponding to conference participants; A first voice packet is generated based on the collected first voice data and the existing device identifier; wherein, the existing device identifier is the device identifier determined by the first voice device according to the user instruction, and the second voice device corresponding to the existing device identifier is the device that the first voice device requests to send uplink voice data; The first voice packet is broadcast to the plurality of second voice devices. The first voice packet is used to enable the target second voice device to decode the first voice packet, obtain and play the first voice data and the existing device identifier, and generate a second voice packet based on the identifier of the target second voice device and the collected second voice data when the existing device identifier includes the identifier of the target second voice device. The target second voice device is the voice device corresponding to any device identifier among the existing device identifiers of the plurality of second voice devices. Receive the second voice packet uploaded by the target second voice device; The second voice packet is decoded to obtain the second voice data; Play the second voice data; Before generating the first voice packet based on the collected first voice data and the existing device identifier, the method further includes: Receive a first access request uploaded by each of the second voice devices, wherein the first access request includes: the identifier of each of the second voice devices; Based on the device identifier of each of the second voice devices, a portion of the device identifier of each of the second voice devices is added to the existing device identifier.
2. The method according to claim 1, characterized in that, If the number of the target second voice devices is at least two, then playing the second voice data includes: Perform a combination process on the second speech data corresponding to at least two of the target second speech devices to obtain a merged audio; Play the merged audio.
3. The method according to claim 1, characterized in that, The method further includes: Receive a second access request sent by other second voice devices among the plurality of second voice devices, wherein the second access request includes: the identifier of the other second voice device; If the number of target second voice devices that have been uploaded and connected reaches a preset threshold, then a voice device to be replaced is determined from the target second voice devices that have been uploaded and connected. Based on the identifiers of the other second voice devices, the identifier of the voice device to be replaced in the connected device identifiers is replaced and updated to generate an updated connected device identifier.
4. The method according to claim 3, characterized in that, The method further includes: If the number of target second voice devices that have been uploaded and connected is less than the preset threshold, then the identifiers of the other second voice devices are added to the identifiers of the connected devices.
5. A method for transmitting voice data, characterized in that, The method includes any second voice device applied in a voice data transmission system, wherein the voice data transmission system further includes a first voice device, and the method includes: wherein the first voice device is a voice device corresponding to the conference host, and the plurality of second voice devices are voice devices corresponding to the conference participants; The system receives a first voice packet broadcast by the first voice device. The first voice packet is a voice packet generated by the first voice device based on the collected first voice data and an existing device identifier. The existing device identifier is a device identifier determined by the first voice device according to user instructions, and the second voice device corresponding to the existing device identifier is the device that the first voice device requests to send uplink voice data. Decode the first voice packet to obtain the existing device identifier and the first voice data; If the existing device identifier includes the identifier of any of the second voice devices, then the first voice data is played, and a second voice packet is generated based on the identifier of any of the second voice devices and the collected second voice data; The second voice packet is uploaded to the first voice device, and the second voice packet is used to enable the first voice device to decode the second voice packet, obtain the second voice data, and play the second voice data; If the existing device identifier includes the identifier of any second voice device, then before playing the first voice data and generating the second voice packet based on the existing device identifier and the collected second voice data, the method further includes: Send a first access request to the first voice device. The first access request includes the identifier of any second voice device. The first access request is used to enable the first voice device to generate the existing device identifier based on the devices of the second voice device pairs in each of the received first access requests.
6. The method according to claim 5, characterized in that, The method further includes: If the existing device identifier does not include the identifier of any of the second voice devices, then the first voice data is played.
7. The method according to claim 6, characterized in that, Before uploading the second voice packet to the first voice device, the method further includes: A second access request is sent to the first voice device. The second access request includes the identifier of any of the second voice devices. The second access request is used to enable the first voice device to update the connected device identifier based on the identifier of any of the second voice devices.
8. A voice data transmission system, characterized in that, A first voice device and a plurality of second voice devices are communicatively connected; Wherein, the first voice device is used to perform the method described in any one of claims 1 to 4, and each second voice device is used to perform the method described in any one of claims 5 to 7.
Citation Information
Patent Citations
Voice processing method and device and computer storage medium
CN114495921A