Data transmission method, device and storage medium

文档序号:1492641 发布日期:2020-02-04 浏览:6次 中文

阅读说明:本技术 数据传输方法、装置及存储介质 (Data transmission method, device and storage medium ) 是由 陈国斌 方伟 于 2018-07-24 设计创作,主要内容包括:本申请提供一种数据传输方法、装置及存储介质,服务器可以根据第一终端所支持的至少一个第一语音格式,指定第一终端与第二终端进行语音业务数据传输时所使用的第二语音格式,并可以基于第二终端所支持的语音格式,转发第二终端支持的语音格式的语音业务数据给第二终端,以使第二终端可以正确解码所接收到的语音业务数据,实现了支持不同语音格式的终端之间、以及,支持多种语音格式的终端之间的语音业务数据的传输。(The application provides a data transmission method, a data transmission device and a storage medium, wherein a server can designate a second voice format used when a first terminal and a second terminal carry out voice service data transmission according to at least one first voice format supported by the first terminal, and can forward the voice service data in the voice format supported by the second terminal to the second terminal based on the voice format supported by the second terminal, so that the second terminal can correctly decode the received voice service data, and the transmission of the voice service data between terminals supporting different voice formats and between terminals supporting various voice formats is realized.)

1. A method of data transmission, comprising:

a first terminal sends a request message to a server, wherein the request message is used for requesting to send voice service data to at least one second terminal and indicating that the first terminal supports the transmission of the voice service data with the second terminal by using at least one first voice format;

the first terminal receives a response message sent by the server, wherein the response message is used for informing the first terminal that the voice service data is coded by using a second voice format when the first terminal sends the voice service data to the at least one second terminal; the second voice format is one of the at least one first voice format;

the first terminal encodes the voice service data by using the second voice format to obtain encoded voice service data;

and the first terminal sends the coded voice service data to the server, so that the server sends the coded voice service data to each second terminal according to the voice format supported by each second terminal.

2. The method according to claim 1, wherein the at least one first speech format comprises at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

3. The method according to claim 1 or 2, wherein the second voice format is a first voice format of the at least one first voice format, or wherein the second voice format is a first voice format supported by some or all of the at least one second terminal of the at least one first voice format.

4. A method of data transmission, comprising:

a server receives a request message sent by a first terminal, wherein the request message is used for the first terminal to request to send voice service data to at least one second terminal, and indicates that the first terminal supports the transmission of the voice service data with the second terminal by using at least one first voice format;

the server sends a response message to the first terminal, wherein the response message is used for informing the first terminal to encode the voice service data by using a second voice format when the voice service data is sent to the at least one second terminal; the second voice format is one of the at least one first voice format;

the server receives the coded voice service data sent by the first terminal, and the coded voice service data is coded by adopting the second voice format;

and the server sends the coded voice service data to each second terminal according to the voice format supported by each second terminal.

5. The method according to claim 4, wherein the at least one second terminal is one, and before the server sends the response message to the first terminal, the method further comprises:

the server sends the request message to the second terminal;

the server receives an initial response message sent by the second terminal, where the initial response message is used to notify the second terminal that the second terminal supports using a third voice format to perform voice service data transmission with the first terminal, and the third voice format is one of at least one fourth voice format supported by the second terminal;

when the third voice format is a voice format in the at least one first voice format, the server takes the third voice format as the second voice format and takes the initial response message as the response message; alternatively, the first and second electrodes may be,

and when the third voice format is not the voice format in the at least one first voice format, the server selects one voice format from the at least one first voice format as the second voice format, and generates the response message according to the second voice format.

6. The method according to claim 4, wherein the at least one second terminal is plural, and after the server sends the response message to the first terminal, the method further comprises:

the server sends the request message to each second terminal;

the server receives an initial response message sent by each second terminal, wherein the initial response message is used for notifying the second terminal to support the use of a third voice format for carrying out voice service data transmission with the first terminal, and the third voice format is one of at least one fourth voice format supported by the second terminal;

and the server records a third voice format corresponding to each second terminal.

7. The method according to claim 5 or 6, wherein the server sends the encoded voice service data to each of the second terminals according to the voice format supported by each of the second terminals, and comprises:

the server sends the coded voice service data to the second terminal when a third voice format corresponding to the second terminal is the same as the second voice format; alternatively, the first and second electrodes may be,

and when a third voice format corresponding to the second terminal is different from the second voice format, the server transcodes the coded voice service data according to the third voice format and sends the transcoded voice service data to the second terminal.

8. The method of claim 4, wherein there are a plurality of said at least one second terminals, each of said plurality of second terminals supporting a fourth voice format, and wherein before said server sends a response message to said first terminal, said method further comprises:

the server classifies the at least one second terminal according to a fourth voice format supported by each second terminal, and the voice formats supported by the second terminals in the same class are the same;

when the fourth voice format corresponding to the class with the largest number of terminals belongs to the at least one first voice format, the server takes the fourth voice format corresponding to the class with the largest number of terminals as the second voice format; or, when the fourth voice format corresponding to the class with the largest number of terminals does not belong to the at least one first voice format, the server selects one first voice format from the at least one first voice format as the second voice format;

the server sends a multicast notification message to a second terminal supporting the second voice format, wherein the multicast notification message is used for notifying the second terminal supporting the second voice format, and the server sends voice service data to the second terminal supporting the second voice format in a multicast mode;

and the server establishes a unicast channel for the second terminal which does not support the second voice format.

9. The method of claim 8, wherein the server sends the encoded voice service data to each of the second terminals according to a voice format supported by each of the second terminals, and comprises:

the server multicasts the coded voice service data to a second terminal supporting the second voice format;

and the server transcodes the coded voice service data according to a fourth voice format supported by a second terminal which does not support the second voice format, and sends the transcoded voice service data to the second terminal which does not support the second voice format through the unicast channel.

10. The method according to claim 4, wherein the at least one second terminal is plural, and at least one fourth voice format supported by each second terminal is the same as the at least one first voice format; before the server sends the encoded voice service data to each second terminal according to the voice format supported by each second terminal, the method further includes:

the server sends a multicast notification message to each second terminal, wherein the multicast notification message is used for notifying the second terminals, and the server sends voice service data to the second terminals in a multicast mode;

the server sends the coded voice service data to each second terminal according to the voice format supported by each second terminal, and the method comprises the following steps:

and when at least one fourth voice format supported by each second terminal is the same as the at least one first voice format, the server multicasts the coded voice service data to the at least one second terminal.

11. The method according to any one of claims 8-10, further comprising:

and the server acquires at least one fourth voice format supported by each second terminal.

12. The method according to any of claims 5-6 and 8-10, wherein the at least one first speech format or the at least one fourth speech format comprises at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

13. The method according to any of claims 4-6 and 8-10, wherein the second voice format is a first voice format of the at least one first voice format, or wherein the second voice format is one of the at least one first voice format supported by some or all of the at least one second terminal.

14. A method of data transmission, the method comprising:

a second terminal receives a request message sent by a server, wherein the request message is used for a first terminal to request to send voice service data to the second terminal and indicate that the first terminal supports the transmission of the voice service data with the second terminal by using at least one first voice format;

the second terminal selects a fourth voice format from at least one fourth voice format supported by the second terminal as a third voice format according to the at least one first voice format, wherein the third voice format is the same one of the at least one first voice format and the at least one fourth voice format, or the third voice format is one of the at least one fourth voice format;

and the second terminal sends an initial response message to the server, wherein the initial response message is used for informing the second terminal of supporting the voice service data transmission with the first terminal by using a third voice format.

15. The method of claim 14, further comprising:

when the third voice format is the same as the second voice format, the second terminal receives encoded voice service data sent by the server, where the encoded voice service data is voice service data encoded by the first terminal in the second voice format, the second voice format is a voice format used by the server to notify the first terminal that the voice service data is sent to the second terminal, and the second voice format is one of the at least one first voice format;

and the second terminal decodes the coded voice service data according to the third voice format.

16. The method of claim 14, further comprising:

when the third voice format is different from the second voice format, the second terminal receives transcoded voice service data sent by the server, the coded voice service data is voice service data coded by the first terminal in the second voice format, and the transcoded voice service data is voice service data obtained by transcoding the coded voice service data by the server according to the third voice format;

and the second terminal decodes the transcoded voice service data according to the third voice format.

17. The method according to any of claims 14-16, wherein the at least one first speech format or the at least one fourth speech format comprises at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

18. The method according to any of claims 15-16, wherein the second voice format is a first voice format of the at least one first voice format, or wherein the second voice format is a first voice format supported by some or all of the at least one second terminal of the at least one first voice format.

19. A method of data transmission, the method comprising:

and the second terminal reports at least one fourth voice format supported by the second terminal to the server.

20. The method according to claim 19, wherein when said at least one fourth speech format is one, the method further comprises:

when the fourth voice format is the same as the second voice format, the second terminal receives the coded voice service data sent by the server, the coded voice service data is the voice service data coded by the first terminal in the second voice format, the second voice format is the voice format used by the server to inform the first terminal that the voice service data is sent to the second terminal, and the second voice format is one of at least one first voice format supported by the first terminal;

and the second terminal decodes the coded voice service data according to the fourth voice format.

21. The method according to claim 19, wherein when said at least one fourth speech format is one, the method further comprises:

when the fourth voice format is different from the second voice format, the second terminal receives transcoded voice service data sent by the server, where the coded voice service data is voice service data coded by the first terminal in the second voice format, the second voice format is a voice format used by the server to notify the first terminal that the voice service data is sent to the second terminal, the second voice format is one of at least one first voice format supported by the first terminal, and the transcoded voice service data is voice service data obtained by transcoding the coded voice service data by the server according to the fourth voice format;

