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

文档序号:439817 发布日期:2021-12-24 浏览:24次 中文

阅读说明:本技术 一种语音数据传输方法、装置、电子设备及存储介质 (Voice data transmission method and device, electronic equipment and storage medium ) 是由 李顺福 苟文君 于 2021-09-29 设计创作,主要内容包括:本申请涉及一种语音数据传输方法、装置、电子设备及存储介质,应用于M2M模块,所述M2M模块与目标设备之间基于PCIE接口建立了通信通道,当检测到所述目标设备与对端设备已建立通话连接的情况下,获取所述对端设备发送的第一语音数据,通过所述通信通道将所述第一语音数据发送给所述目标设备;以及,当检测到所述目标设备与对端设备已建立通话连接的情况下,通过所述通信通道获取所述目标设备的第二语音数据,将所述第二语音数据发送给所述对端设备。即,本申请中,在M2M模块与目标设备之间基于PCIE接口建立了通信通道,通过该通信通道即可实现目标设备与对端设备之间的语音数据传输,从而避免增加额外的硬件设备,节省硬件成本。(The application relates to a voice data transmission method, a voice data transmission device, electronic equipment and a storage medium, which are applied to an M2M module, wherein a communication channel is established between the M2M module and target equipment based on a PCIE interface, when the situation that the target equipment and opposite equipment establish a communication connection is detected, first voice data sent by the opposite equipment is obtained, and the first voice data is sent to the target equipment through the communication channel; and when detecting that the target device and the opposite terminal device establish a call connection, acquiring second voice data of the target device through the communication channel, and sending the second voice data to the opposite terminal device. That is, in the present application, a communication channel is established between the M2M module and the target device based on the PCIE interface, and the voice data transmission between the target device and the peer device can be realized through the communication channel, so that an additional hardware device is avoided, and the hardware cost is saved.)

1. A voice data transmission method is applied to an M2M module, a communication channel is established between the M2M module and a target device based on a PCIE interface, and the method comprises the following steps:

when detecting that the target device and the opposite terminal device establish a call connection, acquiring first voice data sent by the opposite terminal device, and sending the first voice data to the target device through the communication channel;

and the number of the first and second groups,

and when detecting that the target equipment and the opposite terminal equipment establish a call connection, acquiring second voice data of the target equipment through the communication channel, and sending the second voice data to the opposite terminal equipment.

2. The method of claim 1, wherein the M2M module comprises a wireless decoding side and an application processing side, and wherein the communication channel comprises a first sub-channel;

the obtaining first voice data sent by the opposite terminal device and sending the first voice data to the target device through the communication channel includes:

detecting whether the target device opens the first subchannel;

under the condition that the target device is detected to open the first sub-channel, the wireless decoding side acquires the first voice data sent by the opposite terminal device, so that the wireless decoding side sends the first voice data to the application processing side;

and obtaining the first voice data sent by the wireless decoding side by running a recording process on the application processing side, so that the application processing side sends the first voice data to the target equipment through the first sub-channel.

3. The method of claim 2, further comprising:

detecting whether the target device closes the first subchannel;

under the condition that the target equipment is detected to close the first sub-channel, closing the recording process;

detecting whether a call process is finished or not under the condition that the target device is not detected to close the first sub-channel;

and closing the recording process under the condition of detecting that the call process is ended.

4. The method of claim 1, wherein the M2M module comprises a wireless decoding side and an application processing side, and wherein the communication channel further comprises a second sub-channel;

the obtaining second voice data of the target device through the communication channel and sending the second voice data to the opposite terminal device includes:

detecting whether the target device opens the second subchannel;

under the condition that the target device is detected to open the second sub-channel, reading the second voice data sent by the target device through the second sub-channel through the application processing side;

and sending the second voice data to the wireless decoding side by running a playing process on the application processing side so that the wireless decoding side sends the second voice data to the opposite terminal equipment.

5. The method of claim 4, further comprising:

detecting whether the target device closes the second subchannel;

closing the playing process under the condition that the target device is detected to close the second sub-channel;

detecting whether the call process is finished or not under the condition that the target equipment is not detected to close the second sub-channel;

and closing the playing process under the condition of detecting that the conversation process is ended.

6. The method of claim 1, wherein the M2M module comprises a wireless decoding side and an application processing side, and wherein the communication channel comprises a third sub-channel;

the method further comprises the following steps:

acquiring instruction information sent by the target device through the third subchannel through the application processing side so that the application processing side sends the instruction information to the wireless decoding side, wherein the instruction information comprises a call identifier of the opposite terminal device;

when detecting that the wireless decoding side receives the instruction information, controlling the wireless decoding side to establish a call connection with the opposite terminal equipment by using the call identifier;

after the wireless decoding side establishes a call connection with the opposite terminal equipment, controlling the wireless decoding side to send a feedback message to the application processing side;

and when detecting that the application processing side receives feedback information returned by the wireless decoding side, determining that the target equipment and opposite-end equipment have established call connection.

7. A voice data transmission apparatus, characterized in that the apparatus comprises:

the first transmission module is used for acquiring first voice data sent by opposite-end equipment under the condition that the target equipment and the opposite-end equipment are detected to establish call connection, and sending the first voice data to the target equipment through the communication channel;

and the number of the first and second groups,

and the second transmission module is used for acquiring second voice data of the target equipment through the communication channel and sending the second voice data to the opposite terminal equipment under the condition that the target equipment and the opposite terminal equipment are detected to establish call connection.

8. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;

a memory for storing a computer program;

a processor for implementing the steps of the voice data transmission method according to any one of claims 1 to 6 when executing the program stored in the memory.

9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the voice data transmission method according to any one of claims 1 to 6.

Technical Field

The present application relates to the field of data processing, and in particular, to a method and an apparatus for transmitting voice data, an electronic device, and a storage medium.

Background

Machine to Machine (M2M) refers to the transfer of data from one terminal to another, i.e., the Machine to Machine conversation. At present, applications in the fields of traffic, security, and city management have been realized.

The call function is one of the necessary functions of the current mainstream M2M module, and the current M2M module basically realizes Voice over Long-Term Evolution (VOLTE) Voice data transmission through an external codec (codec). However, the external codec can increase the hardware cost for implementing VoLTE voice data transmission, resulting in higher hardware cost.

Disclosure of Invention

An object of the embodiments of the present application is to provide a voice data transmission method, an apparatus, an electronic device, and a storage medium, so as to solve the problem that hardware cost is increased and hardware cost is high when implementing VoLTE voice data transmission through an external codec at present. The specific technical scheme is as follows:

in a first aspect, the present application provides a voice data transmission method, which is applied to an M2M module, where a communication channel is established between the M2M module and a target device based on a PCIE interface, and the method includes:

when detecting that the target device and the opposite terminal device establish a call connection, acquiring first voice data sent by the opposite terminal device, and sending the first voice data to the target device through the communication channel;

and the number of the first and second groups,

and when detecting that the target equipment and the opposite terminal equipment establish a call connection, acquiring second voice data of the target equipment through the communication channel, and sending the second voice data to the opposite terminal equipment.

Optionally, the M2M module includes a wireless decoding side and an application processing side, and the communication channel includes a first sub-channel;

the obtaining first voice data sent by the opposite terminal device and sending the first voice data to the target device through the communication channel includes:

detecting whether the target device opens the first subchannel;

under the condition that the target device is detected to open the first sub-channel, the wireless decoding side acquires the first voice data sent by the opposite terminal device, so that the wireless decoding side sends the first voice data to the application processing side;

and obtaining the first voice data sent by the wireless decoding side by running a recording process on the application processing side, so that the application processing side sends the first voice data to the target equipment through the first sub-channel.

Optionally, the method further comprises:

detecting whether the target device closes the first subchannel;

under the condition that the target equipment is detected to close the first sub-channel, closing the recording process;

detecting whether a call process is finished or not under the condition that the target device is not detected to close the first sub-channel;

and closing the recording process under the condition of detecting that the call process is ended.

Optionally, the M2M module includes a wireless decoding side and an application processing side, and the communication channel further includes a second sub-channel;

the obtaining second voice data of the target device through the communication channel and sending the second voice data to the opposite terminal device includes:

detecting whether the target device opens the second subchannel;

under the condition that the target device is detected to open the second sub-channel, reading the second voice data sent by the target device through the second sub-channel through the application processing side;

and sending the second voice data to the wireless decoding side by running a playing process on the application processing side so that the wireless decoding side sends the second voice data to the opposite terminal equipment.

Optionally, the method further comprises:

detecting whether the target device closes the second subchannel;

closing the playing process under the condition that the target device is detected to close the second sub-channel;

detecting whether the call process is finished or not under the condition that the target equipment is not detected to close the second sub-channel;

