CN113840038B - Voice data transmission method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN113840038B
CN113840038B CN202111153570.0A CN202111153570A CN113840038B CN 113840038 B CN113840038 B CN 113840038B CN 202111153570 A CN202111153570 A CN 202111153570A CN 113840038 B CN113840038 B CN 113840038B
Authority
CN
China
Prior art keywords
voice data
channel
sub
equipment
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111153570.0A
Other languages
Chinese (zh)
Other versions
CN113840038A (en
Inventor
李顺福
苟文君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Guanghetong Wireless Communication Software Co ltd
Original Assignee
Shenzhen Guanghetong Wireless Communication Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Guanghetong Wireless Communication Software Co ltd filed Critical Shenzhen Guanghetong Wireless Communication Software Co ltd
Priority to CN202111153570.0A priority Critical patent/CN113840038B/en
Publication of CN113840038A publication Critical patent/CN113840038A/en
Priority to PCT/CN2022/084946 priority patent/WO2023050752A1/en
Application granted granted Critical
Publication of CN113840038B publication Critical patent/CN113840038B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing
    • H04M3/2281Call monitoring, e.g. for law enforcement purposes; Call tracing; Detection or prevention of malicious calls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

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, and when the situation that the target equipment and opposite terminal equipment are connected in a conversation manner is detected, first voice data sent by the opposite terminal equipment are obtained, and the first voice data are sent to the target equipment through the communication channel; and when the situation that the call connection between the target equipment and the opposite terminal equipment is established is detected, acquiring second voice data of the target equipment through the communication channel, and sending the second voice data to the opposite terminal equipment. In other words, in the application, a communication channel is established between the M2M module and the target device based on the PCIE interface, and voice data transmission between the target device and the opposite terminal device can be achieved through the communication channel, so that additional hardware devices are avoided being added, and hardware cost is saved.

Description

Voice data transmission method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data processing, and in particular, to a method and apparatus for transmitting voice data, an electronic device, and a storage medium.
Background
Machine-to-machine (Machine to Machine, M2M) refers to the transfer of data from one terminal to another, i.e., machine-to-machine conversations. Currently, applications in the fields of traffic, security, city management, etc. have been implemented.
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, implementing VoLTE voice data transmission by external codec increases hardware cost, resulting in higher hardware cost.
Disclosure of Invention
An embodiment of the present application is directed to providing a voice data transmission method, a device, an electronic apparatus, and a storage medium, so as to solve the problem that the hardware cost is high due to the increase of the hardware cost when VoLTE voice data transmission is implemented through external codec at present. The specific technical scheme is as follows:
in a first aspect, the present application provides a voice data transmission method applied to an M2M module, where a communication channel is established between the M2M module and a target device based on a PCIE interface, the method includes:
when the situation that the target equipment and the opposite terminal equipment are connected in a communication mode is detected, first voice data sent by the opposite terminal equipment are obtained, and the first voice data are sent to the target equipment through the communication channel;
the method comprises the steps of,
and when the situation that the call connection between the target equipment and the opposite terminal equipment is established is detected, 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 the 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 sub-channel;
under the condition that the target equipment opens the first sub-channel, acquiring the first voice data sent by the opposite terminal equipment through the wireless decoding side so that the wireless decoding side sends the first voice data to the application processing side;
and acquiring 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 sub-channel;
closing the recording process under the condition that the target equipment is detected to close the first sub-channel;
detecting whether the conversation process is finished or not under the condition that the target equipment is not detected to close the first sub-channel;
and closing the recording process under the condition that the conversation process is detected to be 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, by the communication channel, second voice data of the target device, and sending the second voice data to the peer device, includes:
detecting whether the target device opens the second sub-channel;
reading, by the application processing side, the second voice data sent by the target device through the second sub-channel when the target device is detected to open the second sub-channel;
and transmitting 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 transmits the second voice data to the opposite terminal equipment.
Optionally, the method further comprises:
detecting whether the target device closes the second sub-channel;
closing the playing process under the condition that the target device is detected to close the second sub-channel;
detecting whether the conversation 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 that the conversation process is detected to be 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 steps of:
acquiring instruction information sent by the target device through the third sub-channel 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 the wireless decoding side is detected to receive the instruction information, controlling the wireless decoding side to establish call connection with the opposite-end equipment by using the call identifier;
after the wireless decoding side establishes call connection with the opposite terminal equipment, controlling the wireless decoding side to send feedback information 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 the 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 the opposite terminal equipment when the situation that the target equipment and the opposite terminal equipment are connected in a conversation mode is detected, and sending the first voice data to the target equipment through the communication channel;
the method comprises the steps of,
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 when the situation that the call connection between the target equipment and the opposite terminal equipment is detected.
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 sub-channel;
under the condition that the target equipment opens the first sub-channel, acquiring the first voice data sent by the opposite terminal equipment through the wireless decoding side so that the wireless decoding side sends the first voice data to the application processing side;
and acquiring 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, where the first detection module is configured to:
detecting whether the target device closes the first sub-channel;
closing the recording process under the condition that the target equipment is detected to close the first sub-channel;
detecting whether the conversation process is finished or not under the condition that the target equipment is not detected to close the first sub-channel;
and closing the recording process under the condition that the conversation process is detected to be 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 sub-channel;
reading, by the application processing side, the second voice data sent by the target device through the second sub-channel when the target device is detected to open the second sub-channel;
and transmitting 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 transmits the second voice data to the opposite terminal equipment.
Optionally, the apparatus further comprises a second detection module, the second detection module being configured to:
detecting whether the target device closes the second sub-channel;
closing the playing process under the condition that the target device is detected to close the second sub-channel;
detecting whether the conversation 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 that the conversation process is detected to be 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 for:
acquiring instruction information sent by the target device through the third sub-channel 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 the wireless decoding side is detected to receive the instruction information, controlling the wireless decoding side to establish call connection with the opposite-end equipment by using the call identifier;
after the wireless decoding side establishes call connection with the opposite terminal equipment, controlling the wireless decoding side to send feedback information 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 the opposite-end equipment have established call connection.
In a third aspect, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, where 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 aspects when executing a program stored on a memory.
In a fourth aspect, a computer-readable storage medium is provided, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of the first aspects.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform any of the above-described voice data transmission methods.
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 target equipment based on a PCIE interface, and when the situation that the target equipment and opposite terminal equipment are connected in a communication way is detected, first voice data sent by the opposite terminal equipment are obtained, and the first voice data are sent to the target equipment through the communication channel; and when the situation that the call connection between the target equipment and the opposite terminal equipment is established is detected, acquiring second voice data of the target equipment through the communication channel, and sending the second voice data to the opposite terminal equipment. In other words, in the application, a communication channel is established between the M2M module and the target device based on the PCIE interface, and voice data transmission between the target device and the opposite terminal device can be achieved through the communication channel, so that additional hardware devices are avoided being added, and 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 invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flow chart of a voice data transmission method according to an embodiment of the present application;
fig. 2 is a flow chart of a voice data transmission method according to another embodiment of the present application;
fig. 3 is a flowchart of a voice data transmission method according to another embodiment of the present application;
fig. 4 is a flowchart of 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 device 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
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of 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 apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
Because the current M2M module basically realizes Voice over Long-Term Evolution (VOLTE) Voice data transmission through an external codec (codec). However, implementing VoLTE voice data transmission by external codec increases hardware cost, 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.
The following will describe a voice data transmission method provided in the embodiment of the present application in detail with reference to a specific embodiment, as shown in fig. 1, and the specific steps are as follows:
s101, when the situation that the target equipment and the opposite terminal equipment are in communication connection is detected, acquiring first voice data sent by the opposite terminal equipment, and sending the first voice data to the target equipment through the communication channel.
S102, when the situation that the call connection between the target equipment and the opposite terminal equipment is established is detected, second voice data of the target equipment are obtained through the communication channel, and the second voice data are sent to the opposite terminal equipment.
In this embodiment of the present application, the target device refers to a host communicatively connected to the M2M module, 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 invention is applied to the M2M module, and a communication channel is established between the M2M module and the target equipment in advance based on the PCIE interface. Therefore, when it is detected that the target device and the opposite terminal device have established a call connection, after the first voice data sent by the opposite terminal device is acquired, the first voice data may be sent to the target device through the communication channel, and the second voice data of the target device is acquired through the communication channel and sent to the opposite terminal device. Thereby realizing voice data transmission between the target device and the opposite terminal device. It should be noted that the order of S101 and S102 may be exchanged.
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, and when it is detected that the target device and an opposite terminal device have established a call connection, first voice data sent by the opposite terminal device are obtained, and the first voice data are sent to the target device through the communication channel; and when the situation that the call connection between the target equipment and the opposite terminal equipment is established is detected, acquiring second voice data of the target equipment through the communication channel, and sending the second voice data to the opposite terminal equipment. In other words, in the application, a communication channel is established between the M2M module and the target device based on the PCIE interface, and voice data transmission between the target device and the opposite terminal device can be achieved through the communication channel, so that additional hardware devices are avoided being added, and hardware cost is saved.
In yet another embodiment of the present application, as shown in fig. 2, the step S101 may include the following steps:
s201, detecting whether the target device opens the first sub-channel;
s202, under the condition that the target device is detected to open the first sub-channel, acquiring the first voice data sent by the opposite terminal device through the wireless decoding side, 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 through running a 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 the embodiment of the application, the M2M module includes a wireless decoding (modem) side and an application processing (application process, AP) side, and the communication channel includes a first subchannel, which may be a PCIe read audio data channel (PCIe read channel), and the first subchannel is used to read first voice data sent by the peer device. Detecting whether the target device opens the first sub-channel, and under the condition that the target device opens the first sub-channel, indicating that the target device can receive the first voice data, at this time, acquiring the first voice data sent by the opposite terminal device through the modem side, then acquiring the first voice data sent by the modem side by running an recording process (Incall call) on the AP side, and finally, sending the first voice data to the target device through PCIe read channel by the AP side, as shown in fig. 3.
In yet another embodiment of the present application, the method may further comprise the steps of:
step one, detecting whether the target device closes the first sub-channel;
step two, closing the recording process under the condition that the target equipment is detected to close the first sub-channel;
detecting whether the conversation 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 conversation process is detected to be ended.
In the embodiment of the application, under the condition that the first sub-channel is not closed and the conversation process is not finished, the steps of acquiring the first voice data and sending the first voice data to the target device are continuously executed, and under the condition that the target device is detected to close the first sub-channel or the condition that the conversation is finished, the recording process is closed, 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 yet another embodiment of the present application, as shown in fig. 4, the step S102 may include the following steps:
s301, detecting whether the target device opens the second sub-channel;
s302, 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 S303, transmitting 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 transmits the second voice data to the opposite terminal device.
In an embodiment of the application, the communication channel further includes a second sub-channel, which may be a PCIe write audio data channel (PCIe write channel), for transmitting second voice data of the target device to the application processing side. As shown in fig. 3, in the case where it is detected that the target device is turned on PCIe write channel, the second voice data transmitted by the target device through PCIe write channel is read by the AP side; and transmitting the second voice data to the modem side by running a playing process (Incall play) on the AP side, and finally, transmitting 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 device closes the second sub-channel;
step two, closing the playing process under the condition that the target equipment is detected to close the second sub-channel;
step three, detecting whether the conversation 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 conversation process is detected to be ended.
In the embodiment of the application, under the condition that the second sub-channel is not closed and the conversation process is not finished, the steps of reading the second voice data and sending the second voice data to the opposite terminal device are continuously executed, and under the condition that the target device is detected to close the second sub-channel or the condition that the conversation is finished, the playing process is closed, so that the playing process is prevented from being continuously operated under the condition that the target device does not send the voice data, and resource waste is reduced.
In yet another embodiment of the present application, the method may further comprise the steps of:
step one, acquiring instruction information sent by the target device through the third sub-channel 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 the wireless decoding side is detected to receive the instruction information, controlling the wireless decoding side to establish call connection with the opposite terminal equipment by using the call identifier;
step three, after the wireless decoding side establishes call connection with the opposite terminal equipment, controlling the wireless decoding side to send feedback information to the application processing side;
and step four, when detecting that the application processing side receives 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, which 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 instruct to establish a call connection to the peer device, and the instruction information includes a call identifier (for example, a phone number) of the peer device. The target equipment sends instruction information to the AP side through a third sub-channel, the AP side sends the received instruction information to the modem side, the modem side dials a call outwards according to a call identifier in the instruction information, namely call connection with the opposite terminal equipment is established, after the modem side establishes the call connection with the opposite terminal equipment, the modem side sends feedback information to the AP side, and when the feedback information returned by the modem side is detected to be received by the AP side, the fact that the call connection between the target equipment and the opposite terminal equipment is established is determined.
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, and when it is detected that the target device and an opposite terminal device have established a call connection, first voice data sent by the opposite terminal device are obtained, and the first voice data are sent to the target device through the communication channel; and when the situation that the call connection between the target equipment and the opposite terminal equipment is established is detected, acquiring second voice data of the target equipment through the communication channel, and sending the second voice data to the opposite terminal equipment. In other words, in the application, a communication channel is established between the M2M module and the target device based on the PCIE interface, and voice data transmission between the target device and the opposite terminal device can be achieved through the communication channel, so that additional hardware devices are avoided being added, and hardware cost is saved.
Based on the same technical concept, the embodiment of the present application further provides a voice data transmission device, as shown in fig. 5, where the device includes:
a first transmission module 401, configured to obtain first voice data sent by the peer device when it is detected that the target device and the peer device have established a call connection, and send the first voice data to the target device through the communication channel;
the method comprises the steps of,
and the second transmission module 402 is configured to obtain second voice data of the target device through the communication channel and send the second voice data to the opposite terminal device when it is detected that the target device has established a call connection with the opposite terminal 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 sub-channel;
under the condition that the target equipment opens the first sub-channel, acquiring the first voice data sent by the opposite terminal equipment through the wireless decoding side so that the wireless decoding side sends the first voice data to the application processing side;
and acquiring 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, where the first detection module is configured to:
detecting whether the target device closes the first sub-channel;
closing the recording process under the condition that the target equipment is detected to close the first sub-channel;
detecting whether the conversation process is finished or not under the condition that the target equipment is not detected to close the first sub-channel;
and closing the recording process under the condition that the conversation process is detected to be 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 sub-channel;
reading, by the application processing side, the second voice data sent by the target device through the second sub-channel when the target device is detected to open the second sub-channel;
and transmitting 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 transmits the second voice data to the opposite terminal equipment.
Optionally, the apparatus further comprises a second detection module, the second detection module being configured to:
detecting whether the target device closes the second sub-channel;
closing the playing process under the condition that the target device is detected to close the second sub-channel;
detecting whether the conversation 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 that the conversation process is detected to be 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 for:
acquiring instruction information sent by the target device through the third sub-channel 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 the wireless decoding side is detected to receive the instruction information, controlling the wireless decoding side to establish call connection with the opposite-end equipment by using the call identifier;
after the wireless decoding side establishes call connection with the opposite terminal equipment, controlling the wireless decoding side to send feedback information 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 the 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, and when it is detected that the target device and an opposite terminal device have established a call connection, first voice data sent by the opposite terminal device are obtained, and the first voice data are sent to the target device through the communication channel; and when the situation that the call connection between the target equipment and the opposite terminal equipment is established is detected, acquiring second voice data of the target equipment through the communication channel, and sending the second voice data to the opposite terminal equipment. In other words, in the application, a communication channel is established between the M2M module and the target device based on the PCIE interface, and voice data transmission between the target device and the opposite terminal device can be achieved through the communication channel, so that additional hardware devices are avoided being added, and 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, wherein the processor 111, the communication interface 112, and the memory 113 perform communication with each other through the communication bus 114,
a memory 113 for storing a computer program;
in one embodiment of the present application, the processor 111 is configured to implement the voice data transmission method provided in any one of the foregoing method embodiments when executing the program stored in the memory 113, where the method includes:
when the situation that the target equipment and the opposite terminal equipment are connected in a communication mode is detected, first voice data sent by the opposite terminal equipment are obtained, and the first voice data are sent to the target equipment through the communication channel;
the method comprises the steps of,
and when the situation that the call connection between the target equipment and the opposite terminal equipment is established is detected, 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 also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the voice data transmission method provided by any one of the method embodiments described above.
It should be noted that in this document, relational terms such as "first" and "second" and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the 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.

Claims (9)

1. The voice data transmission method is characterized by being applied to an M2M module, wherein a communication channel is established between the M2M module and target equipment based on a PCIE interface, and the method comprises the following steps:
when the situation that the target equipment and the opposite terminal equipment are connected in a communication mode is detected, first voice data sent by the opposite terminal equipment are obtained, and the first voice data are sent to the target equipment through the communication channel;
the method comprises the steps of,
and when the situation that the call connection between the target equipment and the opposite terminal equipment is established is detected, 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 subchannel;
the obtaining the 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 sub-channel;
under the condition that the target equipment opens the first sub-channel, acquiring the first voice data sent by the opposite terminal equipment through the wireless decoding side so that the wireless decoding side sends the first voice data to the application processing side;
and acquiring 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 according to claim 2, wherein the method further comprises:
detecting whether the target device closes the first sub-channel;
closing the recording process under the condition that the target equipment is detected to close the first sub-channel;
detecting whether the conversation process is finished or not under the condition that the target equipment is not detected to close the first sub-channel;
and closing the recording process under the condition that the conversation process is detected to be ended.
4. The method of claim 1, wherein the M2M module comprises a wireless decoding side and an application processing side, the communication channel further comprising a second sub-channel;
the obtaining, by the communication channel, second voice data of the target device, and sending the second voice data to the peer device, includes:
detecting whether the target device opens the second sub-channel;
reading, by the application processing side, the second voice data sent by the target device through the second sub-channel when the target device is detected to open the second sub-channel;
and transmitting 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 transmits the second voice data to the opposite terminal equipment.
5. The method according to claim 4, wherein the method further comprises:
detecting whether the target device closes the second sub-channel;
closing the playing process under the condition that the target device is detected to close the second sub-channel;
detecting whether the conversation 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 that the conversation process is detected to be 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 steps of:
acquiring instruction information sent by the target device through the third sub-channel 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 the wireless decoding side is detected to receive the instruction information, controlling the wireless decoding side to establish call connection with the opposite-end equipment by using the call identifier;
after the wireless decoding side establishes call connection with the opposite terminal equipment, controlling the wireless decoding side to send feedback information 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 the opposite-end equipment have established call connection.
7. A voice data transmission apparatus, the apparatus comprising:
the M2M module is used for acquiring first voice data sent by opposite terminal equipment under the condition that the situation that the call connection between the target equipment and the opposite terminal equipment is established is detected, and sending the first voice data to the target equipment through a communication channel;
the method comprises the steps of,
when the situation that the target equipment and the opposite terminal equipment are connected in a communication mode is detected, second voice data of the target equipment are obtained through the communication channel, and the second voice data are sent to the opposite terminal equipment;
the communication channel is established between the M2M module and the target equipment based on a PCIE interface.
8. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other 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 a program stored on a memory.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the voice data transmission method according to any one of claims 1 to 6.
CN202111153570.0A 2021-09-29 2021-09-29 Voice data transmission method and device, electronic equipment and storage medium Active CN113840038B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111153570.0A CN113840038B (en) 2021-09-29 2021-09-29 Voice data transmission method and device, electronic equipment and storage medium
PCT/CN2022/084946 WO2023050752A1 (en) 2021-09-29 2022-04-02 Voice data transmission method and apparatus, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111153570.0A CN113840038B (en) 2021-09-29 2021-09-29 Voice data transmission method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113840038A CN113840038A (en) 2021-12-24
CN113840038B true CN113840038B (en) 2023-06-20

Family

ID=78967415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111153570.0A Active CN113840038B (en) 2021-09-29 2021-09-29 Voice data transmission method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN113840038B (en)
WO (1) WO2023050752A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113840038B (en) * 2021-09-29 2023-06-20 深圳市广和通无线通信软件有限公司 Voice data transmission method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052061A (en) * 2012-12-17 2013-04-17 上海邮电设计咨询研究院有限公司 Machine to machine communication module with safety function
CN110992931A (en) * 2019-12-18 2020-04-10 佛山市顺德区美家智能科技管理服务有限公司 Off-line voice control method, system and storage medium based on D2D technology

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101193110A (en) * 2006-11-28 2008-06-04 中兴通讯股份有限公司 A realizing method of computer voice communication based on wireless communication terminal
CN101820634B (en) * 2009-10-29 2013-06-05 华为终端有限公司 Voice monitoring method and device
KR101829114B1 (en) * 2013-01-25 2018-03-29 퀄컴 인코포레이티드 Adaptive observation of behavioral features on a mobile device
US9525562B2 (en) * 2013-05-23 2016-12-20 Cahon Systems, Inc. Modular deterministic communication terminal for remote systems
US10832665B2 (en) * 2016-05-27 2020-11-10 Centurylink Intellectual Property Llc Internet of things (IoT) human interface apparatus, system, and method
US9946325B2 (en) * 2016-06-30 2018-04-17 Intel IP Corporation Interprocessor power state transitions
CN113840038B (en) * 2021-09-29 2023-06-20 深圳市广和通无线通信软件有限公司 Voice data transmission method and device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052061A (en) * 2012-12-17 2013-04-17 上海邮电设计咨询研究院有限公司 Machine to machine communication module with safety function
CN110992931A (en) * 2019-12-18 2020-04-10 佛山市顺德区美家智能科技管理服务有限公司 Off-line voice control method, system and storage medium based on D2D technology

Also Published As

Publication number Publication date
CN113840038A (en) 2021-12-24
WO2023050752A1 (en) 2023-04-06

Similar Documents

Publication Publication Date Title
JP2019091005A (en) Multi apparatus interactive method, device, apparatus and computer readable medium
JP2022528516A (en) Channel occupancy time sharing method and equipment
CN111543076B (en) Transmission method, transmission device and computer storage medium
CN111245587B (en) Aperiodic SRS sending method and related equipment
CN113840038B (en) Voice data transmission method and device, electronic equipment and storage medium
CN110446252B (en) Energy threshold determining method for directional LBT, directional LBT method and device, storage medium, terminal and base station
CN103024697B (en) Early warning information sends processing method, method of reseptance and relevant device
CN105517111A (en) Methods and apparatuses for connecting devices with network
WO2022078387A1 (en) Information processing method and apparatus, and communication devices
CN102595646B (en) Vent resource processing method and equipment
CN113259073B (en) PUSCH transmission method, PUSCH transmission control method and related equipment
CN112655264A (en) Method and device for determining size of transmission block and communication equipment
CN111466127A (en) Processing method and device for enhancing uplink coverage and storage medium
CN104703291A (en) MiFi-based communication method and relevant MiFi
WO2017156789A1 (en) Device-to-device based communication method and terminal
EP3787320B1 (en) Information indicating and interpreting methods, base station and user equipment
CN113543022A (en) Method and device for determining transmitting power, interphone, equipment and storage medium
CN115280833A (en) Channel state information processing method and device and communication equipment
US20200178186A1 (en) Access Method And Access Device
EP3073694A1 (en) Self-interference channel estimation method and device
CN111757345A (en) Information transmission method and terminal
CN106470414B (en) Method and device for accessing SIM card
CN105191460A (en) Information transmission method, device, and system
WO2022222764A1 (en) Resource determination method and communication apparatus
CN104052854B (en) A kind of method of information processing and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant