Communication method and device, terminal equipment and readable storage medium

By establishing multiple audio transmission paths in the terminal device and associating the voice packets of different call requests separately, the problem of being unable to process multiple SIM card services at the same time in the prior art is solved, and multiple call requests are realized Concurrent transmission improves user experience.

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

Patent Information

Application Number
CN202310998486.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-09
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

In the prior art, the same terminal device cannot handle two services of two SIM cards at the same time, resulting in users being unable to make two phone calls at the same time, affecting the user experience.

Method used

By determining whether the terminal has established at least two audio transmission paths and associates voice packets of different call requests with these paths respectively, concurrent transmission of multiple call requests is realized.

Benefits of technology

It realizes the processing of multiple call requests simultaneously within the same call period, improving transmission efficiency and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119485794A_ABST
    Figure CN119485794A_ABST
Patent Text Reader

Abstract

The invention relates to a communication method and device, terminal equipment and a readable storage medium, and the method comprises the steps: responding to at least two call requests in the same call time period, and determining whether the terminal establishes at least two audio transmission paths or not; wherein the audio transmission devices corresponding to the at least two audio transmission channels are different; if the terminal establishes the at least two audio transmission paths, associating voice data packets corresponding to the at least two call requests with the at least two audio transmission paths respectively; wherein the audio transmission channels associated with the voice data packets corresponding to different call requests are different; and respectively outputting voice data packets associated with the audio transmission paths by using the at least two audio transmission paths.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a communication method, apparatus, terminal equipment and readable storage medium. Background Art

[0002] In recent years, with the popularization of dual SIM dual active (DSDA) technology, terminal equipment has realized two services simultaneously based on two user identity modules (SIM) (hereinafter referred to as SIM cards).

[0003] In the related art, only one of the two SIM cards (i.e., primary and secondary cards) can be in a call state at the same time, while the other is in a call holding state, so that the user cannot use the same terminal to make two calls, thereby affecting the user's usage experience. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a communication method, an apparatus, a terminal device and a readable storage medium.

[0005] According to a first aspect of the present disclosure, a communication method is provided, comprising:

[0006] In response to at least two call requests within the same call period, determining whether the terminal has established at least two audio transmission paths; wherein the audio transmission devices corresponding to the at least two audio transmission paths are different;

[0007] If the terminal has established the at least two audio transmission paths, the voice data packets corresponding to the at least two call requests are respectively associated with the at least two audio transmission paths; wherein the voice data packets corresponding to different call requests are associated with different audio transmission paths;

[0008] The at least two audio transmission paths are used to respectively output voice data packets associated with the audio transmission paths.

[0009] Optionally, if the terminal has established the at least two audio transmission paths, associating the voice data packets corresponding to the at least two call requests with the at least two audio transmission paths respectively, comprises:

[0010] If the terminal has established the at least two audio transmission paths, based on the at least two audio transmission paths, respectively establish a call connection with the opposite-end device corresponding to each call request;

[0011] Based on each of the at least two call connections, obtaining a voice data packet corresponding to the call connection;

[0012] The voice data packet is processed based on the audio transmission path associated with the call connection; the processed voice data packet at least includes identification information of the audio transmission path used to transmit the voice data packet.

[0013] Optionally, the using the at least two audio transmission paths to respectively output voice data packets associated with the audio transmission paths comprises:

[0014] Decoding the voice data packet to obtain identification information of the audio transmission path carried by the voice data packet and a first audio signal corresponding to the voice data packet;

[0015] The first audio signal is outputted using the audio transmission path indicated by the identification information.

[0016] Optionally, the method further includes:

[0017] collecting a second audio signal, and determining a call connection associated with the second audio signal;

[0018] Encoding the second audio signal to obtain a voice data packet corresponding to the second audio signal;

[0019] The voice data packet is processed based on the audio transmission path associated with the call connection; the processed voice data packet at least includes identification information of the audio transmission path associated with the second audio signal.

[0020] Optionally, the method further includes:

[0021] Acquire identification information of the audio transmission path carried in a voice data packet corresponding to the second audio signal;

[0022] Determining a call connection associated with the audio transmission path based on the identification information of the audio transmission path;

[0023] The voice data packet corresponding to the second audio signal is transmitted to the opposite end device by using the call connection associated with the audio transmission path.

[0024] Optionally, collecting the second audio signal and determining a call connection associated with the second audio signal includes:

[0025] Acquire signal strengths of at least two third audio signals collected at the same time by audio transmission devices corresponding to the at least two audio transmission paths;

[0026] determining the second audio signal from the at least two third audio signals based on a signal strength difference between the at least two third audio signals;

[0027] Based on an audio transmission path corresponding to an audio transmission device that collects the second audio signal, a call connection associated with the audio transmission path is determined as a call connection associated with the second audio signal.

[0028] Optionally, the determining the second audio signal from the at least two third audio signals based on a signal strength difference between the at least two third audio signals includes:

[0029] If the signal strength difference between the at least two third audio signals is greater than or equal to a preset threshold, determining the third audio signal with greater signal strength among the at least two third audio signals as the second audio signal;

[0030] If the signal strength difference between the at least two third audio signals is less than a preset threshold, the at least two third audio signals are both determined as the second audio signals.

[0031] Optionally, in response to at least two call requests within the same call period, determining whether the terminal has established at least two audio transmission paths includes:

[0032] In response to at least two call requests within the same call period, it is determined whether the terminal has established at least two audio transmission paths according to whether the terminal is externally connected to at least one audio transmission device.

[0033] Optionally, the processing the voice data packet based on the audio transmission path associated with the call connection includes:

[0034] Obtaining identification information of an audio transmission path associated with the call connection;

[0035] A packet header carrying the identification information is added to the voice data packet.

[0036] Optionally, the method further includes:

[0037] Determining whether the number of the audio transmission paths established by the terminal is greater than or equal to the number of the call requests;

[0038] The step of associating the voice data packets corresponding to the at least two call requests with the at least two audio transmission paths respectively includes:

[0039] If the number of the audio transmission paths is greater than or equal to the number of the call requests, the voice data packets corresponding to the at least two call requests are associated with the at least two audio transmission paths respectively.

[0040] Optionally, the method further includes:

[0041] Determining whether the user identity information corresponding to each of the at least two call requests is preset user identity information;

[0042] If there is a target call request corresponding to the preset user identity information, obtaining the channel priority information corresponding to the preset user identity information; wherein the channel priority information indicates the priority between multiple audio transmission channels;

[0043] Based on the path priority information, determining a target audio transmission path from idle audio transmission paths of the terminal;

[0044] The step of associating the voice data packets corresponding to the at least two call requests with the at least two audio transmission paths respectively includes:

[0045] The voice data packet corresponding to the target call request is associated with the target audio transmission path.

[0046] According to a second aspect of the present disclosure, a communication device is provided, including:

[0047] A determination module, in response to at least two call requests in the same call period, determines whether the terminal has established at least two audio transmission paths; wherein the audio transmission devices corresponding to the at least two audio transmission paths are different;

[0048] an associating module, if the terminal has established the at least two audio transmission paths, associating the voice data packets corresponding to the at least two call requests with the at least two audio transmission paths respectively; wherein the voice data packets corresponding to different call requests are associated with different audio transmission paths;