and the second terminal decodes the transcoded voice service data according to the fourth voice format.

22. The method according to claim 19, wherein the at least one fourth voice format is the same as the at least one first voice format supported by the first terminal, the method further comprising:

the second terminal receives the encoded voice service data sent by the server, where the encoded voice service data is the voice service data encoded by the first terminal in the second voice format, the second voice format is the voice format used by the server to notify the first terminal that the voice service data is sent to the second terminal, and the second voice format is one of the at least one first voice format;

and the second terminal decodes the coded voice service data according to the at least one fourth voice format.

23. The method according to any of claims 20-22, wherein the at least one first speech format or the at least one fourth speech format comprises at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

24. The method according to any of claims 20-22, wherein the second voice format is a first voice format of the at least one first voice format, or wherein the second voice format is a first voice format supported by some or all of the at least one second terminal of the at least one first voice format.

25. A terminal, characterized in that the terminal is a first terminal, the first terminal comprising:

a sending module, configured to send a request message to a server, where the request message is used to request to send voice service data to at least one second terminal, and indicate that the first terminal supports voice service data transmission with the second terminal using at least one first voice format;

a receiving module, configured to receive a response message sent by the server, where the response message is used to notify the first terminal that the voice service data is encoded using a second voice format when the first terminal sends the voice service data to the at least one second terminal; the second voice format is one of the at least one first voice format;

the processing module is used for coding the voice service data by using the second voice format to obtain coded voice service data;

the sending module is further configured to send the encoded voice service data to the server, so that the server sends the encoded voice service data to each second terminal according to the voice format supported by each second terminal.

26. The terminal of claim 25, wherein the at least one first voice format comprises at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

27. The terminal according to claim 25 or 26, wherein the second voice format is a first voice format of the at least one first voice format, or wherein the second voice format is a first voice format supported by some or all of the at least one second terminal in the at least one first voice format.

28. A server, characterized in that the server comprises:

a receiving module, configured to receive a request message sent by a first terminal, where the request message is used for the first terminal to request to send voice service data to at least one second terminal, and indicate that the first terminal supports voice service data transmission with the second terminal using at least one first voice format;

a sending module, configured to send a response message to the first terminal, where the response message is used to notify the first terminal that the voice service data is encoded using a second voice format when the first terminal sends the voice service data to the at least one second terminal; the second voice format is one of the at least one first voice format;

the receiving module is further configured to receive encoded voice service data sent by the first terminal, where the encoded voice service data is encoded in the second voice format;

and the processing module is further configured to send the encoded voice service data to each second terminal through the sending module according to the voice format supported by each second terminal.

29. The server according to claim 28, wherein the at least one second terminal is one;

the sending module is further configured to send the request message to the second terminal before sending a response message to the first terminal;

the receiving module is further configured to receive an initial response message sent by the second terminal, where the initial response message is used to notify the second terminal that the second terminal supports using a third voice format to perform voice service data transmission with the first terminal, and the third voice format is one of at least one fourth voice format supported by the second terminal;

the processing module is further configured to, when the third voice format is a voice format of the at least one first voice format, use the third voice format as the second voice format, and use the initial response message as the response message; or, when the third voice format is not a voice format of the at least one first voice format, selecting one voice format of the at least one first voice format as the second voice format, and generating the response message according to the second voice format.

30. The server according to claim 28, wherein the at least one second terminal is plural;

the sending module is further configured to send the request message to each of the second terminals after sending a response message to the first terminal;

the receiving module is further configured to receive an initial response message sent by each second terminal, where the initial response message is used to notify the second terminal that the second terminal supports using a third voice format to perform voice service data transmission with the first terminal, and the third voice format is one of at least one fourth voice format supported by the second terminal;

the processing module is further configured to record a third voice format corresponding to each second terminal.

31. The server according to claim 29 or 30, wherein the processing module is specifically configured to send the encoded voice service data to the second terminal through the sending module when a third voice format corresponding to the second terminal is the same as the second voice format; or when a third voice format corresponding to the second terminal is different from the second voice format, transcoding the coded voice service data according to the third voice format, and sending the transcoded voice service data to the second terminal through the sending module.

32. The server according to claim 28, wherein said at least one second terminal is plural, each of said second terminals supporting a fourth voice format;

the processing module is further configured to classify the at least one second terminal according to a fourth voice format supported by each second terminal before the sending module sends the response message to the first terminal, and when a class of fourth voice formats corresponding to a class with the largest number of terminals belongs to the at least one first voice format, use the class of fourth voice formats corresponding to the class with the largest number of terminals as the second voice format; or when the fourth voice format corresponding to the class with the largest number of terminals does not belong to the at least one first voice format, selecting one first voice format from the at least one first voice format as the second voice format, wherein the voice formats supported by the second terminals of the same class are the same;

the sending module is further configured to send a multicast notification message to a second terminal supporting the second voice format, where the multicast notification message is used to notify the second terminal supporting the second voice format, and the server sends voice service data to the second terminal supporting the second voice format in a multicast manner;

the processing module is further configured to establish a unicast channel for a second terminal that does not support the second voice format.

33. The server according to claim 32, wherein the processing module is specifically configured to multicast the encoded voice service data to a second terminal that supports the second voice format through the sending module, transcode the encoded voice service data according to a fourth voice format that is supported by the second terminal that does not support the second voice format, and send the transcoded voice service data to the second terminal that does not support the second voice format through the unicast channel through the sending module.

34. The server according to claim 28, wherein the at least one second terminal is plural, and at least one fourth voice format supported by each second terminal is the same as the at least one first voice format;

the sending module is further configured to send a multicast notification message to each second terminal before sending the encoded voice service data to the at least one second terminal, where the multicast notification message is used to notify the second terminal, and the server sends the voice service data to the second terminal in a multicast manner;

the processing module is specifically configured to multicast, by the sending module, the encoded voice service data to the at least one second terminal when the at least one fourth voice format supported by each second terminal is the same as the at least one first voice format.

35. The server according to any one of claims 32-34,

the processing module is further configured to obtain at least one fourth voice format supported by each second terminal.

36. The server according to any of claims 29-30, 32-34, wherein the at least one first voice format or the at least one fourth voice format comprises at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

37. The server according to any of claims 29-30 and 32-34, wherein the second voice format is a first voice format of the at least one first voice format, or wherein the second voice format is a first voice format supported by some or all of the at least one second terminal of the at least one first voice format.

38. A terminal, characterized in that the terminal is a second terminal, the second terminal comprising:

a receiving module, configured to receive a request message sent by a server, where the request message is used for a first terminal to request to send voice service data to a second terminal, and indicates that the first terminal supports voice service data transmission with the second terminal using at least one first voice format;

a processing module, configured to select, according to the at least one first voice format, one fourth voice format from at least one fourth voice format supported by the second terminal as a third voice format, where the third voice format is a same one of the at least one first voice format and the at least one fourth voice format, or the third voice format is one of the at least one fourth voice format;

a sending module, configured to send an initial response message to the server, where the initial response message is used to notify the second terminal that voice service data transmission with the first terminal using a third voice format is supported.

39. The terminal of claim 38, wherein the receiving module is further configured to receive encoded voice service data sent by the server when the third voice format is the same as a second voice format, where the encoded voice service data is voice service data that is encoded by the first terminal in the second voice format, the second voice format is a voice format that the server notifies the first terminal of being used when sending the voice service data to the second terminal, and the second voice format is one of the at least one first voice format;

the processing module is further configured to decode the encoded voice service data according to the third voice format.

40. The terminal of claim 38, wherein the receiving module is further configured to receive transcoded voice service data sent by the server when the third voice format is different from the second voice format, where the encoded voice service data is voice service data encoded by the first terminal in the second voice format, and the transcoded voice service data is voice service data transcoded by the server according to the third voice format;

and the processing module is further used for decoding the transcoded voice service data according to the third voice format.

41. The terminal according to any of claims 38-40, wherein the at least one first voice format or the at least one fourth voice format comprises at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

42. The terminal according to any of claims 39-40, wherein the second speech format is a first speech format of the at least one first speech format, or wherein the second speech format is a first speech format supported by some or all of the at least one second terminal of the at least one first speech format.

43. A terminal, characterized in that the terminal is a second terminal, the second terminal comprising:

and the sending module is used for reporting at least one fourth voice format supported by the second terminal to a server.

44. The terminal according to claim 43, wherein when the at least one fourth voice format is one, the terminal further comprises:

a receiving module, configured to receive, when the fourth voice format is the same as the second voice format, encoded voice service data sent by the server, where the encoded voice service data is voice service data that is encoded by the first terminal in the second voice format, the second voice format is a voice format that the server notifies the first terminal of being used when the server sends the voice service data to the second terminal, and the second voice format is one of at least one first voice format supported by the first terminal;

and the processing module is used for decoding the coded voice service data according to the fourth voice format.

45. The terminal according to claim 43, wherein when the at least one fourth voice format is one, the terminal further comprises:

a receiving module, configured to receive transcoded voice service data sent by the server when the fourth voice format is different from the second voice format, where the coded voice service data is voice service data that is coded by a first terminal in the second voice format, the second voice format is a voice format that the server notifies the first terminal of being used when the server sends the voice service data to the second terminal, the second voice format is one of at least one first voice format supported by the first terminal, and the transcoded voice service data is voice service data that is transcoded by the server according to the fourth voice format;