and closing the playing process under the condition of detecting that the conversation process is ended.

Optionally, the M2M module includes a wireless decoding side and an application processing side, and the communication channel includes a third sub-channel;

the method further comprises the following steps:

acquiring instruction information sent by the target device through the third subchannel through the application processing side so that the application processing side sends the instruction information to the wireless decoding side, wherein the instruction information comprises a call identifier of the opposite terminal device;

when detecting that the wireless decoding side receives the instruction information, controlling the wireless decoding side to establish a call connection with the opposite terminal equipment by using the call identifier;

after the wireless decoding side establishes a call connection with the opposite terminal equipment, controlling the wireless decoding side to send a feedback message to the application processing side;

and when detecting that the application processing side receives feedback information returned by the wireless decoding side, determining that the target equipment and opposite-end equipment have established call connection.

In a second aspect, the present application provides a voice data transmission apparatus, the apparatus comprising:

the first transmission module is used for acquiring first voice data sent by opposite-end equipment under the condition that the target equipment and the opposite-end equipment are detected to establish call connection, and sending the first voice data to the target equipment through the communication channel;

and the number of the first and second groups,

and the second transmission module is used for acquiring second voice data of the target equipment through the communication channel and sending the second voice data to the opposite terminal equipment under the condition that the target equipment and the opposite terminal equipment are detected to establish call connection.

Optionally, the M2M module includes a wireless decoding side and an application processing side, and the communication channel includes a first sub-channel;

the first transmission module is specifically configured to:

detecting whether the target device opens the first subchannel;

under the condition that the target device is detected to open the first sub-channel, the wireless decoding side acquires the first voice data sent by the opposite terminal device, so that the wireless decoding side sends the first voice data to the application processing side;

and obtaining the first voice data sent by the wireless decoding side by running a recording process on the application processing side, so that the application processing side sends the first voice data to the target equipment through the first sub-channel.

Optionally, the apparatus further comprises a first detection module, the first detection module is configured to:

detecting whether the target device closes the first subchannel;

under the condition that the target equipment is detected to close the first sub-channel, closing the recording process;

detecting whether a call process is finished or not under the condition that the target device is not detected to close the first sub-channel;

and closing the recording process under the condition of detecting that the call process is ended.

Optionally, the M2M module includes a wireless decoding side and an application processing side, and the communication channel further includes a second sub-channel;

the second transmission module is specifically configured to:

detecting whether the target device opens the second subchannel;

under the condition that the target device is detected to open the second sub-channel, reading the second voice data sent by the target device through the second sub-channel through the application processing side;

and sending the second voice data to the wireless decoding side by running a playing process on the application processing side so that the wireless decoding side sends the second voice data to the opposite terminal equipment.

Optionally, the apparatus further comprises a second detection module, the second detection module is configured to:

detecting whether the target device closes the second subchannel;

closing the playing process under the condition that the target device is detected to close the second sub-channel;

detecting whether the call process is finished or not under the condition that the target equipment is not detected to close the second sub-channel;

and closing the playing process under the condition of detecting that the conversation process is ended.

Optionally, the M2M module includes a wireless decoding side and an application processing side, and the communication channel includes a third sub-channel;

the apparatus further comprises a third transmission module configured to:

acquiring instruction information sent by the target device through the third subchannel through the application processing side so that the application processing side sends the instruction information to the wireless decoding side, wherein the instruction information comprises a call identifier of the opposite terminal device;

when detecting that the wireless decoding side receives the instruction information, controlling the wireless decoding side to establish a call connection with the opposite terminal equipment by using the call identifier;

after the wireless decoding side establishes a call connection with the opposite terminal equipment, controlling the wireless decoding side to send a feedback message to the application processing side;

and when detecting that the application processing side receives feedback information returned by the wireless decoding side, determining that the target equipment and opposite-end equipment have established call connection.

In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;

a memory for storing a computer program;

a processor for implementing the method steps of any of the first aspect when executing a program stored in the memory.

In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements the method steps of any of the first aspects.

In a fifth aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the voice data transmission methods described above.

Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:

the embodiment of the application provides a voice data transmission method, which is applied to an M2M module, wherein a communication channel is established between the M2M module and a target device based on a PCIE interface, when the target device and an opposite device are detected to have established a call connection, first voice data sent by the opposite device is acquired, and the first voice data is sent to the target device through the communication channel; and when detecting that the target device and the opposite terminal device establish a call connection, acquiring second voice data of the target device through the communication channel, and sending the second voice data to the opposite terminal device. That is, in the present application, a communication channel is established between the M2M module and the target device based on the PCIE interface, and the voice data transmission between the target device and the peer device can be realized through the communication channel, so that an additional hardware device is avoided, and the hardware cost is saved.

Drawings

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

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.

Fig. 1 is a schematic flowchart of a voice data transmission method according to an embodiment of the present application;

fig. 2 is a flowchart illustrating a voice data transmission method according to another embodiment of the present application;

fig. 3 is a flowchart illustrating a voice data transmission method according to another embodiment of the present application;

fig. 4 is a flowchart illustrating a voice data transmission method according to another embodiment of the present application;

fig. 5 is a schematic structural diagram of a voice data transmission apparatus according to an embodiment of the present application;

fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all 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.

Since the current M2M module basically implements Voice over Long-Term Evolution (VOLTE) Voice data transmission by using an external codec (codec). However, the external codec can increase the hardware cost for implementing VoLTE voice data transmission, resulting in higher hardware cost. Therefore, the embodiment of the application provides a voice data transmission method, which can be applied to an M2M module.

A voice data transmission method provided in an embodiment of the present application will be described in detail below with reference to specific embodiments, as shown in fig. 1, the specific steps are as follows:

s101, when detecting that the target device and the opposite terminal device establish a call connection, acquiring first voice data sent by the opposite terminal device, and sending the first voice data to the target device through the communication channel.

S102, when detecting that the target device and the opposite terminal device establish a call connection, acquiring second voice data of the target device through the communication channel, and sending the second voice data to the opposite terminal device.

In the embodiment of the present application, the target device refers to a host connected to the M2M module in communication, and the first voice data and the second voice data refer to VOLTE voice data. The voice data transmission method provided by the embodiment of the application is applied to the M2M module, and a communication channel is established between the M2M module and the target device in advance based on a PCIE interface. Therefore, when it is detected that the target device and the peer device have established a call connection, after the first voice data sent by the peer device is acquired, the first voice data can be sent to the target device through the communication channel, and the second voice data of the target device can be acquired through the communication channel and sent to the peer device. Therefore, the voice data transmission between the target equipment and the opposite terminal equipment is realized. It should be understood that the order of S101 and S102 may be reversed.

In this embodiment of the present application, a communication channel is established between the M2M module and a target device based on a PCIE interface, when it is detected that the target device and an opposite device have established a call connection, first voice data sent by the opposite device is obtained, and the first voice data is sent to the target device through the communication channel; and when detecting that the target device and the opposite terminal device establish a call connection, acquiring second voice data of the target device through the communication channel, and sending the second voice data to the opposite terminal device. That is, in the present application, a communication channel is established between the M2M module and the target device based on the PCIE interface, and the voice data transmission between the target device and the peer device can be realized through the communication channel, so that an additional hardware device is avoided, and the hardware cost is saved.

In another embodiment of the present application, as shown in fig. 2, the S101 may include the following steps:

s201, detecting whether the target device opens the first sub-channel;

s202, when it is detected that the target device opens the first sub-channel, obtaining, by the wireless decoding side, the first voice data sent by the peer device, so that the wireless decoding side sends the first voice data to the application processing side;

s203, the first voice data sent by the wireless decoding side is obtained by running the recording process on the application processing side, so that the application processing side sends the first voice data to the target device through the first sub-channel.

In this embodiment of the present application, the M2M module includes a wireless decoding (modem) side and an Application Processing (AP) side, and the communication channel includes a first sub-channel, where the first sub-channel may be a PCIe read audio data channel (PCIe read channel), and the first sub-channel is configured to read first voice data sent by the peer device. Whether a target device opens a first sub-channel is detected, and when it is detected that the target device opens the first sub-channel, the target device can receive first voice data is shown, at this time, as shown in fig. 3, the first voice data sent by an opposite-end device is obtained through a modem side, then the first voice data sent by the modem side is obtained through running a recording process (inclusive capture) on an AP side, and finally, the AP side sends the first voice data to the target device through a PCIe read channel.

In yet another embodiment of the present application, the method may further comprise the steps of:

step one, detecting whether the target equipment closes the first subchannel or not;

step two, under the condition that the target equipment is detected to close the first sub-channel, closing the recording process;

step three, detecting whether the communication process is finished or not under the condition that the target equipment is not detected to close the first sub-channel;