[0049] The output module uses the at least two audio transmission paths to respectively output voice data packets associated with the audio transmission paths.

[0050] Optionally, the association module is further used to:

[0051] If the terminal has established the at least two audio transmission paths, based on the at least two audio transmission paths, respectively establish a call connection with the opposite-end device corresponding to each call request;

[0052] Based on each of the at least two call connections, obtaining a voice data packet corresponding to the call connection;

[0053] The voice data packet is processed based on the audio transmission path associated with the call connection; the processed voice data packet at least includes identification information of the audio transmission path used to transmit the voice data packet.

[0054] Optionally, the output module is further used for:

[0055] Decoding the voice data packet to obtain identification information of the audio transmission path carried by the voice data packet and a first audio signal corresponding to the voice data packet;

[0056] The first audio signal is outputted using the audio transmission path indicated by the identification information.

[0057] Optionally, the device further includes:

[0058] a processing module, configured to collect a second audio signal and determine a call connection associated with the second audio signal;

[0059] Encoding the second audio signal to obtain a voice data packet corresponding to the second audio signal;

[0060] The voice data packet is processed based on the audio transmission path associated with the call connection; the processed voice data packet at least includes identification information of the audio transmission path associated with the second audio signal.

[0061] Optionally, the processing module is further used to:

[0062] Acquire identification information of the audio transmission path carried in a voice data packet corresponding to the second audio signal;

[0063] Determining a call connection associated with the audio transmission path based on the identification information of the audio transmission path;

[0064] The voice data packet corresponding to the second audio signal is transmitted to the opposite-end device by utilizing the call connection associated with the audio transmission path.

[0065] Optionally, the processing module is also used to:

[0066] Acquire signal strengths of at least two third audio signals collected at the same time by audio transmission devices corresponding to the at least two audio transmission paths;

[0067] determining the second audio signal from the at least two third audio signals based on a signal strength difference between the at least two third audio signals;

[0068] Based on an audio transmission path corresponding to an audio transmission device that collects the second audio signal, a call connection associated with the audio transmission path is determined as a call connection associated with the second audio signal.

[0069] Optionally, the processing module is also used to:

[0070] If the signal strength difference between the at least two third audio signals is greater than or equal to a preset threshold, determining the third audio signal with greater signal strength among the at least two third audio signals as the second audio signal;

[0071] If the signal strength difference between the at least two third audio signals is less than a preset threshold, the at least two third audio signals are both determined as the second audio signals.

[0072] Optionally, the determining module is further used to:

[0073] In response to at least two call requests within the same call period, it is determined whether the terminal has established at least two audio transmission paths according to whether the terminal is externally connected to at least one audio transmission device.

[0074] Optionally, the processing module is also used to:

[0075] Obtaining identification information of an audio transmission path associated with the call connection;

[0076] A packet header carrying the identification information is added to the voice data packet.

[0077] Optionally, the communication device further includes:

[0078] A judgment module, used to determine whether the number of the audio transmission paths established by the terminal is greater than or equal to the number of call requests;

[0079] The output module is further used for:

[0080] If the number of the audio transmission paths is greater than or equal to the number of the call requests, the voice data packets corresponding to the at least two call requests are associated with the at least two audio transmission paths respectively.

[0081] Optionally, the judging module is further used to:

[0082] Determining whether the user identity information corresponding to each of the at least two call requests is preset user identity information;

[0083] If there is a target call request corresponding to the preset user identity information, obtaining the channel priority information corresponding to the preset user identity information; wherein the channel priority information indicates the priority between multiple audio transmission channels;

[0084] Based on the path priority information, determining a target audio transmission path from idle audio transmission paths of the terminal;

[0085] The output module is further used for:

[0086] The voice data packet corresponding to the target call request is associated with the target audio transmission path.

[0087] According to a third aspect of the present disclosure, a terminal device is provided, including:

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

[0089] A processor connected to the memory;

[0090] The processor is configured to execute the communication method as described in any one of the embodiments of the first aspect of the present disclosure.

[0091] The fourth aspect of the present disclosure provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the terminal device, the terminal device can execute the communication method as described in any embodiment of the first aspect of the present disclosure.

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

[0093] In the embodiment of the present disclosure, when at least two call requests are obtained within the same call period, by determining whether at least two audio transmission paths are established, and when it is determined that at least two audio transmission paths are established, the voice data packets corresponding to the at least two call requests are respectively associated with the at least two audio transmission paths, so that the voice data packets corresponding to the at least two call requests in the same call period can be respectively associated with different audio transmission paths; and then the voice data packets associated with the audio transmission paths are respectively output through the at least two audio transmission paths, so that the voice data packets corresponding to the at least two call requests can be transmitted within the same call period, that is, the concurrent transmission of voice data packets using at least two voice transmission paths is realized, which not only improves the transmission efficiency but also improves the user experience.

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

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

[0096] Figure 1 A communication method according to an exemplary embodiment of the present disclosure is shown in FIG. Figure 1 .

[0097] Figure 2 A communication method according to an exemplary embodiment of the present disclosure is shown in FIG. Figure 2 .

[0098] Figure 3 A communication method according to an exemplary embodiment of the present disclosure is shown in FIG. Figure 3 .

[0099] Figure 4 A communication method according to an exemplary embodiment of the present disclosure is shown in FIG. Figure 4 .

[0100] Figure 5 A communication method according to an exemplary embodiment of the present disclosure is shown in FIG. Figure 5 .

[0101] Figure 6 It is a schematic diagram showing the structure of a communication device according to an exemplary embodiment of the present disclosure.

[0102] Figure 7 The present invention is a block diagram of a terminal device according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION

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

[0104] The present disclosure provides a communication method. Figure 1 A communication method according to an exemplary embodiment of the present disclosure is shown in FIG. Figure 1 ,like Figure 1 As shown, the communication method includes:

[0105] Step S101, in response to at least two call requests in the same call period, determining whether the terminal has established at least two audio transmission paths; wherein the at least two audio transmission paths correspond to different audio transmission devices;

[0106] Step S102, if the terminal has established the at least two audio transmission paths, associating the voice data packets corresponding to the at least two call requests with the at least two audio transmission paths respectively; wherein the voice data packets corresponding to different call requests are associated with different audio transmission paths;

[0107] Step S103: using the at least two audio transmission paths to respectively output voice data packets associated with the audio transmission paths.

[0108] In the embodiment of the present disclosure, the communication method may be a communication method performed by a called terminal device and at least two calling terminal devices to simultaneously establish at least two call connections. The terminal device may be an electronic device that supports communication based on at least two SIM cards, such as a smart phone, a smart watch, or a tablet computer, and is not specifically limited to this.

[0109] In step S101, in response to at least two call requests initiated by at least two opposite-end devices (calling terminal devices) to a terminal device within the same call period, the terminal device may determine whether at least two audio transmission paths have been established.

[0110] The same call period may include the moment when at least two opposite-end devices simultaneously send call requests, or may include a preset period of time, such as one minute, five minutes, etc. Within the preset period of time, the at least two opposite-end devices successively send call requests, so that among all the call time periods between the at least two opposite-end devices and the terminal device, at least part of the call time periods are when the at least two opposite-end devices both talk to the terminal device.