and the processing module is used for decoding the transcoded voice service data according to the fourth voice format.

46. The terminal according to claim 43, wherein the at least one fourth voice format is the same as the at least one first voice format supported by the first terminal, the terminal further comprising:

a receiving module, configured to receive encoded voice service data sent by the server, where the encoded voice service data is voice service data that is encoded by the first terminal in the second voice format, and the second voice format is a voice format that the server notifies the first terminal of sending the voice service data to the second terminal, and the second voice format is one of the at least one first voice format;

and the processing module is used for decoding the coded voice service data according to the at least one fourth voice format.

47. The terminal according to any of claims 44-46, wherein said at least one first speech format or said at least one fourth speech format comprises at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

48. The terminal according to any of claims 44-46, wherein the second speech format is a first speech format of the at least one first speech format, or wherein the second speech format is one of the at least one first speech format supported by some or all of the at least one second terminal in the at least one first speech format.

49. A computer-readable storage medium, in which program instructions are stored, which program instructions, when executed by a processor, implement the method of any of claims 1-3, 14-24.

50. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein program instructions, which when executed by a processor, implement the method of any of claims 4-13.

Technical Field

The present application relates to the field of communications technologies, and in particular, to a data transmission method, an apparatus, and a storage medium.

Background

A Voice over Long Term Evolution (VoLTE) solution is an Internet Protocol (IP) data transmission technology. By the technology, the LTE system can realize the unification of the data service and the voice service, namely the voice service and the data service can use the same network, and the conversation quality of the voice service is improved.

Currently, in a VoLTE scenario, some terminals only support an Adaptive Multi-Rate coding-Wideband (AMR-WB) speech format, some terminals only support an Adaptive Multi-Rate Narrowband (AMR-NB) speech format, and some terminals support the two speech formats. Therefore, how to perform voice service data transmission between terminals is an urgent problem to be solved.

Disclosure of Invention

The application provides a data transmission method, a data transmission device and a storage medium, which are used for enabling the transmission of voice service data between terminals supporting different voice formats and between terminals supporting multiple voice formats.

A first aspect of the present application provides a data transmission method, including:

a first terminal sends a request message to a server, wherein the request message is used for requesting to send voice service data to at least one second terminal and indicating that the first terminal supports the transmission of the voice service data with the second terminal by using at least one first voice format;

the first terminal receives a response message sent by the server, wherein the response message is used for informing the first terminal that the voice service data is coded by using a second voice format when the first terminal sends the voice service data to the at least one second terminal; the second voice format is one of the at least one first voice format;

the first terminal encodes the voice service data by using the second voice format to obtain encoded voice service data;

and the first terminal sends the coded voice service data to the server, so that the server sends the coded voice service data to each second terminal according to the voice format supported by each second terminal.

In one possible embodiment, the at least one first speech format includes at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

In a possible implementation manner, the second voice format is a first voice format in the at least one first voice format, or the second voice format is a first voice format supported by some or all of the at least one second terminal in the at least one first voice format.

A second aspect of the present application provides a data transmission method, including:

a server receives a request message sent by a first terminal, wherein the request message is used for the first terminal to request to send voice service data to at least one second terminal, and indicates that the first terminal supports the transmission of the voice service data with the second terminal by using at least one first voice format;

the server sends a response message to the first terminal, wherein the response message is used for informing the first terminal to encode the voice service data by using a second voice format when the voice service data is sent to the at least one second terminal; the second voice format is one of the at least one first voice format;

the server receives the coded voice service data sent by the first terminal, and the coded voice service data is coded by adopting the second voice format;

and the server sends the coded voice service data to each second terminal according to the voice format supported by each second terminal.

In a possible implementation manner, there is one second terminal, and before the server sends the response message to the first terminal, the method further includes:

the server sends the request message to the second terminal;

the server receives an initial response message sent by the second terminal, where the initial response message is used to notify the second terminal that the second terminal supports using a third voice format to perform voice service data transmission with the first terminal, and the third voice format is one of at least one fourth voice format supported by the second terminal;

when the third voice format is a voice format in the at least one first voice format, the server takes the third voice format as the second voice format and takes the initial response message as the response message; alternatively, the first and second electrodes may be,

and when the third voice format is not the voice format in the at least one first voice format, the server selects one voice format from the at least one first voice format as the second voice format, and generates the response message according to the second voice format.

In a possible implementation manner, the at least one second terminal is multiple, and after the server sends the response message to the first terminal, the method further includes:

the server sends the request message to each second terminal;

the server receives an initial response message sent by each second terminal, wherein the initial response message is used for notifying the second terminal to support the use of a third voice format for carrying out voice service data transmission with the first terminal, and the third voice format is one of at least one fourth voice format supported by the second terminal;

and the server records a third voice format corresponding to each second terminal.

In a possible implementation manner, the sending, by the server, the encoded voice service data to each second terminal according to the voice format supported by each second terminal includes:

the server sends the coded voice service data to the second terminal when a third voice format corresponding to the second terminal is the same as the second voice format; alternatively, the first and second electrodes may be,

and when a third voice format corresponding to the second terminal is different from the second voice format, the server transcodes the coded voice service data according to the third voice format and sends the transcoded voice service data to the second terminal.

In a possible implementation, the at least one second terminal is plural, each second terminal supports a fourth voice format, and before the server sends the response message to the first terminal, the method further includes:

the server classifies the at least one second terminal according to a fourth voice format supported by each second terminal, and the voice formats supported by the second terminals in the same class are the same;

when the fourth voice format corresponding to the class with the largest number of terminals belongs to the at least one first voice format, the server takes the fourth voice format corresponding to the class with the largest number of terminals as the second voice format; or, when the fourth voice format corresponding to the class with the largest number of terminals does not belong to the at least one first voice format, the server selects one first voice format from the at least one first voice format as the second voice format;

the server sends a multicast notification message to a second terminal supporting the second voice format, wherein the multicast notification message is used for notifying the second terminal supporting the second voice format, and the server sends voice service data to the second terminal supporting the second voice format in a multicast mode;

and the server establishes a unicast channel for the second terminal which does not support the second voice format.

In a possible implementation manner, the sending, by the server, the encoded voice service data to each second terminal according to the voice format supported by each second terminal includes:

the server multicasts the coded voice service data to a second terminal supporting the second voice format;

and the server transcodes the coded voice service data according to a fourth voice format supported by a second terminal which does not support the second voice format, and sends the transcoded voice service data to the second terminal which does not support the second voice format through the unicast channel.

In a possible embodiment, the at least one second terminal is plural, and at least one fourth voice format supported by each second terminal is the same as the at least one first voice format; before the server sends the encoded voice service data to each second terminal according to the voice format supported by each second terminal, the method further includes:

the server sends a multicast notification message to each second terminal, wherein the multicast notification message is used for notifying the second terminals, and the server sends voice service data to the second terminals in a multicast mode;

the server sends the coded voice service data to each second terminal according to the voice format supported by each second terminal, and the method comprises the following steps:

and when at least one fourth voice format supported by each second terminal is the same as the at least one first voice format, the server multicasts the coded voice service data to the at least one second terminal.

In one possible embodiment, the method further comprises:

and the server acquires at least one fourth voice format supported by each second terminal.

In one possible embodiment, the at least one first speech format or the at least one fourth speech format comprises at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

In a possible implementation manner, the second voice format is a first voice format in the at least one first voice format, or the second voice format is a first voice format supported by some or all of the at least one second terminal in the at least one first voice format.

A third aspect of the present application provides a data transmission method, including:

a second terminal receives a request message sent by a server, wherein the request message is used for a first terminal to request to send voice service data to the second terminal and indicate that the first terminal supports the transmission of the voice service data with the second terminal by using at least one first voice format;

the second terminal selects a fourth voice format from at least one fourth voice format supported by the second terminal as a third voice format according to the at least one first voice format, wherein the third voice format is the same one of the at least one first voice format and the at least one fourth voice format, or the third voice format is one of the at least one fourth voice format;

and the second terminal sends an initial response message to the server, wherein the initial response message is used for informing the second terminal of supporting the voice service data transmission with the first terminal by using a third voice format.

In one possible embodiment, the method further comprises:

when the third voice format is the same as the second voice format, the second terminal receives encoded voice service data sent by the server, where the encoded voice service data is voice service data encoded by the first terminal in the second voice format, the second voice format is a voice format used by the server to notify the first terminal that the voice service data is sent to the second terminal, and the second voice format is one of the at least one first voice format;

and the second terminal decodes the coded voice service data according to the third voice format.

In one possible embodiment, the method further comprises:

when the third voice format is different from the second voice format, the second terminal receives transcoded voice service data sent by the server, the coded voice service data is voice service data coded by the first terminal in the second voice format, and the transcoded voice service data is voice service data obtained by transcoding the coded voice service data by the server according to the third voice format;

and the second terminal decodes the transcoded voice service data according to the third voice format.

In one possible embodiment, the at least one first speech format or the at least one fourth speech format comprises at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

In a possible implementation manner, the second voice format is a first voice format in the at least one first voice format, or the second voice format is a first voice format supported by some or all of the at least one second terminal in the at least one first voice format.

A fourth aspect of the present application provides a data transmission method, including:

and the second terminal reports at least one fourth voice format supported by the second terminal to the server.

In a possible implementation, when the at least one fourth speech format is one, the method further includes:

when the fourth voice format is the same as the second voice format, the second terminal receives the coded voice service data sent by the server, the coded voice service data is the voice service data coded by the first terminal in the second voice format, the second voice format is the voice format used by the server to inform the first terminal that the voice service data is sent to the second terminal, and the second voice format is one of at least one first voice format supported by the first terminal;

and the second terminal decodes the coded voice service data according to the fourth voice format.

In a possible implementation, when the at least one fourth speech format is one, the method further includes:

when the fourth voice format is different from the second voice format, the second terminal receives transcoded voice service data sent by the server, where the coded voice service data is voice service data coded by the first terminal in the second voice format, the second voice format is a voice format used by the server to notify the first terminal that the voice service data is sent to the second terminal, the second voice format is one of at least one first voice format supported by the first terminal, and the transcoded voice service data is voice service data obtained by transcoding the coded voice service data by the server according to the fourth voice format;

and the second terminal decodes the transcoded voice service data according to the fourth voice format.

In a possible implementation, the at least one fourth voice format is the same as the at least one first voice format supported by the first terminal, and the method further includes:

the second terminal receives the encoded voice service data sent by the server, where the encoded voice service data is the voice service data encoded by the first terminal in the second voice format, the second voice format is the voice format used by the server to notify the first terminal that the voice service data is sent to the second terminal, and the second voice format is one of the at least one first voice format;

and the second terminal decodes the coded voice service data according to the at least one fourth voice format.

In one possible embodiment, the at least one first speech format or the at least one fourth speech format comprises at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

In a possible implementation manner, the second voice format is a first voice format in the at least one first voice format, or the second voice format is a first voice format supported by some or all of the at least one second terminal in the at least one first voice format.

A fifth aspect of the present application provides a terminal, where the terminal is a first terminal, and the first terminal includes:

a sending module, configured to send a request message to a server, where the request message is used to request to send voice service data to at least one second terminal, and indicate that the first terminal supports voice service data transmission with the second terminal using at least one first voice format;

a receiving module, configured to receive a response message sent by the server, where the response message is used to notify the first terminal that the voice service data is encoded using a second voice format when the first terminal sends the voice service data to the at least one second terminal; the second voice format is one of the at least one first voice format;

the processing module is used for coding the voice service data by using the second voice format to obtain coded voice service data;

the sending module is further configured to send the encoded voice service data to the server, so that the server sends the encoded voice service data to each second terminal according to the voice format supported by each second terminal.

In one possible embodiment, the at least one first speech format includes at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

In a possible implementation manner, the second voice format is a first voice format in the at least one first voice format, or the second voice format is a first voice format supported by some or all of the at least one second terminal in the at least one first voice format.

A sixth aspect of the present application provides a server, comprising:

a receiving module, configured to receive a request message sent by a first terminal, where the request message is used for the first terminal to request to send voice service data to at least one second terminal, and indicate that the first terminal supports voice service data transmission with the second terminal using at least one first voice format;

a sending module, configured to send a response message to the first terminal, where the response message is used to notify the first terminal that the voice service data is encoded using a second voice format when the first terminal sends the voice service data to the at least one second terminal; the second voice format is one of the at least one first voice format;

the receiving module is further configured to receive encoded voice service data sent by the first terminal, where the encoded voice service data is encoded in the second voice format;

and the processing module is further configured to send the encoded voice service data to each second terminal through the sending module according to the voice format supported by each second terminal.

In a possible embodiment, the at least one second terminal is one;

the sending module is further configured to send the request message to the second terminal before sending a response message to the first terminal;

the receiving module is further configured to receive an initial response message sent by the second terminal, where the initial response message is used to notify the second terminal that the second terminal supports using a third voice format to perform voice service data transmission with the first terminal, and the third voice format is one of at least one fourth voice format supported by the second terminal;

the processing module is further configured to, when the third voice format is a voice format of the at least one first voice format, use the third voice format as the second voice format, and use the initial response message as the response message; or, when the third voice format is not a voice format of the at least one first voice format, selecting one voice format of the at least one first voice format as the second voice format, and generating the response message according to the second voice format.

In a possible embodiment, the at least one second terminal is plural;

the sending module is further configured to send the request message to each of the second terminals after sending a response message to the first terminal;

the receiving module is further configured to receive an initial response message sent by each second terminal, where the initial response message is used to notify the second terminal that the second terminal supports using a third voice format to perform voice service data transmission with the first terminal, and the third voice format is one of at least one fourth voice format supported by the second terminal;

the processing module is further configured to record a third voice format corresponding to each second terminal.

In a possible implementation manner, the processing module is specifically configured to send the encoded voice service data to the second terminal through the sending module when a third voice format corresponding to the second terminal is the same as the second voice format; or when a third voice format corresponding to the second terminal is different from the second voice format, transcoding the coded voice service data according to the third voice format, and sending the transcoded voice service data to the second terminal through the sending module.

In a possible embodiment, there are a plurality of said at least one second terminals, each of said second terminals supporting a fourth voice format;

the processing module is further configured to classify the at least one second terminal according to a fourth voice format supported by each second terminal before the sending module sends the response message to the first terminal, and when a class of fourth voice formats corresponding to a class with the largest number of terminals belongs to the at least one first voice format, use the class of fourth voice formats corresponding to the class with the largest number of terminals as the second voice format; or when the fourth voice format corresponding to the class with the largest number of terminals does not belong to the at least one first voice format, selecting one first voice format from the at least one first voice format as the second voice format, wherein the voice formats supported by the second terminals of the same class are the same;

the sending module is further configured to send a multicast notification message to a second terminal supporting the second voice format, where the multicast notification message is used to notify the second terminal supporting the second voice format, and the server sends voice service data to the second terminal supporting the second voice format in a multicast manner;

the processing module is further configured to establish a unicast channel for a second terminal that does not support the second voice format.

In a possible implementation manner, the processing module is specifically configured to multicast the encoded voice service data to a second terminal that supports the second voice format through the sending module, transcode the encoded voice service data according to a fourth voice format that is supported by the second terminal that does not support the second voice format, and send the transcoded voice service data to the second terminal that does not support the second voice format through the unicast channel through the sending module.

In a possible embodiment, the at least one second terminal is plural, and at least one fourth voice format supported by each second terminal is the same as the at least one first voice format;

the sending module is further configured to send a multicast notification message to each second terminal before sending the encoded voice service data to the at least one second terminal, where the multicast notification message is used to notify the second terminal, and the server sends the voice service data to the second terminal in a multicast manner;

the processing module is specifically configured to multicast, by the sending module, the encoded voice service data to the at least one second terminal when the at least one fourth voice format supported by each second terminal is the same as the at least one first voice format.

In a possible implementation manner, the processing module is further configured to obtain at least one fourth voice format supported by each second terminal.

In one possible embodiment, the at least one first speech format or the at least one fourth speech format comprises at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

In a possible implementation manner, the second voice format is a first voice format in the at least one first voice format, or the second voice format is a first voice format supported by some or all of the at least one second terminal in the at least one first voice format.

A seventh aspect of the present application provides a terminal, where the terminal is a second terminal, and the second terminal includes:

a receiving module, configured to receive a request message sent by a server, where the request message is used for a first terminal to request to send voice service data to a second terminal, and indicates that the first terminal supports voice service data transmission with the second terminal using at least one first voice format;

a processing module, configured to select, according to the at least one first voice format, one fourth voice format from at least one fourth voice format supported by the second terminal as a third voice format, where the third voice format is a same one of the at least one first voice format and the at least one fourth voice format, or the third voice format is one of the at least one fourth voice format;

a sending module, configured to send an initial response message to the server, where the initial response message is used to notify the second terminal that voice service data transmission with the first terminal using a third voice format is supported.

In a possible implementation manner, the receiving module is further configured to receive, when the third voice format is the same as the second voice format, encoded voice service data sent by the server, where the encoded voice service data is voice service data that is encoded by the first terminal in the second voice format, the second voice format is a voice format that the server notifies the first terminal of being used when the first terminal sends the voice service data to the second terminal, and the second voice format is one of the at least one first voice format;

the processing module is further configured to decode the encoded voice service data according to the third voice format.

In a possible implementation manner, the receiving module is further configured to receive transcoded voice service data sent by the server when the third voice format is different from the second voice format, where the coded voice service data is voice service data that is coded by the first terminal in the second voice format, and the transcoded voice service data is voice service data that is transcoded by the server according to the third voice format;

and the processing module is further used for decoding the transcoded voice service data according to the third voice format.

In one possible embodiment, the at least one first speech format or the at least one fourth speech format comprises at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

In a possible implementation manner, the second voice format is a first voice format in the at least one first voice format, or the second voice format is a first voice format supported by some or all of the at least one second terminal in the at least one first voice format.

An eighth aspect of the present application provides a terminal, the terminal is a second terminal, the second terminal includes:

and the sending module is used for reporting at least one fourth voice format supported by the second terminal to a server.

In a possible implementation manner, when the at least one fourth voice format is one, the terminal further includes:

a receiving module, configured to receive, when the fourth voice format is the same as the second voice format, encoded voice service data sent by the server, where the encoded voice service data is voice service data that is encoded by the first terminal in the second voice format, the second voice format is a voice format that the server notifies the first terminal of being used when the server sends the voice service data to the second terminal, and the second voice format is one of at least one first voice format supported by the first terminal;

and the processing module is used for decoding the coded voice service data according to the fourth voice format.

In a possible implementation manner, when the at least one fourth voice format is one, the terminal further includes:

a receiving module, configured to receive transcoded voice service data sent by the server when the fourth voice format is different from the second voice format, where the coded voice service data is voice service data that is coded by a first terminal in the second voice format, the second voice format is a voice format that the server notifies the first terminal of being used when the server sends the voice service data to the second terminal, the second voice format is one of at least one first voice format supported by the first terminal, and the transcoded voice service data is voice service data that is transcoded by the server according to the fourth voice format;

and the processing module is used for decoding the transcoded voice service data according to the fourth voice format.

In a possible implementation, the at least one fourth voice format is the same as the at least one first voice format supported by the first terminal, and the terminal further includes:

a receiving module, configured to receive encoded voice service data sent by the server, where the encoded voice service data is voice service data that is encoded by the first terminal in the second voice format, and the second voice format is a voice format that the server notifies the first terminal of sending the voice service data to the second terminal, and the second voice format is one of the at least one first voice format;

and the processing module is used for decoding the coded voice service data according to the at least one fourth voice format.

In one possible embodiment, the at least one first speech format or the at least one fourth speech format comprises at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

In a possible implementation manner, the second voice format is a first voice format in the at least one first voice format, or the second voice format is a first voice format supported by some or all of the at least one second terminal in the at least one first voice format.

A ninth aspect of the present application provides a computer readable storage medium having stored thereon program instructions which, when executed by a processor, implement the method of any one of the first aspects.

A tenth aspect of the present application provides a computer readable storage medium having stored therein program instructions, which when executed by a processor, implement the method of any of the second aspects.

An eleventh aspect of the present application provides a computer readable storage medium having stored therein program instructions, which when executed by a processor, implement the method of any of the third aspects.

A twelfth aspect of the application provides a computer readable storage medium having stored therein program instructions, which when executed by a processor, implement the method of any of the fourth aspects.

According to the data transmission method, the data transmission device and the storage medium, the server can designate a second voice format used when the first terminal and the second terminal carry out voice service data transmission according to at least one first voice format supported by the first terminal, and can forward the voice service data in the voice format supported by the second terminal to the second terminal based on the voice format supported by the second terminal, so that the second terminal can correctly decode the received voice service data, and the transmission of the voice service data between the terminals supporting different voice formats and between the terminals supporting multiple voice formats is realized.

Drawings

In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.

Fig. 1 is a block diagram of a communication system to which the present application relates;

fig. 2 is a schematic flow chart of a data transmission method provided in the present application;

fig. 3 is a schematic flow chart of another data transmission method provided in the present application;

fig. 4 is a schematic flow chart of another data transmission method provided in the present application;

fig. 5 is a schematic flow chart of another data transmission method provided in the present application;

fig. 6 is a schematic structural diagram of a terminal provided in the present application;

FIG. 7 is a schematic diagram of a server according to the present application;

fig. 8 is a schematic structural diagram of another terminal provided in the present application;

fig. 9 is a schematic structural diagram of another terminal provided in the present application;

fig. 10 is a schematic structural diagram of another server provided in the present application.

Detailed Description

The technical solutions in the present application will be described clearly and completely with reference to the accompanying drawings in the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.

Fig. 1 is a block diagram of a communication system according to the present application. As shown in fig. 1, the communication system includes: the system comprises a first terminal, a server and at least one second terminal. The first terminal can perform voice service data transmission with the second terminal through the server. Fig. 1 is a schematic diagram, and the communication system may further include other devices (e.g., network devices, core network devices, etc.), which are not shown in fig. 1. In addition, the number of the second terminals is not limited in the present application.

The server may be any server capable of processing voice services, and the server may be a server independent from the core network and located behind the core network.

The first and second terminals may be wireless terminals or wired terminals, and a wireless terminal may refer to a device that provides voice and/or other service data connectivity to a user, a handheld device having wireless connection capability, or other processing device connected to a wireless modem. Wireless terminals, which may be mobile terminals such as mobile telephones (or "cellular" telephones) and computers having mobile terminals, such as portable, pocket, hand-held, computer-included, or vehicle-mounted mobile devices, may communicate with one or more core networks via a Radio Access Network (RAN), which may exchange language and/or data with the RAN. For example, Personal Communication Service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, Personal Digital Assistants (PDAs), and the like. A wireless Terminal may also be referred to as a system, a Subscriber Unit (Subscriber Unit), a Subscriber Station (Subscriber Station), a Mobile Station (Mobile), a Remote Station (Remote Station), a Remote Terminal (Remote Terminal), an access Terminal (access Terminal), a User Terminal (User Terminal), a User Agent (User Agent), and a User Equipment (User device User Equipment), which are not limited herein.

Taking the communication system shown in fig. 1 as an example, in a VoLTE scenario, some terminals only support the AMR-WB voice format, some terminals only support the AMR-NB voice format, and some terminals support the two voice formats. Therefore, how to perform voice service data transmission between terminals is an urgent problem to be solved.

In view of the above, the present application provides a data transmission method, so that voice service data can be transmitted between terminals supporting different voice formats and between terminals supporting multiple voice formats. It is understood that the data transmission method provided in the present application includes, but is not limited to, the above VoLTE scenario. Any scene related to voice service data transmission between terminals supporting different voice formats or supporting multiple voice formats can adopt the data transmission method provided by the application. In addition, the speech formats referred to in this application include, but are not limited to, the AMR-WB speech format, AMR-NB speech format described above. The AMR-WB voice format can support various voice transmission rates. If AMR-WB voice formats with different voice transmission rates are supported between the terminals, the terminals are considered to support different voice formats. For example, terminal 1 supports the AMR-WB speech format with the speech transmission rate 1, and terminal 2 supports the AMR-WB speech format with the speech transmission rate 2, it is considered that different speech formats are supported between terminal 1 and terminal 2.

The following takes AMR-WB voice format and AMR-NB voice format as examples, and the technical solution of the present application is explained in detail through specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.

Fig. 2 is a schematic flow chart of a data transmission method provided in the present application. In this embodiment, a process of performing voice service data transmission between terminals is described by taking an example that a first terminal calls at least one second terminal as a first terminal. The first terminal supports at least one first voice format, and the second terminal supports at least one fourth voice format. The at least one first speech format referred to herein may include, for example, at least one of: AMR-NB voice format, AMR-WB voice format, and the like. Accordingly, the at least one fourth speech format referred to herein may include, for example, at least one of: AMR-NB voice format, AMR-WB voice format, and the like. The at least one fourth voice format supported by each second terminal may be the same or different. In some embodiments, the first terminal may also be referred to as a calling terminal or a speaking terminal, and the second terminal may be referred to as a listening terminal or a called terminal.

As shown in fig. 2, the method includes:

s101, the first terminal sends a request message to the server.

The request message is used for the first terminal to request to send voice service data to at least one second terminal, and indicates that the first terminal supports voice service data transmission with the second terminal by using at least one first voice format.

For example, if the first terminal has already performed Session Initiation Protocol (SIP) pre-establishment with the server, the request message may be an invite message or a refer message in the SIP protocol, for example. If the first terminal does not perform SIP pre-establishment with the server, the request message may be an invite message in the SIP protocol, for example.

S102, the server sends a response message to the first terminal.

And the response message is used for informing the first terminal to use the second voice format to encode the voice service data when the first terminal sends the voice service data to at least one second terminal. Illustratively, when the request message is an invite message or a refer message in the SIP protocol, the response message may be a 200ok message in the SIP protocol.

Said second speech format is one of at least one first speech format. For example, the second voice format is any one of the at least one first voice format (e.g., a first voice format, a last voice format, etc.), or the second voice format is one of the at least one first voice format supported by some or all of the at least one second terminal. That is, the second voice format exists in at least one fourth voice format supported by part or all of the at least one second terminal.

S103, the first terminal encodes the voice service data by using the second voice format to obtain the encoded voice service data.

And S104, the first terminal sends the coded voice service data to the server.

And S105, the server sends the coded voice service data to the second terminal according to the voice format supported by the second terminal.

Fig. 2 is a schematic flow chart illustrating a second terminal. The number of the second terminals is not limited in this embodiment.

Specifically, for a second terminal supporting a second voice format, the server directly sends the encoded voice service data to the second terminal. For a second terminal that does not support the second voice format, the server may transcode the encoded voice service data according to the voice format supported by the second terminal when performing voice service data transmission with the first terminal, and send the transcoded voice service data to the second terminal. That is, the server may directly forward the voice service data to the second terminal according to the voice format supported by the second terminal, or forward the voice service data to the second terminal after transcoding, so as to ensure that the second terminal can correctly decode the received voice service data. By the method, the transmission of voice service data can be carried out between the terminals supporting different voice formats and between the terminals supporting various voice formats.

According to the data transmission method provided by the application, the server can designate a second voice format used when the first terminal and the second terminal carry out voice service data transmission according to at least one first voice format supported by the first terminal, and can forward the voice service data in the voice format supported by the second terminal to the second terminal based on the voice format supported by the second terminal, so that the second terminal can correctly decode the received voice service data, and the transmission of the voice service data between terminals supporting different voice formats and between terminals supporting various voice formats is realized.

As in the foregoing embodiment, the server may notify the first terminal that the voice service data is encoded using the second voice format when the voice service data is transmitted to the at least one second terminal by transmitting a response message to the first terminal. The method for determining the second voice format by the server may be determined according to a specific scenario, and specifically may include the following scenarios:

the first scenario is: at least one second terminal is one and the second terminal supports at least one fourth voice format. I.e. a scenario where the first terminal calls the second terminal only.

In this scenario, the server may determine the second voice format by interacting with the second terminal during the establishment of the single call service. Fig. 3 is a schematic flow chart of another data transmission method provided in the present application. As shown in fig. 3, before the step S102, the method may further include:

s201, the server sends a request message to the second terminal.

The request message may be a request message sent by the first terminal to the server.

S202, the second terminal selects a fourth voice format from at least one fourth voice format supported by the second terminal as a third voice format according to the at least one first voice format.

The third voice format is the same one of the at least one first voice format and the at least one fourth voice format, or the third voice format is one of the at least one fourth voice format. That is, when there is an intersection between at least one first speech format and at least one fourth speech format, one of the speech formats in the intersection may be selected as the third speech format. In the absence of an intersection between the at least one first speech format and the at least one fourth speech format, a fourth speech format of the at least one fourth speech format may be selected as the third speech format.

It is to be understood that, if the at least one fourth voice format supported by the second terminal only includes one fourth voice format, the second terminal may use the fourth voice format directly as the third voice format.

S203, the second terminal sends an initial response message to the server.

The initial response message is used for informing the second terminal that the second terminal supports the voice service data transmission with the first terminal by using the third voice format.

For example, when the request message is an invite message or a refer message in the SIP protocol, the initial response message may be a 200ok message in the SIP protocol.

S204, when the third voice format is one of the at least one first voice format, the server takes the third voice format as the second voice format and takes the initial response message as the response message, and when the third voice format is not one of the at least one first voice format, one voice format is selected from the at least one first voice format as the second voice format and generates the response message according to the second voice format.

When the third voice format is the voice format of the at least one first voice format, it indicates that the same voice format is supported between the first terminal and the second terminal, so the server can directly send the initial response message to the first terminal as the aforementioned response message, so as to instruct the first terminal to encode the voice service data using the third voice format when sending the voice service data to the second terminal through the message. That is, the third voice format is the second voice format.

Accordingly, since the second terminal supports using the second voice format, that is, the second terminal can correctly decode the voice service data encoded using the second voice format. Therefore, after the server receives the voice service data which is sent by the first terminal and coded by using the second voice format, the coded voice service data can be directly forwarded to the second terminal. In this way, after receiving the encoded voice service data, the second terminal may decode the encoded voice service data according to the third voice format (i.e., the second voice format).

When the third voice format is not the voice format in the at least one first voice format, it indicates that the voice formats supported by the first terminal and the second terminal are different, so that the server may select one voice format as the second voice format from the at least one first voice format supported by the first terminal, and generate a response message according to the second voice format and send the response message to the first terminal, so as to instruct, through the message, the first terminal to encode the voice service data using the second voice format when sending the voice service data to the second terminal. That is, the third speech format is not the second speech format.

Accordingly, since the second terminal does not support the use of the second voice format, that is, the second terminal cannot correctly decode the voice service data encoded using the second voice format. Therefore, after the server receives the voice service data which is sent by the first terminal and encoded by using the second voice format, the server can transcode the encoded voice service data according to the third voice format indicated by the initial response message through the second terminal and send the transcoded voice service data to the second terminal. Thus, after receiving the transcoded voice service data, the second terminal can decode the transcoded voice service data according to the third voice format.

By the method, in a scene that the first terminal singly calls the second terminal, the server can determine the second voice format used by the first terminal and the second terminal when the voice service data is transmitted by interacting with the second terminal, and can forward the voice service data in the voice format supported by the second terminal to the second terminal based on the voice format supported by the second terminal, so that the second terminal can correctly decode the received voice service data, and the transmission of the voice service data between terminals supporting different voice formats and between terminals supporting multiple voice formats is realized.

The second scenario is: the number of the at least one second terminal is multiple, the multiple second terminals do not perform SIP pre-establishment with the server, and each second terminal supports at least one fourth voice format. Namely, the first terminal group calls a plurality of second terminals, and the plurality of second terminals do not perform SIP pre-establishment with the server.

In this scenario, the server may select one first voice format as the second voice format from at least one first voice format supported by the first terminal after receiving the request message sent by the first terminal. For example, the server may treat a first one of the at least one first voice format as the second voice format. In this embodiment, at least one fourth voice format supported by each second terminal may be the same or different.

Fig. 4 is a schematic flowchart of another data transmission method provided in the present application. As shown in fig. 4, in this scenario, after the step S102, the method may further include:

s301, the server sends a request message to each second terminal.

The request message may be a request message sent by the first terminal to the server.

S302, the server receives an initial response message sent by each second terminal, wherein the initial response message is used for informing the second terminal that the second terminal supports the use of a third voice format for carrying out voice service data transmission with the first terminal, and the third voice format is one of at least one fourth voice format supported by the second terminal.

After receiving the request message sent by the server, each second terminal may perform the action shown in step S202, which is not described herein again.

S303, the server records a third voice format corresponding to each second terminal.

After receiving the voice service data encoded by using the second voice format and sent by the first terminal, the server may execute, according to the recorded third voice format corresponding to each second terminal, an operation of sending the voice service data to each second terminal:

for example, when the third voice format corresponding to the second terminal is the same as the second voice format, the server sends the encoded voice service data to the second terminal. Accordingly, after receiving the encoded voice service data, the second terminal may decode the encoded voice service data according to a third voice format (i.e., the second voice format).

Or, when the third voice format corresponding to the second terminal is different from the second voice format, the server transcodes the coded voice service data according to the third voice format and sends the transcoded voice service data to the second terminal. Correspondingly, after receiving the transcoded voice service data, the second terminal may decode the transcoded voice service data according to the third voice format.

By the method, in a scene that the first terminal group calls a plurality of second terminals, if the second terminals do not perform SIP pre-establishment with the server, the server can select one first voice format from at least one first voice format supported by the first terminal by itself to serve as a second voice format used when the first terminal performs voice service data transmission with the second terminal, and can forward the voice service data in the voice format to the second terminal based on the voice format reported by the second terminal, so that the second terminal can correctly decode the received voice service data, and the transmission of the voice service data between the terminals supporting different voice formats and between the terminals supporting a plurality of voice formats is realized.

The third scenario is: the number of the at least one second terminal is multiple, and the at least one second terminal is pre-established with the server through SIP. Wherein each second terminal supports a fourth voice format. That is, the first terminal group calls a plurality of second terminals, each second terminal supports a fourth voice format, and the plurality of second terminals and the server perform the SIP pre-established scenario.

In this scenario, after receiving the request message sent by the first terminal, the server may determine the second voice format according to at least one first voice format supported by the first terminal and a fourth voice format supported by each second terminal. Fig. 5 is a schematic flowchart of another data transmission method provided in the present application. As shown in fig. 5, before the step S102, the method may further include:

s401, the server classifies at least one second terminal according to a fourth voice format supported by each second terminal, and the voice formats supported by the second terminals in the same class are the same.

Illustratively, the at least one second terminal includes 4 terminals, which are respectively a second terminal a, a second terminal B, a second terminal C, and a second terminal D, where the fourth voice format supported by the second terminal a, the second terminal B, and the second terminal C is the same, and the fourth voice format supported by the second terminal D is different from the second terminal a, the second terminal B, and the second terminal C. The server may classify the second terminal a, the second terminal B, and the second terminal C into one class and the second terminal D into one class.

Optionally, before performing S401, the method may further include: the server acquires a fourth voice format supported by each second terminal. For example, the server may obtain the fourth voice format supported by each second terminal when performing SIP pre-establishment (e.g., a registration procedure or a login procedure) with each second terminal. For example, the server may send a request message to the second terminal to request to acquire the fourth voice format supported by the second terminal. The second terminal may send a response message to the server after receiving the request message. Wherein the response message may indicate a fourth voice format supported by the second terminal. The request message may be, for example, an invite message in the SIP protocol, and the response message may be, for example, a 200ok message in the SIP protocol.

S402, when the fourth voice format corresponding to the class with the largest number of terminals belongs to at least one first voice format, the server takes the fourth voice format corresponding to the class with the largest number of terminals as a second voice format; or when the fourth voice format corresponding to the class with the largest number of terminals does not belong to the at least one first voice format, the server selects one first voice format from the at least one first voice format as the second voice format.

Corresponding to the example in S401, when the fourth voice format supported by the second terminal a, the second terminal B, and the second terminal C also exists in at least one first voice format supported by the first terminal, the server may use the fourth voice format supported by the second terminal a, the second terminal B, and the second terminal C as the second voice format. When the fourth voice format supported by the second terminal a, the second terminal B, and the second terminal C does not exist in the at least one first voice format supported by the first terminal, the server may select one first voice format from the at least one first voice format supported by the first terminal as the second voice format.

And S403, the server sends a multicast notification message to the second terminal supporting the second voice format, where the multicast notification message is used to notify the second terminal supporting the second voice format, and the server sends voice service data to the second terminal supporting the second voice format in a multicast mode.

Accordingly, the second terminal supporting the second voice format may listen to the multicast channel after receiving the multicast notification message sent by the server.

In this scenario, after receiving the voice service data encoded in the second voice format and sent by the first terminal, the server may multicast the encoded voice service data to a second terminal supporting the second voice format. That is, the server may broadcast the encoded voice service data through the multicast channel, so that the second terminal supporting the second voice format receives the encoded voice service data from the multicast channel. Accordingly, after receiving the encoded voice service data, the second terminal supporting the second voice format may decode the encoded voice service data according to the second voice format.

S404, the server establishes a unicast channel for the second terminal which does not support the second voice format.

The execution sequence of steps S403 and S404 may not be sequential. For example, S403 may be executed first and then S404 may be executed, S404 may be executed first and then S403 may be executed, or both may be executed.