and step four, closing the recording process under the condition that the end of the communication process is detected.

In the embodiment of the application, the steps of acquiring the first voice data and sending the first voice data to the target device are continuously executed under the condition that the first sub-channel is not closed and the call process is not finished, and the recording process is closed under the condition that the target device is detected to close the first sub-channel or the call is finished, so that the recording process is prevented from being continuously operated under the condition that the target device cannot receive the voice data, and resource waste is reduced.

In another embodiment of the present application, as shown in fig. 4, the S102 may include the following steps:

s301, detecting whether the target device opens the second sub-channel;

s302, reading the second voice data sent by the target device through the second sub-channel through the application processing side under the condition that the target device is detected to open the second sub-channel;

s303, sending the second voice data to the wireless decoding side by running a playing process on the application processing side, so that the wireless decoding side sends the second voice data to the peer device.

In this embodiment of the application, the communication channel further includes a second sub-channel, where the second sub-channel may be a PCIe write audio data channel (PCIe write channel), and is configured to transmit the second voice data of the target device to the application processing side. As shown in fig. 3, in the case that it is detected that the target device opens the PCIe write channel, reading, by the AP side, second voice data sent by the target device through the PCIe write channel; and sending the second voice data to the modem side by running a play process (Incall play) on the AP side, and finally sending the second voice data to the opposite terminal equipment by the modem side.

In yet another embodiment of the present application, the method may further comprise the steps of:

step one, detecting whether the target equipment closes the second subchannel;

step two, under the condition that the target equipment is detected to close the second sub-channel, closing the playing process;

step three, detecting whether the communication process is finished or not under the condition that the target equipment is not detected to close the second sub-channel;

and step four, closing the playing process under the condition that the end of the communication process is detected.

In the embodiment of the application, the steps of reading the second voice data and sending the second voice data to the opposite terminal device are continuously executed under the condition that the second sub-channel is not closed and the call process is not finished, and the play process is closed under the condition that the target device is detected to close the second sub-channel or the call is finished, so that the play process is prevented from being continuously run under the condition that the target device does not send the voice data, and the resource waste is reduced.

In yet another embodiment of the present application, the method may further comprise the steps of:

step one, acquiring, by the application processing side, instruction information sent by the target device through the third sub-channel, so that the application processing side sends the instruction information to the wireless decoding side, where the instruction information includes a call identifier of the opposite-end device;

step two, when detecting that the wireless decoding side receives the instruction information, controlling the wireless decoding side to establish a call connection with the opposite terminal equipment by using the call identifier;

step three, after the wireless decoding side establishes the call connection with the opposite terminal equipment, the wireless decoding side is controlled to send a feedback message to the application processing side;

and step four, when detecting that the application processing side receives the feedback information returned by the wireless decoding side, determining that the target equipment and the opposite terminal equipment have established call connection.

In this embodiment of the present application, the communication channel further includes a third sub-channel, where the third sub-channel may be an AT (attention) channel, and is configured to transmit instruction information (for example, an AT instruction), where the instruction information is used to indicate that a call connection is established to an opposite device, and the instruction information includes a call identifier (for example, a phone number) of the opposite device. The target device sends instruction information to the AP side through the third sub-channel, the AP side sends the received instruction information to the modem side, the modem side dials a call outwards according to the call identifier in the instruction information, namely, call connection with the opposite terminal device is established, after the modem side establishes call connection with the opposite terminal device, the modem side sends feedback information to the AP side, and when it is detected that the AP side receives feedback information returned by the modem side, the target device and the opposite terminal device are determined to have established call connection.

In this embodiment of the present application, a communication channel is established between the M2M module and a target device based on a PCIE interface, when it is detected that the target device and an opposite device have established a call connection, first voice data sent by the opposite device is obtained, and the first voice data is sent to the target device through the communication channel; and when detecting that the target device and the opposite terminal device establish a call connection, acquiring second voice data of the target device through the communication channel, and sending the second voice data to the opposite terminal device. That is, in the present application, a communication channel is established between the M2M module and the target device based on the PCIE interface, and the voice data transmission between the target device and the peer device can be realized through the communication channel, so that an additional hardware device is avoided, and the hardware cost is saved.

Based on the same technical concept, an embodiment of the present application further provides a voice data transmission apparatus, as shown in fig. 5, the apparatus includes:

a first transmission module 401, configured to, when detecting that the target device and an opposite device have established a call connection, obtain first voice data sent by the opposite device, and send the first voice data to the target device through the communication channel;

and the number of the first and second groups,

a second transmission module 402, configured to, when it is detected that the target device and an opposite-end device have established a call connection, obtain second voice data of the target device through the communication channel, and send the second voice data to the opposite-end device.

Optionally, the M2M module includes a wireless decoding side and an application processing side, and the communication channel includes a first sub-channel;

the first transmission module is specifically configured to:

detecting whether the target device opens the first subchannel;

under the condition that the target device is detected to open the first sub-channel, the wireless decoding side acquires the first voice data sent by the opposite terminal device, so that the wireless decoding side sends the first voice data to the application processing side;

and obtaining the first voice data sent by the wireless decoding side by running a recording process on the application processing side, so that the application processing side sends the first voice data to the target equipment through the first sub-channel.

Optionally, the apparatus further comprises a first detection module, the first detection module is configured to:

detecting whether the target device closes the first subchannel;

under the condition that the target equipment is detected to close the first sub-channel, closing the recording process;

detecting whether a call process is finished or not under the condition that the target device is not detected to close the first sub-channel;

and closing the recording process under the condition of detecting that the call process is ended.

Optionally, the M2M module includes a wireless decoding side and an application processing side, and the communication channel further includes a second sub-channel;

the second transmission module is specifically configured to:

detecting whether the target device opens the second subchannel;

under the condition that the target device is detected to open the second sub-channel, reading the second voice data sent by the target device through the second sub-channel through the application processing side;

and sending the second voice data to the wireless decoding side by running a playing process on the application processing side so that the wireless decoding side sends the second voice data to the opposite terminal equipment.

Optionally, the apparatus further comprises a second detection module, the second detection module is configured to:

detecting whether the target device closes the second subchannel;

closing the playing process under the condition that the target device is detected to close the second sub-channel;

detecting whether the call process is finished or not under the condition that the target equipment is not detected to close the second sub-channel;

and closing the playing process under the condition of detecting that the conversation process is ended.

Optionally, the M2M module includes a wireless decoding side and an application processing side, and the communication channel includes a third sub-channel;

the apparatus further comprises a third transmission module configured to:

acquiring instruction information sent by the target device through the third subchannel through the application processing side so that the application processing side sends the instruction information to the wireless decoding side, wherein the instruction information comprises a call identifier of the opposite terminal device;

when detecting that the wireless decoding side receives the instruction information, controlling the wireless decoding side to establish a call connection with the opposite terminal equipment by using the call identifier;

after the wireless decoding side establishes a call connection with the opposite terminal equipment, controlling the wireless decoding side to send a feedback message to the application processing side;

and when detecting that the application processing side receives feedback information returned by the wireless decoding side, determining that the target equipment and opposite-end equipment have established call connection.

In this embodiment of the present application, a communication channel is established between the M2M module and a target device based on a PCIE interface, when it is detected that the target device and an opposite device have established a call connection, first voice data sent by the opposite device is obtained, and the first voice data is sent to the target device through the communication channel; and when detecting that the target device and the opposite terminal device establish a call connection, acquiring second voice data of the target device through the communication channel, and sending the second voice data to the opposite terminal device. That is, in the present application, a communication channel is established between the M2M module and the target device based on the PCIE interface, and the voice data transmission between the target device and the peer device can be realized through the communication channel, so that an additional hardware device is avoided, and the hardware cost is saved.

As shown in fig. 6, the embodiment of the present application provides an electronic device, which includes a processor 111, a communication interface 112, a memory 113, and a communication bus 114, where the processor 111, the communication interface 112, and the memory 113 complete mutual communication through the communication bus 114,

a memory 113 for storing a computer program;

in an embodiment of the present application, when the processor 111 is configured to execute the program stored in the memory 113, the method for transmitting voice data provided in any one of the foregoing method embodiments is implemented, including:

when detecting that the target device and the opposite terminal device establish a call connection, acquiring first voice data sent by the opposite terminal device, and sending the first voice data to the target device through the communication channel;

and the number of the first and second groups,

and when detecting that the target equipment and the opposite terminal equipment establish a call connection, acquiring second voice data of the target equipment through the communication channel, and sending the second voice data to the opposite terminal equipment.

The present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the voice data transmission method provided in any one of the foregoing method embodiments.

It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

14页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:多方通话紧急求助方法、装置及计算设备

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类