[0111] The audio transmission path may be a transmission channel and line for voice data packets.

[0112] Usually, the terminal device is provided with only one audio transmission path, for example, a transmission path for voice data packets corresponding to a microphone or a receiver in the terminal device. Then, when the terminal device determines whether at least two audio transmission paths have been established, the audio transmission devices corresponding to the at least two audio transmission paths must be different.

[0113] In one embodiment, in response to at least two call requests in the same call period, determining whether the terminal has established at least two audio transmission paths in step S101 includes:

[0114] In response to at least two call requests within the same call period, it is determined whether the terminal has established at least two audio transmission paths according to whether the terminal is externally connected to at least one audio transmission device.

[0115] It is understandable that the terminal device has a built-in audio transmission path, and then the terminal device can determine whether the terminal device has established at least two audio transmission paths according to whether at least one audio transmission device is externally connected.

[0116] The audio transmission device may be an electronic device provided with at least one audio transmission path, such as a Bluetooth headset, a smart watch, etc., which is not specifically limited.

[0117] The audio transmission device can establish a connection with the terminal device via a wired communication line or a wireless communication channel to be externally connected to the terminal device.

[0118] In step S102, after the terminal device determines that at least two audio transmission paths have been established by executing step S101, the voice data packets corresponding to the at least two call requests sent by the opposite device can be associated with the at least two audio transmission paths respectively.

[0119] Among them, there is a one-to-one correspondence between the voice data packets corresponding to at least two call requests and at least two audio transmission paths; the voice data packets corresponding to each call request are associated with an audio transmission path, and the voice data packets corresponding to different call requests are associated with different audio transmission paths.

[0120] It can be understood that when the terminal device has at least two audio transmission paths, the terminal device can associate the voice data packet corresponding to each call request of at least two call requests with an audio transmission path, thereby obtaining the corresponding audio transmission path for each call request, thereby ensuring that the data packet corresponding to each call request is output only through one corresponding audio transmission path.

[0121] The method of associating an audio transmission path for the voice data packet corresponding to each call request can be selected through the software and hardware settings in the terminal device, and the embodiments of the present disclosure do not make specific limitations on this.

[0122] Exemplarily, the terminal device establishes a call connection through at least two call requests, so that when a voice data packet is received, the voice data packet can be processed by a modem module. For example, the modem module can demodulate the SIM card information and / or IP number carried in each voice data packet, and based on the SIM card information and / or IP number, the voice data packet corresponding to each call request can be associated with an audio transmission path.

[0123] It should be noted that the one-to-one correspondence between the voice data packets corresponding to the at least two call requests and the at least two audio transmission paths means that any one call request corresponds to only one audio transmission path.

[0124] In step S103, after the terminal device associates different audio transmission paths for voice data packets corresponding to different call requests by executing step S102, the terminal device can use the audio transmission path to output the voice data packets associated with the audio transmission path, thereby outputting at least two voice data packets based on the at least two audio transmission paths respectively.

[0125] It can be understood that each audio transmission path in the terminal device only outputs one associated voice data packet, so that there will be no confusion in the transmission of the voice data packet corresponding to each call request; and at least two audio transmission paths in the terminal device can output at least two voice data packets at the same time, so that at least two call requests corresponding to the at least two voice data packets can be carried out at the same time, thereby satisfying the user's demand for making at least two calls within the same call period and improving the user experience.

[0126] Each call request may correspond to a plurality of voice data packets, and the plurality of voice data packets are associated with one call request or one call connection.

[0127] Exemplarily, when the SIM card information carried in multiple voice data packets is the same, the multiple voice data packets may be associated with the same call connection based on the SIM card information.

[0128] In the embodiment of the present disclosure, when at least two call requests are obtained within the same call period, by determining whether at least two audio transmission paths are established, and when it is determined that at least two audio transmission paths are established, the voice data packets corresponding to the at least two call requests are respectively associated with the at least two audio transmission paths, so that the voice data packets corresponding to the at least two call requests in the same call period can be respectively associated with different audio transmission paths; and then the voice data packets associated with the audio transmission paths are respectively output through the at least two audio transmission paths, so that the voice data packets corresponding to the at least two call requests can be transmitted within the same call period, that is, the concurrent transmission of voice data packets using at least two voice transmission paths is realized, which not only improves the transmission efficiency but also improves the user experience.

[0129] Optional, Figure 2 A communication method according to an exemplary embodiment of the present disclosure is shown in FIG. Figure 2 ,like Figure 2 As shown, in step S102, if the terminal has established the at least two audio transmission paths, the voice data packets corresponding to the at least two call requests are respectively associated with the at least two audio transmission paths, including:

[0130] Step S201, if the terminal has established at least two audio transmission paths, based on the at least two audio transmission paths, respectively establish a call connection with a peer device corresponding to each call request;

[0131] Step S203, based on each of the at least two call connections, obtaining a voice data packet corresponding to the call connection;

[0132] Step S203, processing the voice data packet based on the audio transmission path associated with the call connection; the processed voice data packet at least includes identification information of the audio transmission path used to transmit the voice data packet.

[0133] In the embodiment of the present disclosure, after the terminal device determines through step S101 that at least two call requests have been received and at least two audio transmission paths have been established, it can execute step S201, and in response to the user's connection instruction for the at least two call requests, establish a call connection with the opposite device corresponding to each of the call requests based on the at least two audio transmission paths.

[0134] It can be understood that when the terminal device determines that at least two audio transmission paths have been established, it can respond to the user's connection instruction for the at least two call requests, establish at least two call connections with the at least two call requests, and correspond each of the at least two audio transmission paths to a call connection, so that each of the at least two audio transmission paths establishes a one-to-one correspondence with each of the at least two opposite-end devices corresponding to the at least two call requests, so that each opposite-end device that successfully establishes a call connection with the terminal is respectively associated with an audio transmission path.

[0135] Exemplarily, assuming that the terminal device has received a first call request and established a first call connection, the terminal device may allocate a first audio transmission path for the first call connection, such as a transmission path in a Bluetooth headset. When the first call connection is in progress, the terminal device receives a second call request, and the terminal device will allocate a second audio transmission path different from the first audio transmission path for the second call connection based on the information corresponding to the first audio transmission path of the first call connection, such as a transmission path in the terminal itself.

[0136] In one embodiment, after receiving at least two call requests, the terminal device may output prompt information, and in response to an operation triggered by the user based on the prompt information, obtain a connection instruction of the user for the at least two call requests.

[0137] Among them, the prompt information can be an incoming call reminder, and the incoming call reminder includes a display interface, an incoming call ring, an incoming call vibration, etc.

[0138] In step S202, after executing step S201 to establish a call connection with the opposite end device corresponding to each call request, the terminal device can obtain a voice data packet corresponding to each call connection.

[0139] It is understandable that after the terminal device establishes a call connection with the opposite device, it can receive the voice data packet sent by the opposite device.

[0140] In step S203, after the terminal device executes step S202 to obtain the voice data packet corresponding to the call connection, the terminal device can process the voice data packet obtained in step S202 based on the audio transmission path associated with each call connection. The processed voice data packet at least includes the identification information of the audio transmission path used to transmit the voice data packet.