In this scenario, after receiving the voice service data encoded in the second voice format and sent by the first terminal, the server may transcode the encoded voice service data according to a fourth voice format supported by the second terminal that does not support the second voice format, and send the transcoded voice service data to the second terminal that does not support the second voice format through a unicast channel.

Correspondingly, after receiving the transcoded voice service data, the second terminal which does not support the second voice format can decode the transcoded voice service data according to the fourth voice format supported by the second terminal.

By the method, in the scene that the first terminal group calls a plurality of second terminals, if the second terminals have SIP pre-established with the server and each second terminal only supports a fourth voice format, the server may determine a second voice format used when the first terminal performs voice service data transmission with the second terminal according to a fourth voice format supported by the second terminal and at least one first voice format supported by the first terminal, and may determine a voice format of voice service data transmitted to the second terminal based on whether the second terminal supports the second voice format, and a sending mode, so that the second terminal can correctly decode the received voice service data, and the transmission of the voice service data between terminals supporting different voice formats and between terminals supporting multiple voice formats is realized.

The fourth scenario is as follows: the number of the at least one second terminal is multiple, and the at least one second terminal is pre-established with the server through SIP. And each second terminal supports at least one fourth voice format, and the at least one fourth voice format supported by each second terminal is the same as the at least one first voice format supported by the first terminal. That is, the first terminal group calls a plurality of second terminals, at least one fourth voice format supported by each second terminal is the same as at least one first voice format supported by the first terminal, and the plurality of second terminals and the server perform a SIP pre-established scenario.

In this scenario, after receiving the request message sent by the first terminal, the server may determine whether at least one fourth voice format supported by each second terminal is the same as at least one first voice format supported by the first terminal according to at least one first voice format supported by the first terminal and at least one fourth voice format supported by each second terminal. When the first voice format is the same as the second voice format, the server can select one first voice format from at least one first voice format supported by the first terminal as the second voice format. For example, the server may treat a first one of the at least one first voice format as the second voice format.

Optionally, before determining whether the at least one fourth voice format supported by each second terminal is the same as the at least one first voice format supported by the first terminal according to the at least one first voice format supported by the first terminal and the at least one fourth voice format supported by each second terminal, the server may further obtain the fourth voice format supported by each second terminal, and a specific implementation manner may refer to the foregoing description about obtaining the fourth voice format supported by the second terminal, which is not described herein again.

Since at least one fourth voice format supported by each second terminal is the same as at least one first voice format supported by the first terminal, it is described that the second terminal can correctly decode the voice service data regardless of which voice format the first terminal employs to transmit the voice service data to the second terminal. Therefore, the server may send a multicast notification message to each second terminal, where the multicast notification message is used to notify the second terminals, and the server sends the voice service data to the second terminals in a multicast manner.

In this way, after the server receives the voice service data encoded by using the second voice format and sent by the first terminal, the encoded voice service data can be directly multicast (also referred to as broadcast) to each second terminal through a multicast channel. Correspondingly, after receiving the encoded voice service data multicast by the server, the second terminal may decode the encoded voice service data according to at least one fourth voice format supported by the second terminal. That is, the second terminal may adaptively adjust the voice format of the decoder according to at least one fourth voice format supported by the second terminal and the frame format in the voice service data, so as to decode the encoded voice service data.

Through the method, in a scenario that the first terminal group calls a plurality of second terminals, if the second terminals are pre-established with the server in an SIP mode and at least one fourth voice format supported by each second terminal is the same as at least one first voice format supported by the first terminal, the server can designate a second voice format used when the first terminal and the second terminal perform voice service data transmission according to the at least one first voice format supported by the first terminal, and directly multicast the encoded voice service data to each second terminal after receiving the encoded voice service data sent by the first terminal, so that the second terminal can adaptively decode the received voice service data, and the transmission of the voice service data among the terminals supporting a plurality of voice formats is realized.

In addition, in the scenario of group calling multiple second terminals (i.e. the second scenario to the fourth scenario), when the first terminal of the group calling multiple second terminals changes, the new first terminal may flexibly realize group calling of the multiple second terminals through the above procedure.

According to the data transmission method provided by the application, the server can designate a second voice format used when the first terminal and the second terminal carry out voice service data transmission according to at least one first voice format supported by the first terminal, and can forward the voice service data in the voice format supported by the second terminal to the second terminal based on the voice format supported by the second terminal, so that the second terminal can correctly decode the received voice service data, and the transmission of the voice service data between terminals supporting different voice formats and between terminals supporting various voice formats is realized.

It is understood that, although the above embodiments all take AMR-WB voice format and AMR-NB voice format as examples, the data transmission method provided by the present application is illustrated and described. However, it can be understood by those skilled in the art that, when the terminals support AMR-WB speech formats with different speech transmission rates (that is, support different speech formats), or when the terminals support AMR-WB speech formats with multiple speech transmission rates (that is, support multiple speech formats), the method can also be used to implement transmission of speech service data between the terminals, and the implementation principle and technical effect are similar, and are not described herein again.

Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.

Fig. 6 is a schematic structural diagram of a terminal provided in the present application. The terminal may be the first terminal in the foregoing embodiments. As shown in fig. 6, the first terminal includes: a sending module 11, a receiving module 12 and a processing module 13. Wherein the content of the first and second substances,

a sending module 11, configured to send a request message to a server, where the request message is used to request to send voice service data to at least one second terminal, and indicate that the first terminal supports voice service data transmission with the second terminal using at least one first voice format;

a receiving module 12, configured to receive a response message sent by the server, where the response message is used to notify the first terminal that the voice service data is encoded using a second voice format when the first terminal sends the voice service data to the at least one second terminal; the second voice format is one of the at least one first voice format;

the processing module 13 is configured to encode the voice service data using the second voice format to obtain encoded voice service data;

the sending module 11 is further configured to send the encoded voice service data to the server, so that the server sends the encoded voice service data to each second terminal according to the voice format supported by each second terminal.

Optionally, the at least one first voice format includes at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

Optionally, the second voice format is a first voice format in the at least one first voice format, or the second voice format is a first voice format supported by a part or all of the at least one second terminal in the at least one first voice format.

The terminal provided by the present application may execute the action of the first terminal in the foregoing method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.

Fig. 7 is a schematic structural diagram of a server provided in the present application. The server may be the server in the foregoing embodiments. As shown in fig. 7, the server includes: a receiving module 21, a sending module 22 and a processing module 23. Wherein the content of the first and second substances,

a receiving module 21, configured to receive a request message sent by a first terminal, where the request message is used for the first terminal to request to send voice service data to at least one second terminal, and indicate that the first terminal supports voice service data transmission with the second terminal by using at least one first voice format;

a sending module 22, configured to send a response message to the first terminal, where the response message is used to notify the first terminal that the voice service data is encoded using a second voice format when the first terminal sends the voice service data to the at least one second terminal; the second voice format is one of the at least one first voice format;

the receiving module 21 is further configured to receive encoded voice service data sent by the first terminal, where the encoded voice service data is encoded in the second voice format;

the processing module 23 is further configured to send, according to the voice format supported by each second terminal, the encoded voice service data to each second terminal through the sending module 22.

Optionally, the at least one first voice format or the at least one fourth voice format includes at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

Optionally, the second voice format is a first voice format in the at least one first voice format, or the second voice format is a first voice format supported by a part or all of the at least one second terminal in the at least one first voice format.

When there is one second terminal, the sending module 22 is further configured to send the request message to the second terminal before sending a response message to the first terminal; the receiving module 21 is further configured to receive an initial response message sent by the second terminal, where the initial response message is used to notify the second terminal that the second terminal supports using a third voice format to perform voice service data transmission with the first terminal, and the third voice format is one of at least one fourth voice format supported by the second terminal; the processing module 23 is further configured to, when the third voice format is a voice format of the at least one first voice format, regard the third voice format as the second voice format, and regard the initial response message as the response message; or, when the third voice format is not a voice format of the at least one first voice format, selecting one voice format of the at least one first voice format as the second voice format, and generating the response message according to the second voice format.

In this implementation manner, the processing module 23 is specifically configured to send the encoded voice service data to the second terminal through the sending module 22 when a third voice format corresponding to the second terminal is the same as the second voice format; or, when a third voice format corresponding to the second terminal is different from the second voice format, transcoding the encoded voice service data according to the third voice format, and sending the transcoded voice service data to the second terminal through the sending module 22.

When there are multiple second terminals, the sending module 22 is further configured to send a response message to the first terminal, and then send the request message to each of the second terminals; the receiving module 21 is further configured to receive an initial response message sent by each second terminal, where the initial response message is used to notify the second terminal that the second terminal supports using a third voice format to perform voice service data transmission with the first terminal, and the third voice format is one of at least one fourth voice format supported by the second terminal; the processing module 23 is further configured to record a third voice format corresponding to each second terminal.

In this implementation manner, the processing module 23 is specifically configured to send the encoded voice service data to the second terminal through the sending module 22 when a third voice format corresponding to the second terminal is the same as the second voice format; or, when a third voice format corresponding to the second terminal is different from the second voice format, transcoding the encoded voice service data according to the third voice format, and sending the transcoded voice service data to the second terminal through the sending module 22.