[0141] It is understandable that the terminal device can determine an audio transmission path for each call connection corresponding to the opposite device by executing step S201, and the terminal device can receive the voice data packet sent by each call connection by executing step S202. Then, in order to send the voice data packet to the audio transmission path determined by the call connection, the terminal device can add the identification information of the audio transmission path corresponding to the call connection in the voice data packet to ensure that the voice data packet is sent to the corresponding audio transmission path.

[0142] Among them, different audio transmission channels have different identification information.

[0143] In an embodiment of the present disclosure, the terminal device processes voice data packets corresponding to different call connections into voice data packets having identification information of corresponding audio transmission paths, so that based on the identification information in the voice data packets, at least two voice data packets can be associated with the at least two audio transmission paths.

[0144] Optionally, the step S103 of using the at least two audio transmission paths to respectively output voice data packets associated with the audio transmission paths includes:

[0145] Decoding the voice data packet to obtain identification information of the audio transmission path carried by the voice data packet and a first audio signal corresponding to the voice data packet;

[0146] The first audio signal is outputted using the audio transmission path indicated by the identification information.

[0147] In the embodiment of the present disclosure, the terminal device processes the voice data packet by executing steps S201 to S203, and after associating different audio transmission paths for the voice data packets corresponding to the different call requests, the voice data packet can be decoded to obtain the identification information of the audio transmission path carried in the voice data packet, and the first audio signal corresponding to the voice data packet.

[0148] The first audio signal is an audio signal transmitted by a peer device.

[0149] The corresponding audio transmission path can be obtained by using the identification information, and then the first audio signal in the voice data packet is output by using the corresponding audio transmission path.

[0150] Exemplarily, the terminal device may have a voice module (audio), and the voice module may decode the voice data packet. It is understandable that the voice module may perform analog-to-digital conversion on the voice data packet to obtain the first audio signal.

[0151] Based on the identification information of the audio transmission path obtained by decoding the voice module, the audio transmission path indicated by the identification information is determined, such as the transmission path in the Bluetooth headset. Subsequently, the voice module can transmit the first audio signal to the Bluetooth headset, and the Bluetooth headset outputs the first audio signal.

[0152] In the disclosed embodiment, the terminal device can obtain the identification information and the first audio signal in the voice data packet by decoding the voice data packet. Based on the identification information, the audio transmission path corresponding to the voice data packet is obtained, so as to output the first audio signal through the audio transmission path corresponding to the voice data packet, thereby completing the communication between the opposite device and the terminal device.

[0153] Optional, Figure 3 A communication method according to an exemplary embodiment of the present disclosure is shown in FIG. Figure 3 ,like Figure 3 As shown, the method further includes:

[0154] Step S301, collecting a second audio signal, and determining a call connection associated with the second audio signal;

[0155] Step S302, encoding the second audio signal to obtain a voice data packet corresponding to the second audio signal;

[0156] Step S303: Process the voice data packet based on the audio transmission path associated with the call connection; the processed voice data packet at least includes identification information of the audio transmission path associated with the second audio signal.

[0157] It should be noted that, after establishing a call connection with at least two call requests, the terminal device can also transmit the audio signal collected by the terminal device to the opposite device to achieve interaction between the terminal device and the opposite device.

[0158] In the embodiment of the present disclosure, after executing step S102, the terminal device can send a voice data packet to the opposite device that initiated the call request by executing steps S301 to S303 based on the audio transmission paths corresponding to the different call requests. It should be noted that steps S301 to S303 can be executed before step S103, can be executed after step S103, or can be executed simultaneously with step S103.

[0159] In step S301, the terminal device may collect audio to obtain a second audio signal through the terminal device itself or an audio transmission device externally connected to the terminal device; the terminal device may also determine a call connection associated with the second audio signal through the device that collects the second audio signal.

[0160] The second audio signal is an audio signal that a user using a terminal device needs to send to a peer device.

[0161] It can be understood that after going through steps S101 to S102, the terminal device can determine the correspondence between each call connection and the terminal device and the audio transmission device. Therefore, based on the audio transmission device used to collect audio, the call connection associated with the second audio signal can be determined.

[0162] In step S302, the terminal device may encode the second audio signal to convert the audio signal into a digital signal to obtain a corresponding voice data packet. The method of converting the audio signal into a digital signal may refer to the description in the relevant documents, and the present disclosure embodiment does not specifically limit this.

[0163] In step S303, the terminal device may process the voice data packet obtained in step S302 according to the audio transmission channel corresponding to the call connection obtained in step S301. The processed voice data packet at least includes identification information of the audio transmission path used to transmit the voice data packet.

[0164] It is understandable that the terminal device can determine an audio transmission path for the collected voice signal by executing step S301, and the terminal device can convert the collected voice signal into a voice data packet by executing step S302. Then, in order to send the voice data packet to the opposite end device of the call connection, the terminal device can include the identification information of the determined audio transmission path in the voice data packet, thereby ensuring that the voice data packet is transmitted to the opposite end device corresponding to the audio transmission path based on the identification information.

[0165] It should be noted that the steps S301 to S303 may be executed by a voice module in the terminal device.

[0166] In the embodiment of the present disclosure, the terminal device processes the audio information collected by different audio transmission devices into voice data packets with identification information of the corresponding audio transmission paths, so that based on the identification information in the voice data packets, the voice data packets collected by at least two audio transmission devices can be associated with the opposite devices corresponding to the at least two audio transmission paths, thereby achieving that at least two voice data packets can be sent to the corresponding opposite devices respectively.

[0167] Optionally, the method further includes:

[0168] Acquire identification information of the audio transmission path carried in a voice data packet corresponding to the second audio signal;

[0169] Determining a call connection associated with the audio transmission path based on the identification information of the audio transmission path;

[0170] The voice data packet corresponding to the second audio signal is transmitted to the opposite end device by using the call connection associated with the audio transmission path.

[0171] In the embodiment of the present disclosure, after the terminal device executes steps S301 to 303 to obtain a voice data packet with identification information corresponding to the audio transmission path, the terminal device can obtain the identification information of the audio transmission path carried in the voice data packet; based on the identification information of the audio transmission path, the terminal device can determine the audio transmission path associated with the second audio signal in the voice data packet, and then determine the call connection associated with the audio transmission path. Finally, the terminal device can use the call connection associated with the audio transmission path to transmit the voice data packet corresponding to the second audio signal to the opposite device.

[0172] The transmitting of the voice data packet corresponding to the second audio signal to the peer device may be to modulate the voice data packet and add SIM card information corresponding to the peer device to the voice data packet. Based on the SIM card information, the voice data packet may be transmitted to the peer device via the IP address indicated by the SIM card information.

[0173] It should be noted that this embodiment is different from the embodiment corresponding to step S301 to step S303, and can be executed by a modem module in the terminal device.

[0174] In an embodiment of the present disclosure, after obtaining the voice data packet corresponding to the second audio signal, the terminal device can obtain a call connection associated with the audio transmission path based on the identification information of the audio transmission path in the voice data packet, and then transmit the second audio signal to the opposite device corresponding to the call connection, thereby sending the voice data packet to the corresponding opposite device.

[0175] Optional, Figure 4 A communication method according to an exemplary embodiment of the present disclosure is shown in FIG. Figure 4 ,like Figure 4 As shown, the collecting of the second audio signal and determining the call connection associated with the second audio signal in step S301 includes:

[0176] Step S401, obtaining signal strengths of at least two third audio signals collected by audio transmission devices corresponding to the at least two audio transmission paths at the same time;

[0177] Step S402: determining the second audio signal from the at least two third audio signals based on a signal strength difference between the at least two third audio signals;

[0178] Step S403: Based on the audio transmission path corresponding to the audio transmission device that collects the second audio signal, determine the call connection associated with the audio transmission path as the call connection associated with the second audio signal.

[0179] It should be noted that the terminal device and the audio transmission device of the peripheral device can collect voice signals at the same time. In theory, the voice signals can be sent to each of the at least two peer devices at the same time. However, there are some application scenarios where the voice signals do not need to be sent to at least two peer devices. For example, the user covers the receiver of the terminal device with his hand and only wants to output the voice signal to the peer device corresponding to the Bluetooth headset. Therefore, when the terminal device collects the second audio signal, it is also necessary to perform certain processing on the second audio signal.

[0180] In the embodiment of the present disclosure, in step 401, the terminal device collects audio through the at least two audio transmission devices to obtain at least two third audio signals; based on the at least two third audio signals, the signal strength of the at least two third audio signals passing through the at least two audio transmission paths can be obtained.

[0181] The signal strength is proportional to the volume of the collected audio.

[0182] In step 402, the terminal device may determine an audio signal (ie, a second audio signal) that the user of the terminal device needs to send to the opposite device from the at least two third audio signals based on the signal strengths of the at least two third audio signals obtained in step S401.

[0183] It is understandable that when the user of the terminal device does not want to send the audio signal to the opposite end device corresponding to a call connection, the user may actively reduce the signal strength of the audio signal that can be collected by the audio transmission device corresponding to the call connection. Therefore, the second audio signal can be determined based on whether the signal strength of the at least two third audio signals meets the strength requirement of a normal call.

[0184] The strength requirement may be set according to actual experience, and the embodiments of the present disclosure do not specifically limit this.

[0185] In one embodiment, the step of determining the second audio signal from the at least two third audio signals based on a signal strength difference between the at least two third audio signals in step S402 includes:

[0186] If the signal strength difference between the at least two third audio signals is greater than or equal to a preset threshold, determining the third audio signal with greater signal strength among the at least two third audio signals as the second audio signal;

[0187] If the signal strength difference between the at least two third audio signals is less than a preset threshold, the at least two third audio signals are both determined as the second audio signals.

[0188] It should be noted that, in order to speed up the efficiency of confirming the signal strength of at least two third audio signals, the terminal device can compare the signal strengths of the at least two third audio signals to determine one or more second audio signals from the at least two third audio signals.

[0189] In the embodiment of the present disclosure, when comparing at least two third audio signals, the terminal device may determine the second audio signal based on a relationship between a signal strength difference between the at least two third audio signals and a preset threshold.

[0190] If the signal strength difference between the at least two third audio signals is greater than or equal to a preset threshold, that is, the signal strength of one third audio signal between the at least two third audio signals is too large and far exceeds the signal strength of other third audio signals, the third audio signal with the larger signal strength among the at least two third audio signals is determined as the second audio signal.

[0191] If the signal strength difference between the at least two third audio signals is less than a preset threshold, that is, the signal strength of each third audio signal between the at least two third audio signals is similar, the at least two third audio signals are both determined as the second audio signals.

[0192] It is understandable that if the signal strength difference is greater than or equal to the preset threshold, it indicates that the user has taken measures to reduce the strength of the collected audio of at least one of the audio transmission devices (which may include the terminal device). Therefore, the third audio signal of the audio transmission device with the best sound reception, that is, the third audio signal with a large signal strength, can be selected as the second audio signal.

[0193] In step S403, based on the second audio signal determined in step S402, the terminal device may determine the call connection associated with the audio transmission path corresponding to the second audio signal as the call connection associated with the second audio signal.

[0194] It can be understood that after the terminal device determines the second audio signal from the at least two third audio signals, it can obtain the audio transmission path corresponding to the audio transmission device that collects each second audio signal, and then determine the call connection corresponding to the audio transmission path, and determine the call connection as the call connection associated with the second audio signal.

[0195] In the embodiment of the present disclosure, by comparing the signal strengths of at least two third audio signals collected at the same time, the second audio signal that needs to be sent to the opposite device is determined, and then the second audio signal is transmitted. This can achieve screening of the audio signals collected by the audio transmission device and improve the accuracy of audio signal transmission.

[0196] Optionally, the processing of the voice data packet based on the audio transmission path associated with the call connection in step S203 and step S303 includes:

[0197] Obtaining identification information of an audio transmission path associated with the call connection;

[0198] A packet header carrying the identification information is added to the voice data packet.

[0199] In the disclosed embodiment, when processing a voice data packet, the terminal device can obtain the processed voice data packet by acquiring identification information of the audio transmission path associated with the call connection and adding a packet header carrying the identification information to the voice data packet.

[0200] Optionally, the communication method further includes:

[0201] Determining whether the number of the audio transmission paths established by the terminal is greater than or equal to the number of the call requests;

[0202] The step S102 of associating the voice data packets corresponding to the at least two call requests with the at least two audio transmission paths respectively includes:

[0203] If the number of the audio transmission paths is greater than or equal to the number of the call requests, the voice data packets corresponding to the at least two call requests are associated with the at least two audio transmission paths respectively.

[0204] In the embodiment of the present disclosure, before executing step 102, the terminal device may also determine the specific number of the at least two audio transmission paths established by the terminal and the number of the at least two call requests, and based on the relationship between the number of the audio transmission paths and the number of call requests, reasonably associate the voice data packets corresponding to different call requests with the at least two audio transmission paths.

[0205] The terminal device can determine whether the number of audio transmission paths established by the terminal is greater than or equal to the number of call requests, that is, the terminal device can determine whether the established audio transmission paths can ensure that any of the multiple call requests received has a corresponding audio transmission path.

[0206] If the number of audio transmission paths is greater than or equal to the number of call requests, that is, the number of volume transmission paths supports each call request to establish a call connection based on a separate audio transmission path, the voice data packets corresponding to the at least two call requests can be associated with the at least two audio transmission paths respectively.

[0207] Here, the process of associating the voice data packets corresponding to the at least two call requests with the at least two audio transmission paths respectively can refer to the embodiment in step S102, and for the sake of brevity of the specification, it will not be repeated here.

[0208] In one embodiment, if the number of the audio transmission paths is less than the number of call requests, that is, the number of volume transmission paths cannot support each call request to establish a call connection based on one audio transmission path, the first number of call requests among the at least two call requests can be rejected.

[0209] The first number is determined by the difference between the number of the audio transmission channels and the number of the call requests.

[0210] In the embodiment of the present disclosure, by determining the number of the audio transmission paths and the number of the call requests, it is possible to obtain whether at least two call requests within the same call period can establish a one-to-one correspondence with at least two audio transmission paths, so that based on the one-to-one correspondence, the voice data packets corresponding to the call requests can be associated with the at least two audio transmission paths respectively, thereby realizing the transmission of the voice data packets corresponding to the at least two call requests through the corresponding audio transmission channels within the same call period.