When the at least one second terminal is multiple and each second terminal supports a fourth voice format, the processing module 23 is further configured to classify the at least one second terminal according to the fourth voice format supported by each second terminal before the sending module 22 sends the response message to the first terminal, and when the fourth voice format corresponding to the class with the largest number of terminals belongs to the at least one first voice format, use the fourth voice format corresponding to the class with the largest number of terminals as the second voice format; or when the fourth voice format corresponding to the class with the largest number of terminals does not belong to the at least one first voice format, selecting one first voice format from the at least one first voice format as the second voice format, wherein the voice formats supported by the second terminals of the same class are the same; the sending module 22 is further configured to send a multicast notification message to the second terminal supporting the second voice format, where the multicast notification message is used to notify the second terminal supporting the second voice format, and the server sends voice service data to the second terminal supporting the second voice format in a multicast manner; the processing module 23 is further configured to establish a unicast channel for a second terminal that does not support the second voice format.

In this implementation manner, the processing module 23 is specifically configured to multicast the encoded voice service data to a second terminal that supports the second voice format through the sending module 22, transcode the encoded voice service data according to a fourth voice format that is supported by the second terminal that does not support the second voice format, and send the transcoded voice service data to the second terminal that does not support the second voice format through the unicast channel through the sending module 22.

In this implementation, the processing module 23 is further configured to obtain at least one fourth voice format supported by each second terminal.

When the at least one second terminal is multiple and at least one fourth voice format supported by each second terminal is the same as the at least one first voice format, the sending module 22 is further configured to send a multicast notification message to each second terminal before sending the encoded voice service data to the at least one second terminal, where the multicast notification message is used to notify the second terminal, and the server sends the voice service data to the second terminal in a multicast manner; the processing module 23 is specifically configured to multicast, by the sending module 22, the encoded voice service data to the at least one second terminal when the at least one fourth voice format supported by each second terminal is the same as the at least one first voice format.

In this implementation, the processing module 23 is further configured to obtain at least one fourth voice format supported by each second terminal.

The server provided by the application can execute the actions of the server in the above method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.

Fig. 8 is a schematic structural diagram of another terminal provided in the present application. The terminal may be the second terminal in the foregoing embodiments. As shown in fig. 8, the second terminal includes: a receiving module 31, a processing module 32 and a transmitting module 33. Wherein the content of the first and second substances,

a receiving module 31, configured to receive a request message sent by a server, where the request message is used for a first terminal to request to send voice service data to a second terminal, and indicates that the first terminal supports voice service data transmission with the second terminal by using at least one first voice format;

a processing module 32, configured to select, according to the at least one first voice format, a fourth voice format from at least one fourth voice format supported by the second terminal as a third voice format, where the third voice format is a same one of the at least one first voice format and the at least one fourth voice format, or the third voice format is one of the at least one fourth voice format;

a sending module 33, configured to send an initial response message to the server, where the initial response message is used to notify the second terminal that voice service data transmission with the first terminal using a third voice format is supported.

Optionally, the receiving module 31 is further configured to receive, when the third voice format is the same as the second voice format, coded voice service data sent by the server, where the coded voice service data is voice service data that is coded by the first terminal in the second voice format, the second voice format is a voice format that the server notifies the first terminal of being used when sending the voice service data to the second terminal, and the second voice format is one of the at least one first voice format; the processing module 32 is further configured to decode the encoded voice service data according to the third voice format.

Optionally, the receiving module 31 is further configured to receive transcoded voice service data sent by the server when the third voice format is different from the second voice format, where the coded voice service data is voice service data that is coded by the first terminal in the second voice format, and the transcoded voice service data is voice service data that is transcoded by the server according to the third voice format; the processing module 32 is further configured to decode the transcoded voice service data according to the third voice format.

Optionally, the at least one first voice format or the at least one fourth voice format includes at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

Optionally, the second voice format is a first voice format in the at least one first voice format, or the second voice format is a first voice format supported by a part or all of the at least one second terminal in the at least one first voice format.

With continued reference to fig. 8, in another implementation manner of the present application, another second terminal is provided, and the second terminal may perform the following operations:

a sending module 33, configured to report, to the server, at least one fourth voice format supported by the second terminal.

Optionally, when the at least one fourth voice format is one, the receiving module 31 is configured to receive, when the fourth voice format is the same as a second voice format, coded voice service data sent by the server, where the coded voice service data is voice service data that is coded by a first terminal in the second voice format, the second voice format is a voice format that the server notifies the first terminal of the fact that the first terminal is sending the voice service data to the second terminal, and the second voice format is one of at least one first voice format supported by the first terminal; and a processing module 32, configured to decode the encoded voice service data according to the fourth voice format.

Optionally, when the at least one fourth voice format is one, the receiving module 31 is configured to receive transcoded voice service data sent by the server when the fourth voice format is different from the second voice format, where the encoded voice service data is voice service data that is encoded by a first terminal in the second voice format, the second voice format is a voice format that the server notifies the first terminal of the use when the first terminal sends the voice service data to the second terminal, the second voice format is one of at least one first voice format supported by the first terminal, and the transcoded voice service data is voice service data that is transcoded by the server according to the fourth voice format; and the processing module 32 is configured to decode the transcoded voice service data according to the fourth voice format.

Optionally, when the at least one fourth voice format is the same as the at least one first voice format supported by the first terminal, the receiving module 31 is configured to receive encoded voice service data sent by the server, where the encoded voice service data is voice service data that is encoded by the first terminal in the second voice format, the second voice format is a voice format that is used when the server notifies the first terminal of sending the voice service data to the second terminal, and the second voice format is one of the at least one first voice format; a processing module 32, configured to decode the encoded voice service data according to the at least one fourth voice format.

Optionally, the at least one first voice format or the at least one fourth voice format includes at least one of:

adaptive multi-rate coding-narrowband AMR-NB speech format, adaptive multi-rate coding-wideband AMR-WB speech format.

Optionally, the second voice format is a first voice format in the at least one first voice format, or the second voice format is a first voice format supported by a part or all of the at least one second terminal in the at least one first voice format.

The terminal provided by the present application may execute the action of the second terminal in the foregoing method embodiment, and the implementation principle and the technical effect are similar, which are not described herein again.

It should be noted that the above sending module may be a sender when actually implemented, and the receiving module may be a receiver when actually implemented. The processing module can be realized in the form of software called by the processing element; or may be implemented in hardware. For example, the processing module may be a processing element that is set up separately, or may be implemented by being integrated into a chip of the apparatus, or may be stored in a memory of the apparatus in the form of program code, and the function of the processing unit may be called and executed by a processing element of the apparatus. In addition, all or part of the units can be integrated together or can be independently realized. The processing element described herein may be an integrated circuit having signal processing capabilities. In implementation, the steps of the method or the units above may be implemented by hardware integrated logic circuits in a processor element or instructions in software.

For example, the above units may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when some of the above units are implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor that can call the program code. As another example, these units may be integrated together and implemented in the form of a system-on-a-chip (SOC).

Fig. 9 is a schematic structural diagram of another terminal provided in the present application. As shown in fig. 9, the terminal may include: a processor 41 (e.g., CPU), a memory 42, a receiver 43, a transmitter 44; both the receiver 43 and the transmitter 44 are coupled to the processor 41, the processor 41 controlling the receiving action of the receiver 43, the processor 41 controlling the transmitting action of the transmitter 44; the memory 42 may include a random-access memory (RAM) and a non-volatile memory (NVM), such as at least one disk memory, and the memory 42 may store various instructions for performing various processing functions and implementing the method steps of the present application. Optionally, the terminal related to the present application may further include: a power supply 45, a communication bus 46, and a communication port 47. The receiver 43 and the transmitter 44 may be integrated in the transceiver of the terminal or may be separate transceiving antennas on the terminal. The communication bus 46 is used to enable communication connections between the elements. The communication port 47 is used for realizing connection and communication between the terminal and other peripherals.

In the present application, the memory 44 is used for storing computer executable program code, which includes instructions; when the processor 41 executes the instruction, the instruction causes the processor 41 of the terminal to execute the processing action of the terminal (e.g., the first terminal or the second terminal) in the above-mentioned method embodiment, causes the receiver 43 to execute the receiving action of the terminal (e.g., the first terminal or the second terminal) in the above-mentioned method embodiment, and causes the transmitter 44 to execute the transmitting action of the terminal (e.g., the first terminal or the second terminal) in the above-mentioned method embodiment, which is similar in implementation principle and technical effect and is not described herein again.

Fig. 10 is a schematic structural diagram of another server provided in the present application. As shown in fig. 10, the server may include: a processor 51 (e.g., CPU), a memory 52; the memory 52 may include a random-access memory (RAM) and a non-volatile memory (NVM), such as at least one disk memory, and the memory 52 may store various instructions for performing various processing functions and implementing the method steps of the present application. Optionally, the server related to the present application may further include: a power supply 53, a communication bus 54, and a communication port 55. The communication bus 54 is used to implement communication connections between the elements. The communication port 55 is used for connection and communication between the server and other peripherals.

In the present application, the memory 52 is used for storing computer executable program code, which includes instructions; when the processor 51 executes the instruction, the instruction causes the processor 51 of the server to execute the actions of the server in the above method embodiments, which implement similar principles and technical effects, and are not described herein again.

The present application also provides a storage medium comprising: a readable storage medium and a computer program stored on the readable storage medium, the computer program being for implementing the data transmission method described in the above embodiments.

The present application also provides a computer program product containing instructions which, when run on a computer, cause the computer to perform the above-described data transmission method.

The foregoing is a preferred embodiment of the present application, which is not intended to be limiting in any way, and any simple modifications, equivalent variations and modifications made to the foregoing embodiment according to the technical spirit of the present application are within the scope of the present application.

Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

36页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:DDOS大流量防御架构

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类