[0211] Optionally, the communication method further includes:

[0212] Determining whether the user identity information corresponding to each of the at least two call requests is preset user identity information;

[0213] If there is a target call request corresponding to the preset user identity information, obtaining the channel priority information corresponding to the preset user identity information; wherein the channel priority information indicates the priority between multiple audio transmission channels;

[0214] Based on the path priority information, determining a target audio transmission path from idle audio transmission paths of the terminal;

[0215] The step S102 of associating the voice data packets corresponding to the at least two call requests with the at least two audio transmission paths respectively includes:

[0216] The voice data packet corresponding to the target call request is associated with the target audio transmission path.

[0217] In an embodiment of the present disclosure, before executing step 102, the terminal device may also determine whether the user identity information corresponding to each of the at least two call requests is preset user identity information; based on the preset user identity information, determine that the call request corresponding to the preset identity information is a target call request.

[0218] The user identity information may be obtained from the SIM card information carried in the call request. The preset user identity information may be the SIM card information input or marked by the terminal user. That is, the SIM card information identified by the terminal user is compared with the SIM card information corresponding to the current call request. If the two pieces of information are the same, the current call request is the target call request.

[0219] Exemplarily, the terminal user may mark the user information corresponding to the first SIM card information (eg, mobile phone number A) as the preset identity information. When the terminal receives a call request from mobile phone number A, it determines that the call request from mobile phone number A is a target call request.

[0220] When the terminal device determines that there is a target call request corresponding to the preset user identity information in at least two calls, the terminal device can obtain the path priority information corresponding to the preset user identity information, that is, the priority between multiple audio transmission paths. Subsequently, the terminal device can determine the target audio transmission path from the idle audio transmission paths of the terminal device based on the priority between the multiple audio transmission paths.

[0221] The idle audio transmission path is an audio transmission path that has not yet established a call connection with the opposite device among the multiple audio transmission paths currently established by the terminal device.

[0222] In some embodiments, the path priority information corresponding to the preset user identity information can be obtained based on the preset user identity information, wherein the path priority information corresponding to each preset user identity information can be set according to the actual needs of the terminal user.

[0223] In one embodiment, the path priority information corresponding to each preset user identity information may be different.

[0224] Exemplarily, it is assumed that the terminal has three audio transmission channels (assuming that they are channel 1, channel 2, and channel 3), and the preset user identity information indicates preset user A and preset user B. The channel priority information corresponding to preset user A may be: channel 1 takes precedence over channel 2, and channel 2 takes precedence over channel 3. The channel priority information corresponding to preset user B may be: channel 2 takes precedence over channel 1, and channel 1 takes precedence over channel 3.

[0225] As another example, assuming that the terminal receives a target call request, the channel priority information can be determined according to the preset user A corresponding to the target call request: channel 1 takes precedence over channel 2, and channel 2 takes precedence over channel 3. Then, channel 1 is selected as the target audio transmission channel from the three idle channels; if another target call request is received in the same time period, the channel priority information can be determined according to the preset user B corresponding to the target call request: channel 2 takes precedence over channel 1, and channel 1 takes precedence over channel 3, and channel 2 is selected as the target audio transmission channel from the remaining two channels.

[0226] In one embodiment, the path priority information corresponding to each preset user identity information may be the same.

[0227] For example, assuming that the terminal has three audio transmission channels (assuming they are channel 1, channel 2, and channel 3), the terminal user can set the channel priority information corresponding to the preset user identity information to be: channel 1 takes precedence over channel 2, and channel 2 takes precedence over channel 3. In other words, the channel priority information corresponding to any target call request is: channel 1 takes precedence over channel 2, and channel 2 takes precedence over channel 3.

[0228] As another example, assuming that the terminal receives a target call request, it can select the highest channel (channel 1) from the three channels as the target audio transmission channel based on the channel priority information corresponding to the target call request; if another target call request is received within the same time period, it can select the highest channel (channel 2) from the remaining two channels (channel 2 and channel 3) as the target audio transmission channel based on the channel priority information corresponding to the target call request.

[0229] After determining the target audio transmission path, the terminal device can associate the voice data packet corresponding to the target call request with the target audio transmission path.

[0230] It can be understood that after the terminal device determines the audio transmission path with the highest priority among all idle audio transmission paths, it can associate the voice data corresponding to the target call request with the audio transmission path with the highest priority, so as to allocate different audio transmission paths according to user identity information.

[0231] For example, assuming that the preset user identity information is preset user A, and the channel priority information corresponding to the preset user identity information is that the Bluetooth headset takes precedence over the terminal audio. Then, when the preset user A requests a call, the terminal device will prioritize the audio transmission channel in the Bluetooth headset for the preset user A, so that the terminal user can talk to the preset user A through the Bluetooth headset, meeting the private call needs of the terminal user and the preset user A.

[0232] In the embodiment of the present disclosure, the terminal device can determine whether a call request is a target call request based on the user identity information corresponding to the opposite device requesting the call; and when the call request is a target call request, obtain the path priority information corresponding to the user identity information requesting the call, thereby obtaining the target audio transmission path from the idle audio transmission path, thereby realizing the selection of the corresponding target audio transmission path based on the user identity information to meet the user's needs.

[0233] Next, combine Figures 1 to 4 The method in the corresponding embodiment is used to illustrate the communication method in the embodiment of the present disclosure with a specific example.

[0234] First, a communication device is introduced, which can be a chip or system on chip in a terminal device, or a functional module in the terminal device for implementing the methods described in the above embodiments. The image processing device can implement the functions performed by the terminal device in the above embodiments, and these functions can be implemented by hardware executing corresponding software. These hardware or software include one or more modules corresponding to the above functions.

[0235] The communication device comprises: a modulation and demodulation module and an audio module, wherein the modulation and demodulation module and the audio module can be integrated into one hardware or software, or can be respectively configured as a plurality of hardware or software.

[0236] Figure 5 A communication method according to an exemplary embodiment of the present disclosure is shown in FIG. Figure 5 ,like Figure 5 As shown, the communication method includes:

[0237] Step S501, in response to at least two call requests in the same call period, determining whether the terminal has established at least two audio transmission paths.

[0238] It is understandable that the audio module in the terminal device confirms that the first call is established and receives a second call request during the first call. Then, when it is confirmed that the terminal is connected to the Bluetooth headset and the terminal supports DSDA, a pop-up window prompts the user whether to agree to the voice dual-channel solution.

[0239] Step S502: Based on the at least two audio transmission paths (which may be the terminal and the Bluetooth headset), a call connection is established with each opposite-end device corresponding to the call request.

[0240] It is understandable that after the terminal device confirms that the user agrees to the voice dual-channel solution, it determines the audio transmission path corresponding to the first call; if the first call is answered by a Bluetooth headset, the second call is set to be answered by a microphone or hands-free.

[0241] Step S503, obtaining a voice data packet corresponding to the call connection, and processing the voice data packet.

[0242] It is understandable that if the first call is answered by a Bluetooth headset, the modem module adds a header corresponding to the Bluetooth headset audio transmission path when processing the IP-based voice transmission packet (VoIP packet) sent by the peer device, and negotiates with the voice module. If the second call is answered by a terminal receiver, the modem module adds a header corresponding to the terminal receiver audio transmission path when processing the IP-based voice transmission packet sent by the peer device, and negotiates with the voice module.

[0243] Step S504: based on each of the at least two call connections, obtain a voice data packet corresponding to the call connection.

[0244] It can be understood that the modem module sends the VoIP packet with the header added to the voice module, the voice module decodes the corresponding VoIP packet, parses the header, and selects the corresponding audio path according to the pre-negotiated regulations. The voice data packet corresponding to the Bluetooth headset is sent to the Bluetooth for playback, and the voice data packet corresponding to the microphone is sent to the terminal microphone for playback.

[0245] Step S505: collect a second audio signal, and determine a call connection associated with the second audio signal.

[0246] It can be understood that the voice module receives the voice signal collected from the Bluetooth headset and the terminal microphone to obtain the second audio signal, and the second audio signal needs to be sent to the call connection associated with the second audio signal.

[0247] Step S506: encode the second audio signal to obtain a voice data packet corresponding to the second audio signal; and process the voice data packet based on the audio transmission path associated with the call connection.

[0248] It is understandable that the voice module can encode the voice signal collected by the Bluetooth headset to form a VoIP packet. The voice module can also add a header corresponding to the Bluetooth headset audio transmission path to the VoIP packet based on the Bluetooth headset, and then send it to the modem module. The voice module can encode the voice signal collected by the terminal receiver to form a VoIP packet. The voice module can also add a header corresponding to the terminal receiver audio transmission path to the VoIP packet based on the terminal receiver, and then send it to the modem module.

[0249] Step S507, obtaining identification information of the audio transmission path carried in the voice data packet corresponding to the second audio signal; based on the identification information of the audio transmission path, transmitting the voice data packet corresponding to the second audio signal to the opposite end device.

[0250] It is understandable that the modem module obtains the header of the VoIP packet, and based on the call connection corresponding to the header, sends the VoIP packet to the associated peer device. For example, if the VoIP packet has a header corresponding to the Bluetooth headset audio transmission path, the VoIP packet is sent to the peer device corresponding to the Bluetooth headset. If the VoIP packet has a header corresponding to the terminal receiver audio transmission path, the VoIP packet is sent to the peer device corresponding to the terminal receiver.

[0251] In the embodiment of the present disclosure, when at least two call requests are obtained within the same call period, by determining whether at least two audio transmission paths are established, and when it is determined that at least two audio transmission paths are established, the voice data packets corresponding to the at least two call requests are respectively associated with the at least two audio transmission paths, so that the voice data packets corresponding to the at least two call requests in the same call period can be respectively associated with different audio transmission paths; and then the voice data packets associated with the audio transmission paths are respectively output through the at least two audio transmission paths, so that the voice data packets corresponding to the at least two call requests can be transmitted within the same call period, that is, the concurrent transmission of voice data packets using at least two voice transmission paths is realized, which not only improves the transmission efficiency but also improves the user experience.

[0252] In addition, a second audio signal can be collected at the same time and sent to an associated peer device, so that different audio transmission paths are used to collect and receive voice data packets in the same time period, thereby achieving dual-channel voice.

[0253] The present disclosure provides a communication device. Figure 6 is a schematic diagram of a communication device according to an exemplary embodiment of the present disclosure. Figure 6 As shown, the communication device 600 includes:

[0254] The determination module 601 determines whether the terminal has established at least two audio transmission paths in response to at least two call requests in the same call period; wherein the audio transmission devices corresponding to the at least two audio transmission paths are different;

[0255] The associating module 602 associates the voice data packets corresponding to the at least two call requests with the at least two audio transmission paths respectively if the terminal has established the at least two audio transmission paths; wherein the voice data packets corresponding to different call requests are associated with different audio transmission paths;

[0256] The output module 603 uses the at least two audio transmission paths to respectively output voice data packets associated with the audio transmission paths.

[0257] Optionally, the association module 602 is further configured to:

[0258] If the terminal has established the at least two audio transmission paths, based on the at least two audio transmission paths, respectively establish a call connection with the opposite-end device corresponding to each call request;

[0259] Based on each of the at least two call connections, obtaining a voice data packet corresponding to the call connection;

[0260] The voice data packet is processed based on the audio transmission path associated with the call connection; the processed voice data packet at least includes identification information of the audio transmission path used to transmit the voice data packet.

[0261] Optionally, the output module 603 is further used to:

[0262] Decoding the voice data packet to obtain identification information of the audio transmission path carried by the voice data packet and a first audio signal corresponding to the voice data packet;

[0263] The first audio signal is outputted using the audio transmission path indicated by the identification information.

[0264] Optionally, the device further includes:

[0265] a processing module, configured to collect a second audio signal and determine a call connection associated with the second audio signal;

[0266] Encoding the second audio signal to obtain a voice data packet corresponding to the second audio signal;

[0267] The voice data packet is processed based on the audio transmission path associated with the call connection; the processed voice data packet at least includes identification information of the audio transmission path associated with the second audio signal.

[0268] Optionally, the processing module is further used to:

[0269] Acquire identification information of the audio transmission path carried in a voice data packet corresponding to the second audio signal;

[0270] Determining a call connection associated with the audio transmission path based on the identification information of the audio transmission path;

[0271] The voice data packet corresponding to the second audio signal is transmitted to the opposite-end device by utilizing the call connection associated with the audio transmission path.

[0272] Optionally, the processing module is also used to:

[0273] Acquire signal strengths of at least two third audio signals collected at the same time by audio transmission devices corresponding to the at least two audio transmission paths;

[0274] determining the second audio signal from the at least two third audio signals based on a signal strength difference between the at least two third audio signals;

[0275] Based on an audio transmission path corresponding to an audio transmission device that collects the second audio signal, a call connection associated with the audio transmission path is determined as a call connection associated with the second audio signal.

[0276] Optionally, the processing module is also used to:

[0277] If the signal strength difference between the at least two third audio signals is greater than or equal to a preset threshold, determining the third audio signal with greater signal strength among the at least two third audio signals as the second audio signal;

[0278] If the signal strength difference between the at least two third audio signals is less than a preset threshold, the at least two third audio signals are both determined as the second audio signals.

[0279] Optionally, the determining module 601 is further configured to:

[0280] In response to at least two call requests within the same call period, it is determined whether the terminal has established at least two audio transmission paths according to whether the terminal is externally connected to at least one audio transmission device.

[0281] Optionally, the processing module is also used to:

[0282] Obtaining identification information of an audio transmission path associated with the call connection;

[0283] A packet header carrying the identification information is added to the voice data packet.

[0284] Optionally, the communication device further includes:

[0285] A judgment module, used to determine whether the number of the audio transmission paths established by the terminal is greater than or equal to the number of call requests;

[0286] The output module is further used for:

[0287] If the number of the audio transmission paths is greater than or equal to the number of the call requests, the voice data packets corresponding to the at least two call requests are associated with the at least two audio transmission paths respectively.

[0288] Optionally, the judging module is further used to:

[0289] Determining whether the user identity information corresponding to each of the at least two call requests is preset user identity information;

[0290] If there is a target call request corresponding to the preset user identity information, obtaining the channel priority information corresponding to the preset user identity information; wherein the channel priority information indicates the priority between multiple audio transmission channels;

[0291] Based on the path priority information, determining a target audio transmission path from idle audio transmission paths of the terminal;

[0292] The output module is further used for:

[0293] The voice data packet corresponding to the target call request is associated with the target audio transmission path.

[0294] It should be noted that the above-mentioned determination module 601, association module 602, output module 603 and judgment module can be the same module as the above-mentioned modulation and demodulation module and voice module, and can all execute the functions that can be executed by the terminal device in one or more of the above-mentioned embodiments.

[0295] Figure 7 1 is a block diagram of a terminal device according to an exemplary embodiment of the present disclosure. For example, the terminal device may be a smart phone, a tablet computer, etc.

[0296] Reference Figure 7 The terminal device 80 may include one or more of the following components: a processing component 83, a memory 84, a power component 85, a multimedia component 86, an audio component 87, an input / output (I / O) interface 88, a sensor component 89, and a communication component 810.

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

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

[0299] The power supply component 85 provides power to various components of the terminal device 80. The power supply component 85 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the terminal device 80.

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

[0301] The audio component 87 is configured to output and / or input audio signals. For example, the audio component 87 includes a microphone (MIC), and when the terminal device 80 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 84 or sent via the communication component 810. In some embodiments, the audio component 87 also includes a speaker for outputting audio signals.

[0302] I / O interface 88 provides an interface between processing component 83 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button and lock button.

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

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

[0305] In an exemplary embodiment, the terminal device 80 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0306] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 84 including instructions, and the instructions can be executed by the processor 820 of the terminal device 80 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

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

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

Claims

1. A communication method, characterized in that: The method comprises: In response to at least two call requests within the same call period, determining whether the terminal has established at least two audio transmission paths; wherein the audio transmission devices corresponding to the at least two audio transmission paths are different; If the terminal has established the at least two audio transmission paths, the voice data packets corresponding to the at least two call requests are respectively associated with the at least two audio transmission paths; wherein the voice data packets corresponding to different call requests are associated with different audio transmission paths; The at least two audio transmission paths are used to respectively output voice data packets associated with the audio transmission paths.

2. The communication method according to claim 1, characterized in that: If the terminal has established the at least two audio transmission paths, associating the voice data packets corresponding to the at least two call requests with the at least two audio transmission paths respectively, including: If the terminal has established the at least two audio transmission paths, based on the at least two audio transmission paths, respectively establish a call connection with the opposite-end device corresponding to each call request; Based on each of the at least two call connections, obtaining a voice data packet corresponding to the call connection; The voice data packet is processed based on the audio transmission path associated with the call connection; the processed voice data packet at least includes identification information of the audio transmission path used to transmit the voice data packet.

3. The communication method according to claim 2, characterized in that: The step of utilizing the at least two audio transmission paths to respectively output voice data packets associated with the audio transmission paths comprises: Decoding the voice data packet to obtain identification information of the audio transmission path carried by the voice data packet and a first audio signal corresponding to the voice data packet; The first audio signal is outputted using the audio transmission path indicated by the identification information.

4. The communication method according to claim 1, characterized in that: The method further comprises: collecting a second audio signal, and determining a call connection associated with the second audio signal; Encoding the second audio signal to obtain a voice data packet corresponding to the second audio signal; The voice data packet is processed based on the audio transmission path associated with the call connection; the processed voice data packet at least includes identification information of the audio transmission path associated with the second audio signal.

5. The communication method according to claim 4, characterized in that: The method further comprises: Acquire identification information of the audio transmission path carried in a voice data packet corresponding to the second audio signal; Determining a call connection associated with the audio transmission path based on the identification information of the audio transmission path; The voice data packet corresponding to the second audio signal is transmitted to the opposite end device by using the call connection associated with the audio transmission path.

6. The communication method according to claim 4, characterized in that: The collecting the second audio signal and determining the call connection associated with the second audio signal includes: Acquire signal strengths of at least two third audio signals collected at the same time by audio transmission devices corresponding to the at least two audio transmission paths; determining the second audio signal from the at least two third audio signals based on a signal strength difference between the at least two third audio signals; Based on an audio transmission path corresponding to an audio transmission device that collects the second audio signal, a call connection associated with the audio transmission path is determined as a call connection associated with the second audio signal.

7. The communication method according to claim 6, characterized in that: The step of determining the second audio signal from the at least two third audio signals based on a signal strength difference between the at least two third audio signals comprises: If the signal strength difference between the at least two third audio signals is greater than or equal to a preset threshold, determining the third audio signal with greater signal strength among the at least two third audio signals as the second audio signal; If the signal strength difference between the at least two third audio signals is less than a preset threshold, the at least two third audio signals are both determined as the second audio signals.

8. The communication method according to claim 1, characterized in that: The step of determining, in response to at least two call requests within the same call period, whether the terminal has established at least two audio transmission paths comprises: In response to at least two call requests within the same call period, it is determined whether the terminal has established at least two audio transmission paths according to whether the terminal is externally connected to at least one audio transmission device.

9. The communication method according to claim 2 or 4, characterized in that: The processing of the voice data packet based on the audio transmission path associated with the call connection includes: Obtaining identification information of an audio transmission path associated with the call connection; A packet header carrying the identification information is added to the voice data packet.

10. The communication method according to claim 1, characterized in that: The method further comprises: Determining whether the number of the audio transmission paths established by the terminal is greater than or equal to the number of the call requests; The step of associating the voice data packets corresponding to the at least two call requests with the at least two audio transmission paths respectively includes: If the number of the audio transmission paths is greater than or equal to the number of the call requests, the voice data packets corresponding to the at least two call requests are associated with the at least two audio transmission paths respectively.

11. The communication method according to claim 1, characterized in that: The method further comprises: Determining whether the user identity information corresponding to each of the at least two call requests is preset user identity information; If there is a target call request corresponding to the preset user identity information, obtaining the channel priority information corresponding to the preset user identity information; wherein the channel priority information indicates the priority between multiple audio transmission channels; Based on the path priority information, determining a target audio transmission path from idle audio transmission paths of the terminal; The step of associating the voice data packets corresponding to the at least two call requests with the at least two audio transmission paths respectively includes: The voice data packet corresponding to the target call request is associated with the target audio transmission path.

12. A communication device, characterized in that: The device comprises: A determination module, in response to at least two call requests in the same call period, determines whether the terminal has established at least two audio transmission paths; wherein the audio transmission devices corresponding to the at least two audio transmission paths are different; an associating module, if the terminal has established the at least two audio transmission paths, associating the voice data packets corresponding to the at least two call requests with the at least two audio transmission paths respectively; wherein the voice data packets corresponding to different call requests are associated with different audio transmission paths; The output module uses the at least two audio transmission paths to respectively output voice data packets associated with the audio transmission paths.

13. A terminal device, characterized in that: include: a memory for storing processor-executable instructions; A processor connected to the memory; The processor is configured to execute the communication method according to any one of claims 1 to 11.

14. A non-transitory computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of a computer, the computer is enabled to execute the communication method according to any one of claims 1 to 11.