WO2020056665A1 - Voice communication control method and system - Google Patents

Voice communication control method and system Download PDF

Info

Publication number
WO2020056665A1
WO2020056665A1 PCT/CN2018/106701 CN2018106701W WO2020056665A1 WO 2020056665 A1 WO2020056665 A1 WO 2020056665A1 CN 2018106701 W CN2018106701 W CN 2018106701W WO 2020056665 A1 WO2020056665 A1 WO 2020056665A1
Authority
WO
WIPO (PCT)
Prior art keywords
voice
communication
terminal
voice information
priority
Prior art date
Application number
PCT/CN2018/106701
Other languages
French (fr)
Chinese (zh)
Inventor
徐海林
李可
陈伟
Original Assignee
海能达通信股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 海能达通信股份有限公司 filed Critical 海能达通信股份有限公司
Priority to PCT/CN2018/106701 priority Critical patent/WO2020056665A1/en
Publication of WO2020056665A1 publication Critical patent/WO2020056665A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits

Definitions

  • the present invention relates to the field of communication technology, and more particularly, to a method and system for controlling voice communication.
  • the microphone MIC, Microphone
  • the receiver Receiver
  • the speakers Speakers
  • Narrowband communication voice is usually broadcast from the speaker, while public network call voice Broadcast from the handset or from the speaker.
  • a dual-mode radio is performing voice communication over the public network, if it encounters narrowband voice communication access, or when a dual-mode radio is performing narrowband voice communication, if it encounters public network voice communication access, it will cause public Voice output conflicts between network voice communication and narrowband voice communication, which makes the user experience poor.
  • the present invention provides a voice communication control method and system to solve the technical problem of conflicting voice output between a public network voice communication and a narrow band voice communication of a current dual-mode walkie-talkie.
  • the present invention provides the following technical solutions:
  • a voice communication control method applied to a dual-mode communication terminal includes:
  • Performing a first voice communication with a first terminal which includes receiving and outputting first voice information sent by the first terminal;
  • the communication modes of the first voice information and the second voice information are different.
  • the receiving and outputting is performed according to the priority of the second voice communication and the first voice communication.
  • the first voice information sent by the first terminal, and / or the second voice information sent by the second terminal includes:
  • the output path of the dual-mode communication terminal includes a handset and a speaker; and the receiving and outputting the first voice information and the second voice information sent by the narrowband communication terminal include:
  • the output path for outputting the first voice information is the speaker, switching the output path for outputting the first voice communication to the handset, and using the speaker to output the second voice sent by the narrowband communication terminal information.
  • the receiving and outputting is performed according to the priority of the second voice communication and the first voice communication.
  • the first voice information sent by the first terminal, and / or the second voice information sent by the second terminal includes:
  • the priority of the second voice communication is equal to the priority of the first voice communication
  • the first voice information and the second voice information sent by the public network communication terminal are received and output.
  • the output path of the dual-mode communication terminal includes a handset and a speaker; wherein the output path for outputting the first voice information is the speaker; and the receiving and outputting the first voice information and the public network communication
  • the second voice information sent by the terminal includes:
  • the output path of the dual-mode communication terminal includes: a handset and a speaker; when the first terminal is a public network communication terminal and the second terminal is a narrowband communication terminal, After the first voice communication and before the receiving the second voice communication access request initiated by the second terminal, the method further includes:
  • the output path for outputting the first voice information is the speaker, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is less than a preset distance threshold, the first The output path of voice information is switched to the handset;
  • the output path for outputting the first voice information is the handset, and the movement state indicates that the distance between the dual-mode communication terminal and the user's ear is greater than a preset distance threshold, the first An output path of voice information is switched to the speaker;
  • the dual-mode When the output path for outputting the first voice information is the handset, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is not greater than a preset distance threshold, the dual-mode The distance between the communication terminal and the user's ear dynamically adjusts the output volume of the handset.
  • the method further includes:
  • the volume output of the speaker is adjusted according to the volume output parameter of the handset parameter.
  • a voice communication control system applied to a dual-mode communication terminal includes: a voice communication unit and a priority determination unit;
  • the voice communication unit is configured to perform first voice communication with a first terminal, and includes receiving and outputting first voice information sent by the first terminal;
  • a priority determining unit configured to determine a priority of the second voice communication and the first voice communication when a second voice communication access request initiated by a second terminal is received;
  • the voice communication unit is further configured to receive and output first voice information sent by the first terminal according to the priorities of the second voice communication and the first voice communication, and / or, the second The second voice information sent by the terminal;
  • the communication modes of the first voice information and the second voice information are different.
  • the voice communication unit is specifically configured to:
  • the output path of the dual-mode communication terminal includes a handset and a speaker; the system further includes: a motion state detection unit and an output path switching unit;
  • the motion state detecting unit is configured to detect a motion state of the dual-mode communication terminal
  • the output path switching unit is configured to perform the following operations after the first voice communication with the first terminal and before receiving the access request for the second voice communication initiated by the second terminal:
  • the output path for outputting the first voice information is the speaker, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is less than a preset distance threshold, the first The output path of voice information is switched to the handset;
  • the output path for outputting the first voice information is the handset, and the movement state indicates that the distance between the dual-mode communication terminal and the user's ear is greater than a preset distance threshold, the first An output path of voice information is switched to the speaker;
  • the dual-mode When the output path for outputting the first voice information is the handset, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is not greater than a preset distance threshold, the dual-mode The distance between the communication terminal and the user's ear dynamically adjusts the output volume of the handset;
  • the first terminal is a public network communication terminal
  • the second terminal is a narrowband communication terminal.
  • a storage medium stores computer program code in the storage medium, and when the computer program code is executed, the voice communication control method according to the foregoing is implemented.
  • a dual-mode communication terminal the terminal includes: a processor, a memory, and a communication module;
  • the communication module is configured to perform first voice communication with a first terminal, and includes receiving and outputting first voice information sent by the first terminal;
  • the processor is configured to determine a priority of the second voice communication and the first voice communication when a second voice communication access request initiated by a second terminal is received;
  • the communication module is further configured to receive and output the first voice information sent by the first terminal according to the priority of the second voice communication and the first voice communication, and / or the second terminal Sent second voice information;
  • the memory is configured to store first voice information sent by the first terminal, and / or second voice information sent by the second terminal;
  • the communication modes of the first voice information and the second voice information are different.
  • the voice communication control method and system provided by the present invention are applied to a dual-mode communication terminal, and the dual-mode communication terminal performs first voice communication with the first terminal, which includes receiving and outputting the
  • the priority of the second voice communication and the first voice communication is determined, and according to the first Priority of the two voice communication and the first voice communication, receiving and outputting the first voice information sent by the first terminal, and / or the second voice information sent by the second terminal, thereby achieving dual mode Intelligent switching of different voice communication services in the communication environment solves the problem of conflicting voice output between the public network voice communication and the narrowband voice communication of the current dual-mode communication terminal.
  • FIG. 1 is a flowchart of a voice communication control method according to an embodiment of the present application
  • FIG. 2 is an example diagram of a first communication scenario provided by an embodiment of the present application.
  • FIG. 3 is a flowchart of a voice communication control method according to an embodiment of the present application in a first communication scenario
  • FIG. 4 is an example diagram of a second communication scenario provided by an embodiment of the present application.
  • FIG. 5 is a flowchart of a voice communication control method provided in an embodiment of the present application in a second communication scenario
  • FIG. 6 is another flowchart of a voice communication control method according to an embodiment of the present application.
  • FIG. 7 is a general architecture diagram of a voice communication control system according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a voice communication control system according to an embodiment of the present application.
  • FIG. 9 is another schematic structural diagram of a voice communication control system according to an embodiment of the present application.
  • the voice control method and system provided in the embodiments of the present application are applied to a dual-mode communication terminal, and the dual-mode communication terminal can support a public network communication mode and a narrowband communication mode, such as a dual-mode radio.
  • FIG. 1 is a flowchart of a voice communication control method according to an embodiment of the present application.
  • the method includes:
  • S101 Perform a first voice communication with a first terminal, which includes receiving and outputting first voice information sent by the first terminal.
  • the dual-mode communication terminal can perform voice communication with a public network communication terminal and can also perform voice communication with a narrowband communication terminal.
  • the first terminal may be a public network communication terminal (such as a public network mobile phone) or a narrowband communication terminal (such as a narrowband walkie-talkie).
  • the first voice information sent by the first terminal may be received and the first voice information may be output, for example, by using a speaker or a handset. Playing the first voice message.
  • the first voice communication is voice communication in a public network communication mode, and the first voice information refers to voice information sent by a public network communication terminal;
  • the first terminal is a narrowband communication
  • the first voice communication is voice communication in a narrowband communication mode, and the first voice information refers to voice information sent by a narrowband communication terminal.
  • S102 When receiving an access request for a second voice communication initiated by a second terminal, determine a priority of the second voice communication and the first voice communication.
  • the process of the first voice communication between the dual-mode communication terminal and the first terminal it is possible to receive an access request for the second voice communication initiated by the second terminal, wherein the first voice communication and the second voice communication are respectively
  • the priorities of the first voice communication and the second voice communication must be determined separately.
  • S103 Receive and output the first voice information sent by the first terminal and / or the second voice information sent by the second terminal according to the priorities of the second voice communication and the first voice communication. .
  • the first voice communication is different from the second voice communication in the communication mode.
  • the first voice communication uses the public network communication mode and the second voice communication uses the narrowband communication mode, or the first voice communication uses the narrowband communication.
  • Mode and the second voice communication uses the public network communication mode.
  • the priority of the second voice communication and the first voice communication can be compared to determine whether to receive and output is
  • the first voice information is also the second voice information, or is the first voice information and the second voice information, thereby solving the problem caused when the dual-mode communication terminal performs the first voice communication and encounters the second voice communication access. Conflicts in speech output.
  • a speaker and a handset of a dual-mode communication terminal may also be used to output the first voice information and the second voice information, respectively.
  • the handset to output the first voice information and use the speaker to output the second voice information; or use the speaker to output the first voice information and use the handset to output the second voice information, thereby avoiding the use of a dual-mode communication terminal
  • the same output path is used to output the first voice information and the second voice information to cause a conflict.
  • the voice communication control method provided in this embodiment is applied to a dual-mode communication terminal.
  • the dual-mode communication terminal performs first voice communication with a first terminal, and includes receiving and outputting first voice information sent by the first terminal.
  • receives an access request for a second voice communication initiated by a second terminal determine the priority of the second voice communication and the first voice communication, and communicate with the first voice communication according to the second voice communication
  • Receiving and outputting the first voice information sent by the first terminal and / or the second voice information sent by the second terminal thereby implementing intelligent switching of different voice communication services in a dual-mode communication environment It solves the problem that the voice output between the public network voice communication and the narrow-band voice communication of the current dual-mode communication terminal conflicts with each other.
  • FIG. 2 is a schematic diagram of a first communication scenario provided by an embodiment of the present application
  • FIG. 3 is a flowchart of a voice communication control method provided by an embodiment of the present application under the first communication scenario.
  • the first terminal is a public network communication terminal
  • the second terminal is a narrowband communication terminal.
  • the method includes:
  • S201 Perform a first voice communication with a public network communication terminal, which includes receiving and outputting first voice information sent by the public network communication terminal.
  • S202 When receiving an access request for a second voice communication initiated by a narrowband communication terminal, determine a priority of the second voice communication and the first voice communication.
  • Steps S201-S202 are similar to steps S101-S102 in the foregoing embodiment. For details, refer to the content in the foregoing embodiment, and details are not described herein again.
  • S203 When the priority of the second voice communication is higher than the priority of the first voice communication, receive and output second voice information sent by the narrowband communication terminal, and terminate the first voice communication.
  • the second voice communication is preferentially processed, the second voice information sent by the narrowband communication terminal is preferentially received and output, and the dual-mode communication terminal and the public network communication are terminated
  • the first voice communication between the terminals can also send corresponding prompt information to the public network communication terminal at the same time, such as "the call ends, if there is an emergency, please leave a message" and so on.
  • the first voice communication is preferentially processed, and the first voice information sent by the public network communication terminal is continuously received and output, and the narrowband communication terminal may also be received.
  • the second voice information sent is recorded, and the second voice information is recorded.
  • the second voice information received is not voice output.
  • the user may also be prompted to view the narrowband recording in time.
  • a prompt interface pops up, and the prompt interface displays "Narrowband voicemail, please check the recording content", "Please check the narrowband voicemail” and so on.
  • the output path of the dual-mode communication terminal may include: a handset and a speaker; correspondingly, the step S205 may include:
  • the first voice information sent by the public network communication terminal may be output through the handset, or the first voice information sent by the public network communication terminal may be output through the speaker.
  • the speaker When the output path for outputting the first voice information is the handset, the speaker is used to output the second voice information sent by the narrowband communication terminal to achieve dual-channel output of the first voice information and the second voice information. Effectively avoid conflicts caused by the first voice information and the second voice information competing for the same output path.
  • the output path for outputting the first voice information is the speaker
  • the second voice information sent by the narrowband communication terminal can only be output through the speaker. Therefore, when the output path for outputting the first voice information is the speaker , It is necessary to first switch the output path for outputting the first voice communication to the handset, and then use the speaker to output the second voice information sent by the narrowband communication terminal to realize the first voice information and the second voice information. Dual-channel output, thereby avoiding voice output conflicts between the first voice communication and the second voice communication.
  • Steps S203-S205 may be used to implement step S103 in the foregoing embodiment.
  • the first terminal is a public network communication terminal and the second terminal is a narrowband communication terminal; when the priority of the second voice communication is high, the narrowband communication terminal is received and output When the priority of the second voice communication is low, continue to receive and output the first voice information, and receive the first voice message sent by the narrowband communication terminal.
  • Two voice messages and recording the second voice message; when the second voice communication has the same priority as the first voice communication, receiving and outputting the first voice message and the narrowband communication terminal The second voice information sent and the output channels of the first voice information and the second voice information are reasonably allocated, which provides a more humanized voice switching process for users, and realizes different voice communication services in a dual-mode communication environment. Intelligent switching, which solves the problem of conflicting voice output between the public network voice communication and narrowband voice communication of the current dual-mode communication terminal.
  • FIG. 4 is a schematic diagram of a second communication scenario provided by an embodiment of the present application
  • FIG. 5 is a flowchart of a voice communication control method provided by an embodiment of the present application in a second communication scenario.
  • the first terminal is a narrowband communication terminal
  • the second terminal is a public network communication terminal.
  • the method includes:
  • S301 Perform first voice communication with a narrowband communication terminal, including receiving and outputting first voice information sent by the narrowband communication terminal.
  • S302 When receiving an access request for a second voice communication initiated by a public network communication terminal, determine a priority of the second voice communication and the first voice communication.
  • Steps S301-S302 are similar to steps S101-S102 in the foregoing embodiment.
  • steps S101-S102 in the foregoing embodiment.
  • steps S301-S302 are similar to steps S101-S102 in the foregoing embodiment.
  • details refer to the content in the foregoing embodiment, and details are not described herein again.
  • S303 When the priority of the second voice communication is higher than the priority of the first voice communication, receive and output the second voice information sent by the public network communication terminal, and send the second voice information to the narrowband communication terminal. The first voice information is recorded, and the output of the first voice information is terminated.
  • the second voice communication is preferentially processed, and the second voice information sent by the public network communication terminal is preferentially received and output, but the dual-mode communication terminal may not be terminated
  • the first voice information sent by the narrowband communication terminal is recorded, and the output of the first voice information is terminated.
  • the user may also be prompted to check the narrowband recording in time and restore the normal voice output of the first voice information in time.
  • the first voice communication is preferentially processed, the first voice information sent by the narrowband communication terminal is continuously received and output, and the second voice communication initiated by the public network communication terminal is rejected Access to voice communications.
  • a prompt message that the dual-mode communication terminal is in a busy state may also be sent to the public network communication terminal.
  • the output path of the dual-mode communication terminal may include: a handset and a speaker; when the first terminal is a narrowband communication terminal, the output path for outputting the first voice information is the speaker; correspondingly, the Step S305 may include:
  • the handset is used to output the second voice information sent by the public network communication terminal, so as to realize the dual-channel output of the first voice information and the second voice information, which can prevent the first voice information and the second voice information from competing for the same output path. Conflict.
  • Steps S303-S305 can be used to implement step S103 in the foregoing embodiment.
  • the first terminal is a narrowband communication terminal and the second terminal is a public network communication terminal; when the priority of the second voice communication is high, the public network communication terminal is received and output Send the second voice information, record the first voice information sent by the narrowband communication terminal, and terminate the output of the first voice information; when the priority of the second voice communication is low, continue to receive And output the first voice information and deny access to the second voice communication; when the second voice communication has the same priority as the first voice communication, receive and output the first voice information and all
  • the second voice information sent by the public network communication terminal is described, and the output channels for outputting the first voice information and the second voice information are reasonably allocated, which provides a more user-friendly voice switching process for users and realizes dual-mode communication. Intelligent switching of different voice communication services in the environment solves the problem of conflicting voice output between the public network voice communication and the narrowband voice communication of the current dual-mode communication terminal .
  • FIG. 6 is another flowchart of a voice communication control method according to an embodiment of the present application.
  • the first terminal is a public network communication terminal
  • the second terminal is a narrowband communication terminal.
  • the output path of the dual-mode communication terminal may include a handset and a speaker.
  • the method includes:
  • S401 Perform a first voice communication with a public network communication terminal.
  • the process of the first voice communication between the dual-mode communication terminal and the public network communication terminal includes receiving and outputting the first voice information sent by the public network communication terminal.
  • step S402 Determine an output path for outputting the first voice information.
  • step S403 When the output path is the speaker, perform step S403; when the output path is the handset, perform step S409.
  • step S403 Determine whether the dual-mode communication terminal is close to the ear of the user. If yes, perform step S404; if not, perform step S403 again.
  • step S404 Determine whether the device distance is less than a preset distance threshold; if yes, perform step S405; if not, perform step S404 again.
  • the device distance refers to a distance between the dual-mode communication terminal and a user's ear.
  • S405 Switch the output path for outputting the first voice information to the handset.
  • step S406 Determine whether the device distance is greater than a preset distance threshold. If yes, go to step S407; if not, go to step S408.
  • a gravity sensor and a built-in gravity sensor in the dual-mode communication terminal can be used.
  • the distance sensor detects whether the user has taken the dual-mode communication terminal to the user's ear, and detects the distance between the dual-mode communication terminal and the ear according to the distance sensor, and directly meets the preset conditions when the preset conditions are met.
  • the output path for outputting the first voice information is switched to a handset (handset mode).
  • the output volume in the handset mode can be preset by the user.
  • the method further includes: detecting a motion state of the dual-mode communication terminal.
  • S408 Dynamically adjust the volume output parameter of the handset according to the distance between the dual-mode communication terminal and the user's ear.
  • steps S403-S408 when the output path for outputting the first voice information is the speaker, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is less than a preset distance threshold
  • the output path for outputting the first voice information is switched to the handset; when the output path for outputting the first voice information is the handset, and the motion state characterizes the dual-mode communication terminal and the user
  • the output path for outputting the first voice information is switched to the speaker; when the output path for outputting the first voice information is the handset, and the The movement state indicates that when the distance between the dual-mode communication terminal and the user's ear is not greater than a preset distance threshold, the output volume of the handset is dynamically adjusted according to the distance between the dual-mode communication terminal and the user's ear.
  • S410 Adjust the volume output parameter of the speaker according to the volume output parameter of the handset.
  • steps S409-S410 when the output path for outputting the first voice information is the handset, if an access request for the second voice communication initiated by the narrowband communication terminal is received, the output is performed according to the volume of the handset.
  • the parameter adjusts the volume output parameter of the speaker, so that when a narrow-band communication terminal such as a cluster or a conventional walkie-talkie is suddenly called in during the process of using the handset to receive public network voice information, it can effectively prevent the speaker from suddenly outputting a second voice at a large volume Information to the user ’s ears, thereby improving the user ’s calling experience.
  • the dual-mode communication terminal may record the correspondence between the volume level of the handset (one of the volume output parameters) and the distance of the device according to the behavior of the user to form a
  • the matching matching table between the volume level and the distance in the handset mode is called the first fitting matching table, wherein the volume level is the volume level of the handset that is manually adjusted by the user, and the device distance refers to the dual-mode communication terminal. The distance from the user's ear.
  • receiver_VolLevel K ⁇ Speaker_VolLevel, where receiver_VolLevel represents the volume level in the first fitting matching table, Speaker_VolLevel represents the volume level in the second fitting matching table, and the coefficient K is a fixed value.
  • adjusting the volume output parameter of the speaker according to the volume output parameter of the handset may be fitting the volume level of the handset with the volume level of the speaker, and according to the volume level of the handset, The coefficient relationship determines and sets the volume level of the speaker so that the output volume of the speaker is controlled within a reasonable range.
  • the volume level of the speaker may be automatically restored.
  • the first terminal is a public network communication terminal
  • the second terminal is a narrowband communication terminal, and an output module that outputs a first communication voice according to the motion state of the dual-mode communication terminal.
  • the volume output parameter of the speaker is adjusted according to the volume output parameter of the handset, so that the output volume of the speaker matches the output volume of the handset, so that The output volume of the speaker is controlled within a reasonable range, thereby improving the humanity of the volume control.
  • the embodiment of the present application also provides a corresponding voice communication control system, which is used to implement the voice communication control method provided by the embodiment of the present invention.
  • the technical content of the voice communication control system described below can be described with the above.
  • the technical contents of the voice communication control method are cross-referenced.
  • FIG. 7 is an overall architecture diagram of a voice communication control system according to an embodiment of the present application.
  • the voice communication control system mainly includes a voice path switching module 10 and a voice volume control module 20.
  • the voice path switching module 10 is configured to implement intelligent switching of voice output paths of different voice services in a dual-mode communication environment, and provide users with a more humanized voice switching process.
  • the voice volume control module 20 is used to provide an automatic volume control algorithm. Based on the gravity sensor and the distance sensor, fit the output volume of the earpiece and the speaker, and control the volume of the speaker within a reasonable range to protect the human ear from being damaged by strong sound To improve user calling experience.
  • FIG. 8 is a schematic structural diagram of a voice communication control system according to an embodiment of the present application.
  • the voice communication control system of this embodiment is configured to implement the voice communication control method of the foregoing embodiment. As shown in FIG. 8, the system includes a voice communication unit 100 and a priority determination unit 200.
  • the voice communication unit 100 is configured to perform first voice communication with a first terminal, and includes receiving and outputting first voice information sent by the first terminal;
  • a priority determining unit 200 configured to determine a priority of the second voice communication and the first voice communication when a second voice communication access request initiated by a second terminal is received;
  • the voice communication unit 100 is further configured to receive and output first voice information sent by the first terminal according to the priorities of the second voice communication and the first voice communication, and / or, the first The second voice information sent by the two terminals;
  • the communication modes of the first voice information and the second voice information are different.
  • the voice communication control system provided in this embodiment is applied to a dual-mode communication terminal.
  • the dual-mode communication terminal performs first voice communication with a first terminal, and includes receiving and outputting first voice information sent by the first terminal.
  • receives an access request for a second voice communication initiated by a second terminal determine the priority of the second voice communication and the first voice communication, and communicate with the first voice communication according to the second voice communication
  • Receiving and outputting the first voice information sent by the first terminal and / or the second voice information sent by the second terminal thereby implementing intelligent switching of different voice communication services in a dual-mode communication environment It solves the problem that the voice output between the public network voice communication and the narrow-band voice communication of the current dual-mode communication terminal conflicts with each other.
  • FIG. 9 is another schematic structural diagram of a voice communication control system according to an embodiment of the present application.
  • the voice communication control system of this embodiment includes the voice communication unit 100 and the priority determination unit 200 in the foregoing embodiment.
  • the output path of the dual-mode communication terminal may include a handset and a speaker.
  • the voice communication unit 100 is specifically configured to:
  • receiving and outputting the first voice information and the second voice information sent by the narrowband communication terminal includes:
  • the output path for outputting the first voice information is the speaker, switching the output path for outputting the first voice communication to the handset, and using the speaker to output the second voice sent by the narrowband communication terminal information.
  • the voice communication unit 100 is specifically configured to:
  • the priority of the second voice communication is equal to the priority of the first voice communication
  • the first voice information and the second voice information sent by the public network communication terminal are received and output.
  • the output path for outputting the first voice information is the speaker; the receiving and outputting the first voice information and the second voice information sent by the public network communication terminal include:
  • the system further includes: a motion state detection unit 300 and an output path switching unit 400;
  • the motion state detection unit 30 is configured to detect a motion state of the dual-mode communication terminal
  • the output path switching unit 400 is configured to perform the following operations after the first voice communication with the first terminal and before receiving the access request for the second voice communication initiated by the second terminal:
  • the output path for outputting the first voice information is the speaker, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is less than a preset distance threshold, the first The output path of voice information is switched to the handset;
  • the output path for outputting the first voice information is the handset, and the movement state indicates that the distance between the dual-mode communication terminal and the user's ear is greater than a preset distance threshold, the first An output path of voice information is switched to the speaker;
  • the dual-mode When the output path for outputting the first voice information is the handset, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is not greater than a preset distance threshold, the dual-mode The distance between the communication terminal and the user's ear dynamically adjusts the output volume of the handset;
  • the first terminal is a public network communication terminal
  • the second terminal is a narrowband communication terminal.
  • the output path for outputting the first voice information is the handset, if an access request for the second voice communication initiated by the narrowband communication terminal is received, the speaker's Volume output parameter.
  • the voice communication control system provided in this embodiment is directed to a case where the first terminal is a public network communication terminal and the second terminal is a narrowband communication terminal, and a case where the first terminal is a narrowband communication terminal and the second terminal is a public network communication terminal.
  • Different voice control strategies are adopted, and the output channels of the first voice information and the second voice information are reasonably allocated, which provides a more user-friendly voice switching process for users, and realizes the difference in the dual-mode communication environment.
  • the intelligent switching of voice communication services solves the problem of conflicting voice output between the public network voice communication and the narrowband voice communication of the current dual-mode communication terminal.
  • the first terminal is a public network communication terminal and the second terminal is a narrowband communication terminal
  • the first voice is dynamically switched according to the motion state of the dual-mode communication terminal and the output module that outputs the first communication voice.
  • the output path of the information is adapted to the user's usage habits, making the voice output control more humane.
  • the output path for outputting the first voice information is the handset, if the first For the access request of two voice communications, the volume output parameter of the speaker is adjusted according to the volume output parameter of the handset, so that the output volume of the speaker matches the output volume of the handset, and the output volume of the speaker is controlled within a reasonable range Inside, thereby improving the ergonomics of volume control.
  • An embodiment of the present application further provides a storage medium, where the computer program code is stored in the storage medium, and when the computer program code is executed, the voice communication control method as described in the foregoing embodiment is implemented.
  • An embodiment of the present application further provides a dual-mode communication terminal corresponding to the voice communication control method described in the foregoing embodiment.
  • the terminal includes: a processor, a memory, and a communication module.
  • the communication module is configured to perform first voice communication with a first terminal, and includes receiving and outputting first voice information sent by the first terminal;
  • the processor is configured to determine a priority of the second voice communication and the first voice communication when a second voice communication access request initiated by a second terminal is received;
  • the communication module is further configured to receive and output the first voice information sent by the first terminal according to the priority of the second voice communication and the first voice communication, and / or the second terminal Sent second voice information;
  • the memory is configured to store first voice information sent by the first terminal, and / or second voice information sent by the second terminal;
  • the communication modes of the first voice information and the second voice information are different.
  • the dual-mode communication terminal performs first voice communication with the first terminal, and includes receiving and outputting the first voice information sent by the first terminal, and receiving the second voice communication initiated by the second terminal.
  • the priority of the second voice communication and the first voice communication is determined, and according to the priority of the second voice communication and the first voice communication, the first terminal sends and receives the output And / or the second voice information sent by the second terminal, thereby realizing the intelligent switching of different voice communication services in a dual-mode communication environment, and solving the public network voice communication of the current dual-mode communication terminal.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The voice communication control method and system provided by the present invention are applied to a dual-mode communication terminal. The dual-mode communication terminal performs first voice communication with a first terminal, the first voice communication comprising receiving and outputting first voice information sent by the first terminal; determines the priorities of the second voice communication and of the first voice communication when receiving a second voice communication access request initiated by a second terminal; and receives and outputs, according to the priorities of the second voice communication and of the first voice communication, the first voice information sent by the first terminal, and/or second voice information sent by the second terminal. Thus, intelligent switching between different voice communication services in a dual-mode communication environment is implemented, thereby solving the problem of a conflict between voice outputs of public network voice communication and of narrowband voice communication of an existing dual-mode communication terminal.

Description

语音通信控制方法及系统Voice communication control method and system 技术领域Technical field
本发明涉及通信技术领域,更具体的说,涉及语音通信控制方法及系统。The present invention relates to the field of communication technology, and more particularly, to a method and system for controlling voice communication.
背景技术Background technique
随着专网通信技术的快速发展,在没有基站中继的情况下,仅仅依靠单机的射频发射进行通信,使得对讲机的通信距离远远达不到公网手机的水平。因此,双模对讲机(窄带通信+公网通信)已经成为当下专网通信领域的重要通信设备。With the rapid development of the private network communication technology, in the absence of a base station relay, only the radio frequency transmission of a single machine is used for communication, so that the communication distance of the radio is far below the level of a public network mobile phone. Therefore, dual-mode walkie-talkies (narrowband communication + public network communication) have become important communication devices in the field of private network communications.
目前大多数双模对讲机在设计过程中,麦克风(MIC,Microphone)、听筒(Receiver)和扬声器(Speakers)都是集成在一起的,窄带通信语音通常从扬声器播出,而公网通话语音既可以从听筒播出,也可以从扬声器播出。但是,当双模对讲机正在进行公网语音通信时,若遇到窄带语音通信接入,或者,当双模对讲机正在进行窄带语音通信时,若遇到公网语音通信接入,则会导致公网语音通信与窄带语音通信之间语音输出相互冲突,使得用户体验较差。At present, in the design process of most dual-mode walkie-talkies, the microphone (MIC, Microphone), the receiver (Receiver) and the speakers (Speakers) are integrated. Narrowband communication voice is usually broadcast from the speaker, while public network call voice Broadcast from the handset or from the speaker. However, when a dual-mode radio is performing voice communication over the public network, if it encounters narrowband voice communication access, or when a dual-mode radio is performing narrowband voice communication, if it encounters public network voice communication access, it will cause public Voice output conflicts between network voice communication and narrowband voice communication, which makes the user experience poor.
因此,目前迫切需要一种智能有效的语音通信控制方案,来解决双模对讲机公网语音通信与窄带语音通信之间的语音输出相互冲突的问题。Therefore, there is an urgent need for an intelligent and effective voice communication control solution to solve the problem of conflicting voice output between dual-mode radio public network voice communication and narrowband voice communication.
发明内容Summary of the Invention
有鉴于此,本发明提供了一种语音通信控制方法及系统,以解决目前双模对讲机的公网语音通信与窄带语音通信之间语音输出相互冲突的技术问题。In view of this, the present invention provides a voice communication control method and system to solve the technical problem of conflicting voice output between a public network voice communication and a narrow band voice communication of a current dual-mode walkie-talkie.
为实现上述目的,本发明提供如下技术方案:To achieve the above objective, the present invention provides the following technical solutions:
一种语音通信控制方法,应用于双模通信终端,所述方法包括:A voice communication control method applied to a dual-mode communication terminal. The method includes:
与第一终端进行第一语音通信,其中包括接收并输出所述第一终端发送的第一语音信息;Performing a first voice communication with a first terminal, which includes receiving and outputting first voice information sent by the first terminal;
当接收到第二终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级;Determining the priority of the second voice communication and the first voice communication when receiving an access request for a second voice communication initiated by the second terminal;
根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第 一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息;Receiving and outputting the first voice information sent by the first terminal and / or the second voice information sent by the second terminal according to the priorities of the second voice communication and the first voice communication;
其中,所述第一语音信息与所述第二语音信息的通信模式不同。Wherein, the communication modes of the first voice information and the second voice information are different.
优选的,当所述第一终端为公网通信终端,且所述第二终端为窄带通信终端时,所述根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息包括:Preferably, when the first terminal is a public network communication terminal and the second terminal is a narrowband communication terminal, the receiving and outputting is performed according to the priority of the second voice communication and the first voice communication. The first voice information sent by the first terminal, and / or the second voice information sent by the second terminal includes:
当所述第二语音通信的优先级高于所述第一语音通信的优先级时,接收并输出所述窄带通信终端发送的第二语音信息,且终止所述第一语音通信;When the priority of the second voice communication is higher than the priority of the first voice communication, receiving and outputting second voice information sent by the narrowband communication terminal, and terminating the first voice communication;
当所述第二语音通信的优先级低于所述第一语音通信的优先级时,继续接收并输出所述第一语音信息,且接收所述窄带通信终端发送的第二语音信息,并对所述第二语音信息进行录音;When the priority of the second voice communication is lower than the priority of the first voice communication, continue to receive and output the first voice information, and receive the second voice information sent by the narrowband communication terminal, and Recording the second voice information;
当所述第二语音通信的优先级等于所述第一语音通信的优先级时,接收并输出所述第一语音信息和所述窄带通信终端发送的第二语音信息。When the priority of the second voice communication is equal to the priority of the first voice communication, receiving and outputting the first voice information and the second voice information sent by the narrowband communication terminal.
优选的,所述双模通信终端的输出通路包括:听筒与扬声器;所述接收并输出所述第一语音信息和所述窄带通信终端发送的第二语音信息包括:Preferably, the output path of the dual-mode communication terminal includes a handset and a speaker; and the receiving and outputting the first voice information and the second voice information sent by the narrowband communication terminal include:
当输出所述第一语音信息的输出通路为所述听筒时,利用所述扬声器输出所述窄带通信终端发送的第二语音信息;When the output path for outputting the first voice information is the handset, use the speaker to output the second voice information sent by the narrowband communication terminal;
当输出所述第一语音信息的输出通路为所述扬声器时,将输出所述第一语音通信的输出通路切换为所述听筒,并利用所述扬声器输出所述窄带通信终端发送的第二语音信息。When the output path for outputting the first voice information is the speaker, switching the output path for outputting the first voice communication to the handset, and using the speaker to output the second voice sent by the narrowband communication terminal information.
优选的,当所述第一终端为窄带通信终端,且所述第二终端为公网通信终端时,所述根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息包括:Preferably, when the first terminal is a narrowband communication terminal and the second terminal is a public network communication terminal, the receiving and outputting is performed according to the priority of the second voice communication and the first voice communication. The first voice information sent by the first terminal, and / or the second voice information sent by the second terminal includes:
当所述第二语音通信的优先级高于所述第一语音通信的优先级时,接收并输出所述公网通信终端发送的第二语音信息,并对所述窄带通信终端发送的第一语音信息进行录音,且终止所述第一语音信息的输出;When the priority of the second voice communication is higher than the priority of the first voice communication, receiving and outputting the second voice information sent by the public network communication terminal, and Recording voice information, and terminating output of the first voice information;
当所述第二语音通信的优先级低于所述第一语音通信的优先级时,继续接收并输出所述第一语音信息,并拒绝所述第二语音通信的接入;When the priority of the second voice communication is lower than the priority of the first voice communication, continue to receive and output the first voice information, and deny access to the second voice communication;
当所述第二语音通信的优先级等于所述第一语音通信的优先级时,接收并 输出所述第一语音信息和所述公网通信终端发送的第二语音信息。When the priority of the second voice communication is equal to the priority of the first voice communication, the first voice information and the second voice information sent by the public network communication terminal are received and output.
优选的,双模通信终端的输出通路包括:听筒与扬声器;其中,输出所述第一语音信息的输出通路为所述扬声器;所述接收并输出所述第一语音信息和所述公网通信终端发送的第二语音信息包括:Preferably, the output path of the dual-mode communication terminal includes a handset and a speaker; wherein the output path for outputting the first voice information is the speaker; and the receiving and outputting the first voice information and the public network communication The second voice information sent by the terminal includes:
利用所述听筒输出所述公网通信终端发送的第二语音信息。Using the handset to output second voice information sent by the public network communication terminal.
优选的,所述双模通信终端的输出通路包括:听筒和扬声器;当所述第一终端为公网通信终端,且所述第二终端为窄带通信终端时,在所述与第一终端进行第一语音通信之后,且所述接收到第二终端发起的第二语音通信的接入请求之前,所述方法还包括:Preferably, the output path of the dual-mode communication terminal includes: a handset and a speaker; when the first terminal is a public network communication terminal and the second terminal is a narrowband communication terminal, After the first voice communication and before the receiving the second voice communication access request initiated by the second terminal, the method further includes:
检测所述双模通信终端的运动状态;Detecting a motion state of the dual-mode communication terminal;
当输出所述第一语音信息的输出通路为所述扬声器,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离小于预设距离阈值时,将输出所述第一语音信息的输出通路切换为所述听筒;When the output path for outputting the first voice information is the speaker, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is less than a preset distance threshold, the first The output path of voice information is switched to the handset;
当输出所述第一语音信息的输出通路为所述听筒,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离大于预设距离阈值时,将输出所述第一语音信息的输出通路切换为所述扬声器;When the output path for outputting the first voice information is the handset, and the movement state indicates that the distance between the dual-mode communication terminal and the user's ear is greater than a preset distance threshold, the first An output path of voice information is switched to the speaker;
当输出所述第一语音信息的输出通路为所述听筒,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离不大于预设距离阈值时,根据所述双模通信终端与用户耳部之间的距离动态调整所述听筒的输出音量。When the output path for outputting the first voice information is the handset, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is not greater than a preset distance threshold, the dual-mode The distance between the communication terminal and the user's ear dynamically adjusts the output volume of the handset.
优选的,所述方法还包括:Preferably, the method further includes:
当输出所述第一语音信息的输出通路为所述听筒时,若接收到窄带通信终端发起的第二语音通信的接入请求,则根据所述听筒的音量输出参数调整所述扬声器的音量输出参数。When the output path for outputting the first voice information is the handset, if an access request for the second voice communication initiated by the narrowband communication terminal is received, the volume output of the speaker is adjusted according to the volume output parameter of the handset parameter.
一种语音通信控制系统,应用于双模通信终端,所述系统包括:语音通信单元与优先级确定单元;A voice communication control system applied to a dual-mode communication terminal. The system includes: a voice communication unit and a priority determination unit;
所述语音通信单元,用于与第一终端进行第一语音通信,其中包括接收并输出所述第一终端发送的第一语音信息;The voice communication unit is configured to perform first voice communication with a first terminal, and includes receiving and outputting first voice information sent by the first terminal;
优先级确定单元,用于当接收到第二终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级;A priority determining unit, configured to determine a priority of the second voice communication and the first voice communication when a second voice communication access request initiated by a second terminal is received;
所述语音通信单元,还用于根据所述第二语音通信与所述第一语音通信的 优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息;The voice communication unit is further configured to receive and output first voice information sent by the first terminal according to the priorities of the second voice communication and the first voice communication, and / or, the second The second voice information sent by the terminal;
其中,所述第一语音信息与所述第二语音信息的通信模式不同。Wherein, the communication modes of the first voice information and the second voice information are different.
优选的,当所述第一终端为公网通信终端,且所述第二终端为窄带通信终端时,所述语音通信单元具体用于:Preferably, when the first terminal is a public network communication terminal and the second terminal is a narrowband communication terminal, the voice communication unit is specifically configured to:
当所述第二语音通信的优先级高于所述第一语音通信的优先级时,接收并输出所述窄带通信终端发送的第二语音信息,且终止所述第一语音通信;When the priority of the second voice communication is higher than the priority of the first voice communication, receiving and outputting second voice information sent by the narrowband communication terminal, and terminating the first voice communication;
当所述第二语音通信的优先级低于所述第一语音通信的优先级时,继续接收并输出所述第一语音信息,且接收所述窄带通信终端发送的第二语音信息,并对所述第二语音信息进行录音;When the priority of the second voice communication is lower than the priority of the first voice communication, continue to receive and output the first voice information, and receive the second voice information sent by the narrowband communication terminal, and Recording the second voice information;
当所述第二语音通信的优先级等于所述第一语音通信的优先级时,接收并输出所述第一语音信息和所述窄带通信终端发送的第二语音信息。When the priority of the second voice communication is equal to the priority of the first voice communication, receiving and outputting the first voice information and the second voice information sent by the narrowband communication terminal.
优选的,所述双模通信终端的输出通路包括听筒和扬声器;所述系统还包括:运动状态检测单元与输出通路切换单元;Preferably, the output path of the dual-mode communication terminal includes a handset and a speaker; the system further includes: a motion state detection unit and an output path switching unit;
所述运动状态检测单元,用于检测所述双模通信终端的运动状态;The motion state detecting unit is configured to detect a motion state of the dual-mode communication terminal;
所述输出通路切换单元,用于在所述与第一终端进行第一语音通信之后,且,所述接收到第二终端发起的第二语音通信的接入请求之前,执行以下操作:The output path switching unit is configured to perform the following operations after the first voice communication with the first terminal and before receiving the access request for the second voice communication initiated by the second terminal:
当输出所述第一语音信息的输出通路为所述扬声器,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离小于预设距离阈值时,将输出所述第一语音信息的输出通路切换为所述听筒;When the output path for outputting the first voice information is the speaker, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is less than a preset distance threshold, the first The output path of voice information is switched to the handset;
当输出所述第一语音信息的输出通路为所述听筒,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离大于预设距离阈值时,将输出所述第一语音信息的输出通路切换为所述扬声器;When the output path for outputting the first voice information is the handset, and the movement state indicates that the distance between the dual-mode communication terminal and the user's ear is greater than a preset distance threshold, the first An output path of voice information is switched to the speaker;
当输出所述第一语音信息的输出通路为所述听筒,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离不大于预设距离阈值时,根据所述双模通信终端与用户耳部之间的距离动态调整所述听筒的输出音量;When the output path for outputting the first voice information is the handset, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is not greater than a preset distance threshold, the dual-mode The distance between the communication terminal and the user's ear dynamically adjusts the output volume of the handset;
其中,所述第一终端为公网通信终端,且,所述第二终端为窄带通信终端。The first terminal is a public network communication terminal, and the second terminal is a narrowband communication terminal.
一种存储介质,所述存储介质中存储有计算机程序代码,所述计算机程序代码被运行时实现如前述所述的语音通信控制方法。A storage medium stores computer program code in the storage medium, and when the computer program code is executed, the voice communication control method according to the foregoing is implemented.
一种双模通信终端,所述终端包括:处理器、存储器和通信模块;A dual-mode communication terminal, the terminal includes: a processor, a memory, and a communication module;
所述通信模块,用于与第一终端进行第一语音通信,其中包括接收并输出所述第一终端发送的第一语音信息;The communication module is configured to perform first voice communication with a first terminal, and includes receiving and outputting first voice information sent by the first terminal;
所述处理器,用于当接收到第二终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级;The processor is configured to determine a priority of the second voice communication and the first voice communication when a second voice communication access request initiated by a second terminal is received;
所述通信模块,还用于根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息;The communication module is further configured to receive and output the first voice information sent by the first terminal according to the priority of the second voice communication and the first voice communication, and / or the second terminal Sent second voice information;
所述存储器,用于存储所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息;The memory is configured to store first voice information sent by the first terminal, and / or second voice information sent by the second terminal;
其中,所述第一语音信息与所述第二语音信息的通信模式不同。Wherein, the communication modes of the first voice information and the second voice information are different.
从上述的技术方案可以看出,本发明提供的语音通信控制方法及系统,应用于双模通信终端,所述双模通信终端与第一终端进行第一语音通信,其中包括接收并输出所述第一终端发送的第一语音信息,当接收到第二终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级,根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息,从而实现了双模通信环境下不同语音通信业务的智能切换,解决了目前双模通信终端的公网语音通信与窄带语音通信之间语音输出相互冲突的问题。As can be seen from the above technical solution, the voice communication control method and system provided by the present invention are applied to a dual-mode communication terminal, and the dual-mode communication terminal performs first voice communication with the first terminal, which includes receiving and outputting the When the first voice information sent by the first terminal receives an access request for the second voice communication initiated by the second terminal, the priority of the second voice communication and the first voice communication is determined, and according to the first Priority of the two voice communication and the first voice communication, receiving and outputting the first voice information sent by the first terminal, and / or the second voice information sent by the second terminal, thereby achieving dual mode Intelligent switching of different voice communication services in the communication environment solves the problem of conflicting voice output between the public network voice communication and the narrowband voice communication of the current dual-mode communication terminal.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can be obtained according to the provided drawings without paying creative labor.
图1为本申请实施例提供的语音通信控制方法的一种流程图;FIG. 1 is a flowchart of a voice communication control method according to an embodiment of the present application;
图2为本申请实施例提供的第一通信场景的示例图;FIG. 2 is an example diagram of a first communication scenario provided by an embodiment of the present application; FIG.
图3为本申请实施例提供的语音通信控制方法在第一通信场景下的流程图;3 is a flowchart of a voice communication control method according to an embodiment of the present application in a first communication scenario;
图4为本申请实施例提供的第二通信场景的示例图;FIG. 4 is an example diagram of a second communication scenario provided by an embodiment of the present application; FIG.
图5为本申请实施例提供的语音通信控制方法在第二通信场景下的流 程图;5 is a flowchart of a voice communication control method provided in an embodiment of the present application in a second communication scenario;
图6为本申请实施例提供的语音通信控制方法的另一种流程图;6 is another flowchart of a voice communication control method according to an embodiment of the present application;
图7为本申请实施例提供的语音通信控制系统的总体架构图;FIG. 7 is a general architecture diagram of a voice communication control system according to an embodiment of the present application; FIG.
图8为本申请实施例提供的语音通信控制系统的一种结构示意图;8 is a schematic structural diagram of a voice communication control system according to an embodiment of the present application;
图9为本申请实施例提供的语音通信控制系统的另一种结构示意图。FIG. 9 is another schematic structural diagram of a voice communication control system according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In the following, the technical solutions in the embodiments of the present invention will be clearly and completely described with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本申请实施例提供的语音控制方法及系统,应用于双模通信终端,所述双模通信终端可支持公网通信模式与窄带通信模式,如,双模对讲机。The voice control method and system provided in the embodiments of the present application are applied to a dual-mode communication terminal, and the dual-mode communication terminal can support a public network communication mode and a narrowband communication mode, such as a dual-mode radio.
请参阅图1,图1为本申请实施例提供的语音通信控制方法的一种流程图。Please refer to FIG. 1. FIG. 1 is a flowchart of a voice communication control method according to an embodiment of the present application.
如图1所示,所述方法包括:As shown in FIG. 1, the method includes:
S101:与第一终端进行第一语音通信,其中包括接收并输出所述第一终端发送的第一语音信息。S101: Perform a first voice communication with a first terminal, which includes receiving and outputting first voice information sent by the first terminal.
双模通信终端既可以与公网通信终端进行语音通信,也可以与窄带通信终端进行语音通信。相应的,所述第一终端既可以是公网通信终端(如公网手机),也可以是窄带通信终端(如窄带对讲机)。The dual-mode communication terminal can perform voice communication with a public network communication terminal and can also perform voice communication with a narrowband communication terminal. Correspondingly, the first terminal may be a public network communication terminal (such as a public network mobile phone) or a narrowband communication terminal (such as a narrowband walkie-talkie).
在双模通信终端与第一终端进行第一语音通信的过程中,可以接收所述第一终端发送的第一语音信息,并将所述第一语音信息进行输出,例如,利用扬声器或听筒来播放所述第一语音信息。During the first voice communication between the dual-mode communication terminal and the first terminal, the first voice information sent by the first terminal may be received and the first voice information may be output, for example, by using a speaker or a handset. Playing the first voice message.
当第一终端为公网通信终端时,所述第一语音通信为公网通信模式的语音通信,所述第一语音信息是指公网通信终端发送的语音信息;当第一终端为窄带通信终端时,所述第一语音通信为窄带通信模式的语音通信,所述第一语音信息是指窄带通信终端发送的语音信息。When the first terminal is a public network communication terminal, the first voice communication is voice communication in a public network communication mode, and the first voice information refers to voice information sent by a public network communication terminal; when the first terminal is a narrowband communication At the terminal, the first voice communication is voice communication in a narrowband communication mode, and the first voice information refers to voice information sent by a narrowband communication terminal.
S102:当接收到第二终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级。S102: When receiving an access request for a second voice communication initiated by a second terminal, determine a priority of the second voice communication and the first voice communication.
在双模通信终端与第一终端进行第一语音通信的过程中,有可能会接收到 第二终端发起的第二语音通信的接入请求,其中,第一语音通信与第二语音通信分别有对应的优先级信息,当接收到第二终端发起的第二语音通信的接入请求时,则要分别确定出所述第一语音通信与所述第二语音通信的优先级。During the process of the first voice communication between the dual-mode communication terminal and the first terminal, it is possible to receive an access request for the second voice communication initiated by the second terminal, wherein the first voice communication and the second voice communication are respectively When the corresponding priority information receives an access request for the second voice communication initiated by the second terminal, the priorities of the first voice communication and the second voice communication must be determined separately.
S103:根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息。S103: Receive and output the first voice information sent by the first terminal and / or the second voice information sent by the second terminal according to the priorities of the second voice communication and the first voice communication. .
其中,所述第一语音通信与所述第二语音通信的通信模式不同,例如,第一语音通信采用公网通信模式且第二语音通信采用窄带通信模式,或者,第一语音通信采用窄带通信模式且第二语音通信采用公网通信模式。The first voice communication is different from the second voice communication in the communication mode. For example, the first voice communication uses the public network communication mode and the second voice communication uses the narrowband communication mode, or the first voice communication uses the narrowband communication. Mode and the second voice communication uses the public network communication mode.
在确定出所述第一语音通信与所述第二语音通信的优先级后,可以通过比较所述第二语音通信与所述第一语音通信的优先级的高低,来决定接收并输出的是第一语音信息,还是第二语音信息,还是第一语音信息和第二语音信息,从而解决了在双模通信终端进行第一语音通信的过程中,遇到第二语音通信接入时产生的语音输出的冲突问题。After determining the priorities of the first voice communication and the second voice communication, the priority of the second voice communication and the first voice communication can be compared to determine whether to receive and output is The first voice information is also the second voice information, or is the first voice information and the second voice information, thereby solving the problem caused when the dual-mode communication terminal performs the first voice communication and encounters the second voice communication access. Conflicts in speech output.
当需要同时接收并输出所述第一语音信息与所述第二语音信息时,还可以利用双模通信终端的扬声器与听筒,来分别输出所述第一语音信息与所述第二语音信息。例如,利用听筒来输出第一语音信息,并利用扬声器来输出第二语音信息;或者,利用扬声器来输出第一语音信息,并利用听筒来输出第二语音信息,从而避免由于利用双模通信终端的同一输出通路来输出第一语音信息与第二语音信息而产生冲突。When the first voice information and the second voice information need to be received and output at the same time, a speaker and a handset of a dual-mode communication terminal may also be used to output the first voice information and the second voice information, respectively. For example, use the handset to output the first voice information and use the speaker to output the second voice information; or use the speaker to output the first voice information and use the handset to output the second voice information, thereby avoiding the use of a dual-mode communication terminal The same output path is used to output the first voice information and the second voice information to cause a conflict.
本实施例提供的语音通信控制方法,应用于双模通信终端,所述双模通信终端与第一终端进行第一语音通信,其中包括接收并输出所述第一终端发送的第一语音信息,当接收到第二终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级,根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息,从而实现了双模通信环境下不同语音通信业务的智能切换,解决了目前双模通信终端的公网语音通信与窄带语音通信之间语音输出相互冲突的问题。The voice communication control method provided in this embodiment is applied to a dual-mode communication terminal. The dual-mode communication terminal performs first voice communication with a first terminal, and includes receiving and outputting first voice information sent by the first terminal. When receiving an access request for a second voice communication initiated by a second terminal, determine the priority of the second voice communication and the first voice communication, and communicate with the first voice communication according to the second voice communication Receiving and outputting the first voice information sent by the first terminal and / or the second voice information sent by the second terminal, thereby implementing intelligent switching of different voice communication services in a dual-mode communication environment It solves the problem that the voice output between the public network voice communication and the narrow-band voice communication of the current dual-mode communication terminal conflicts with each other.
请参阅图2~3,图2为本申请实施例提供的第一通信场景的示意图;图3为本申请实施例提供的语音通信控制方法在第一通信场景下的流程图。Please refer to FIGS. 2 to 3. FIG. 2 is a schematic diagram of a first communication scenario provided by an embodiment of the present application; and FIG. 3 is a flowchart of a voice communication control method provided by an embodiment of the present application under the first communication scenario.
如图2所示,本实施例以所述第一终端为公网通信终端,且所述第二终端为窄带通信终端为例,在双模通信终端与公网通信终端进行第一语音通信时,窄带通信终端向双模通信终端发起第二语音通信的接入请求。相应的,如图3所示,所述方法包括:As shown in FIG. 2, in this embodiment, the first terminal is a public network communication terminal, and the second terminal is a narrowband communication terminal. As an example, when a dual-mode communication terminal performs a first voice communication with a public network communication terminal, , The narrowband communication terminal initiates a second voice communication access request to the dual-mode communication terminal. Accordingly, as shown in FIG. 3, the method includes:
S201:与公网通信终端进行第一语音通信,其中包括接收并输出所述公网通信终端发送的第一语音信息。S201: Perform a first voice communication with a public network communication terminal, which includes receiving and outputting first voice information sent by the public network communication terminal.
S202:当接收到窄带通信终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级。S202: When receiving an access request for a second voice communication initiated by a narrowband communication terminal, determine a priority of the second voice communication and the first voice communication.
其中,步骤S201-S202与前述实施例中的步骤S101-S102相类似,具体可参考前述实施例中的内容,在此不再赘述。Steps S201-S202 are similar to steps S101-S102 in the foregoing embodiment. For details, refer to the content in the foregoing embodiment, and details are not described herein again.
S203:当所述第二语音通信的优先级高于所述第一语音通信的优先级时,接收并输出所述窄带通信终端发送的第二语音信息,且终止所述第一语音通信。S203: When the priority of the second voice communication is higher than the priority of the first voice communication, receive and output second voice information sent by the narrowband communication terminal, and terminate the first voice communication.
当第二语音通信的优先级高于第一语音通信的优先级时,优先处理第二语音通信,优先接收并输出窄带通信终端发送的第二语音信息,并终止双模通信终端与公网通信终端之间的第一语音通信,此外,还可以同时向公网通信终端发送相应的提示信息,如“通话结束,若有紧急事件,请留言”等。When the priority of the second voice communication is higher than the priority of the first voice communication, the second voice communication is preferentially processed, the second voice information sent by the narrowband communication terminal is preferentially received and output, and the dual-mode communication terminal and the public network communication are terminated The first voice communication between the terminals can also send corresponding prompt information to the public network communication terminal at the same time, such as "the call ends, if there is an emergency, please leave a message" and so on.
S204:当所述第二语音通信的优先级低于所述第一语音通信的优先级时,继续接收并输出所述第一语音信息,且接收所述窄带通信终端发送的第二语音信息,并对所述第二语音信息进行录音。S204: When the priority of the second voice communication is lower than the priority of the first voice communication, continue to receive and output the first voice information, and receive the second voice information sent by the narrowband communication terminal, And recording the second voice information.
当第二语音通信的优先级低于第一语音通信的优先级时,优先处理第一语音通信,继续接收并输出公网通信终端发送的第一语音信息,同时也可以接收所述窄带通信终端发送的第二语音信息,并对所述第二语音信息进行录音,但是,在进行第一语音通信的过程中,并不对接收到的第二语音信息进行语音输出。When the priority of the second voice communication is lower than the priority of the first voice communication, the first voice communication is preferentially processed, and the first voice information sent by the public network communication terminal is continuously received and output, and the narrowband communication terminal may also be received. The second voice information sent is recorded, and the second voice information is recorded. However, during the first voice communication, the second voice information received is not voice output.
此外,当第一语音通信结束后,还可以提示用户及时查看窄带录音。例如,弹出一提示界面,在提示界面上显示“有窄带语音留言,请查看录音内容”、“请查看窄带语音留言”等。In addition, after the first voice communication ends, the user may also be prompted to view the narrowband recording in time. For example, a prompt interface pops up, and the prompt interface displays "Narrowband voicemail, please check the recording content", "Please check the narrowband voicemail" and so on.
S205:当所述第二语音通信的优先级等于所述第一语音通信的优先级时,接收并输出所述第一语音信息和所述窄带通信终端发送的第二语音信息。S205: When the priority of the second voice communication is equal to the priority of the first voice communication, receive and output the first voice information and the second voice information sent by the narrowband communication terminal.
一示例中,所述双模通信终端的输出通路可包括:听筒与扬声器;相应的,所述步骤S205可包括:In an example, the output path of the dual-mode communication terminal may include: a handset and a speaker; correspondingly, the step S205 may include:
a1、当输出所述第一语音信息的输出通路为所述听筒时,利用所述扬声器输出所述窄带通信终端发送的第二语音信息。a1. When the output path for outputting the first voice information is the handset, use the speaker to output the second voice information sent by the narrowband communication terminal.
双模通信终端与公网通信终端进行语音通信的过程中,可以通过听筒来输出公网通信终端发送的第一语音信息,也可以通过扬声器来输出公网通信终端发送的第一语音信息。During the voice communication between the dual-mode communication terminal and the public network communication terminal, the first voice information sent by the public network communication terminal may be output through the handset, or the first voice information sent by the public network communication terminal may be output through the speaker.
当输出所述第一语音信息的输出通路为所述听筒时,利用所述扬声器输出所述窄带通信终端发送的第二语音信息,实现第一语音信息与第二语音信息的双通路输出,可以有效避免第一语音信息与第二语音信息争夺同一输出通路而产生冲突。When the output path for outputting the first voice information is the handset, the speaker is used to output the second voice information sent by the narrowband communication terminal to achieve dual-channel output of the first voice information and the second voice information. Effectively avoid conflicts caused by the first voice information and the second voice information competing for the same output path.
a2、当输出所述第一语音信息的输出通路为所述扬声器时,将输出所述第一语音通信的输出通路切换为所述听筒,并利用所述扬声器输出所述窄带通信终端发送的第二语音信息。a2. When the output path for outputting the first voice information is the speaker, switch the output path for outputting the first voice communication to the handset, and use the speaker to output the first channel sent by the narrowband communication terminal. Two voice messages.
双模通信终端与窄带通信终端进行语音通信的过程中,通常只能通过扬声器来输出窄带通信终端发送的第二语音信息,所以,当输出所述第一语音信息的输出通路为所述扬声器时,需要先将将输出所述第一语音通信的输出通路切换为所述听筒,再利用所述扬声器输出所述窄带通信终端发送的第二语音信息,实现第一语音信息与第二语音信息的双通路输出,从而避免第一语音通信与第二语音通信之间的语音输出冲突。During the voice communication between the dual-mode communication terminal and the narrowband communication terminal, usually the second voice information sent by the narrowband communication terminal can only be output through the speaker. Therefore, when the output path for outputting the first voice information is the speaker , It is necessary to first switch the output path for outputting the first voice communication to the handset, and then use the speaker to output the second voice information sent by the narrowband communication terminal to realize the first voice information and the second voice information. Dual-channel output, thereby avoiding voice output conflicts between the first voice communication and the second voice communication.
其中,步骤S203-S205可用于实现前述实施例中的步骤S103。Steps S203-S205 may be used to implement step S103 in the foregoing embodiment.
本实施提供的语音通信控制方法中,第一终端为公网通信终端,第二终端为窄带通信终端;当所述第二语音通信的优先级较高时,接收并输出所述窄带通信终端发送的第二语音信息,且终止所述第一语音通信;当所述第二语音通信的优先级较低时,继续接收并输出所述第一语音信息,且接收所述窄带通信终端发送的第二语音信息,并对所述第二语音信息进行录音;当所述第二语音通信与所述第一语音通信的优先级相同时,接收并输出所述第一语音信息和所述窄带通信终端发送的第二语音信息,并合理分配所述第一语音信息和所述第二语音信息的输出通路,为用户提供了更加人性化的语音切换流程,实现了双模通信环境下不同语音通信业务的智能切换,解决了目前双模通信终端的公网 语音通信与窄带语音通信之间语音输出相互冲突的问题。In the voice communication control method provided in this embodiment, the first terminal is a public network communication terminal and the second terminal is a narrowband communication terminal; when the priority of the second voice communication is high, the narrowband communication terminal is received and output When the priority of the second voice communication is low, continue to receive and output the first voice information, and receive the first voice message sent by the narrowband communication terminal. Two voice messages and recording the second voice message; when the second voice communication has the same priority as the first voice communication, receiving and outputting the first voice message and the narrowband communication terminal The second voice information sent and the output channels of the first voice information and the second voice information are reasonably allocated, which provides a more humanized voice switching process for users, and realizes different voice communication services in a dual-mode communication environment. Intelligent switching, which solves the problem of conflicting voice output between the public network voice communication and narrowband voice communication of the current dual-mode communication terminal.
请参阅图4~5,图4为本申请实施例提供的第二通信场景的示意图;图5为本申请实施例提供的语音通信控制方法在第二通信场景下的流程图。Please refer to FIGS. 4 to 5. FIG. 4 is a schematic diagram of a second communication scenario provided by an embodiment of the present application; and FIG. 5 is a flowchart of a voice communication control method provided by an embodiment of the present application in a second communication scenario.
如图4所示,本实施例以所述第一终端为窄带通信终端,且所述第二终端为公网通信终端为例,在双模通信终端与窄带通信终端进行第一语音通信时,公网通信终端向双模通信终端发起第二语音通信的接入请求。相应的,如图5所示,所述方法包括:As shown in FIG. 4, in this embodiment, the first terminal is a narrowband communication terminal, and the second terminal is a public network communication terminal. As an example, when a dual-mode communication terminal performs a first voice communication with a narrowband communication terminal, The public network communication terminal initiates a second voice communication access request to the dual-mode communication terminal. Accordingly, as shown in FIG. 5, the method includes:
S301:与窄带通信终端进行第一语音通信,其中包括接收并输出所述窄带通信终端发送的第一语音信息。S301: Perform first voice communication with a narrowband communication terminal, including receiving and outputting first voice information sent by the narrowband communication terminal.
S302:当接收到公网通信终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级。S302: When receiving an access request for a second voice communication initiated by a public network communication terminal, determine a priority of the second voice communication and the first voice communication.
其中,步骤S301-S302与前述实施例中的步骤S101-S102相类似,具体可参考前述实施例中的内容,在此不再赘述。Steps S301-S302 are similar to steps S101-S102 in the foregoing embodiment. For details, refer to the content in the foregoing embodiment, and details are not described herein again.
S303:当所述第二语音通信的优先级高于所述第一语音通信的优先级时,接收并输出所述公网通信终端发送的第二语音信息,并对所述窄带通信终端发送的第一语音信息进行录音,且终止所述第一语音信息的输出。S303: When the priority of the second voice communication is higher than the priority of the first voice communication, receive and output the second voice information sent by the public network communication terminal, and send the second voice information to the narrowband communication terminal. The first voice information is recorded, and the output of the first voice information is terminated.
当第二语音通信的优先级高于第一语音通信的优先级时,优先处理第二语音通信,优先接收并输出公网通信终端发送的第二语音信息,但可以并不终止双模通信终端与窄带通信终端之间的第一语音通信,而是对窄带通信终端发送的第一语音信息进行录音,并终止所述第一语音信息的输出。When the priority of the second voice communication is higher than the priority of the first voice communication, the second voice communication is preferentially processed, and the second voice information sent by the public network communication terminal is preferentially received and output, but the dual-mode communication terminal may not be terminated In the first voice communication with the narrowband communication terminal, the first voice information sent by the narrowband communication terminal is recorded, and the output of the first voice information is terminated.
此外,当第二语音通信结束后,还可以提示用户查及时看窄带录音,并及时恢复所述第一语音信息的正常语音输出。In addition, after the second voice communication ends, the user may also be prompted to check the narrowband recording in time and restore the normal voice output of the first voice information in time.
S304:当所述第二语音通信的优先级低于所述第一语音通信的优先级时,继续接收并输出所述第一语音信息,并拒绝所述第二语音通信的接入。S304: When the priority of the second voice communication is lower than the priority of the first voice communication, continue to receive and output the first voice information, and deny access to the second voice communication.
当第二语音通信的优先级低于第一语音通信的优先级时,优先处理第一语音通信,继续接收并输出窄带通信终端发送的第一语音信息,并拒绝公网通信终端发起的第二语音通信的接入。When the priority of the second voice communication is lower than the priority of the first voice communication, the first voice communication is preferentially processed, the first voice information sent by the narrowband communication terminal is continuously received and output, and the second voice communication initiated by the public network communication terminal is rejected Access to voice communications.
此外,在拒绝公网通信终端发起的第二语音通信的接入时,还可以向公网通信终端发送双模通信终端处于繁忙状态的提示信息。In addition, when access to the second voice communication initiated by the public network communication terminal is denied, a prompt message that the dual-mode communication terminal is in a busy state may also be sent to the public network communication terminal.
S305:当所述第二语音通信的优先级等于所述第一语音通信的优先级时, 接收并输出所述第一语音信息和所述公网通信终端发送的第二语音信息。S305: When the priority of the second voice communication is equal to the priority of the first voice communication, receive and output the first voice information and the second voice information sent by the public network communication terminal.
一示例中,所述双模通信终端的输出通路可包括:听筒与扬声器;当第一终端为窄带通信终端时,输出所述第一语音信息的输出通路为所述扬声器;相应的,所述步骤S305可包括:In an example, the output path of the dual-mode communication terminal may include: a handset and a speaker; when the first terminal is a narrowband communication terminal, the output path for outputting the first voice information is the speaker; correspondingly, the Step S305 may include:
利用所述听筒输出所述公网通信终端发送的第二语音信息,从而实现第一语音信息与第二语音信息的双通路输出,可以避免第一语音信息与第二语音信息争夺同一输出通路而产生冲突。The handset is used to output the second voice information sent by the public network communication terminal, so as to realize the dual-channel output of the first voice information and the second voice information, which can prevent the first voice information and the second voice information from competing for the same output path. Conflict.
其中,步骤S303-S305可用于实现前述实施例中的步骤S103。Steps S303-S305 can be used to implement step S103 in the foregoing embodiment.
本实施提供的语音通信控制方法中,第一终端为窄带通信终端,第二终端为公网通信终端;当所述第二语音通信的优先级较高时,接收并输出所述公网通信终端发送的第二语音信息,并对所述窄带通信终端发送的第一语音信息进行录音,且终止所述第一语音信息的输出;当所述第二语音通信的优先级较低时,继续接收并输出所述第一语音信息,并拒绝所述第二语音通信的接入;当所述第二语音通信与第一语音通信的优先级相同时,接收并输出所述第一语音信息和所述公网通信终端发送的第二语音信息,并合理分配输出所述第一语音信息和所述第二语音信息的输出通路,为用户提供了更加人性化的语音切换流程,实现了双模通信环境下不同语音通信业务的智能切换,解决了目前双模通信终端的公网语音通信与窄带语音通信之间语音输出相互冲突的问题。In the voice communication control method provided in this embodiment, the first terminal is a narrowband communication terminal and the second terminal is a public network communication terminal; when the priority of the second voice communication is high, the public network communication terminal is received and output Send the second voice information, record the first voice information sent by the narrowband communication terminal, and terminate the output of the first voice information; when the priority of the second voice communication is low, continue to receive And output the first voice information and deny access to the second voice communication; when the second voice communication has the same priority as the first voice communication, receive and output the first voice information and all The second voice information sent by the public network communication terminal is described, and the output channels for outputting the first voice information and the second voice information are reasonably allocated, which provides a more user-friendly voice switching process for users and realizes dual-mode communication. Intelligent switching of different voice communication services in the environment solves the problem of conflicting voice output between the public network voice communication and the narrowband voice communication of the current dual-mode communication terminal .
请参阅图6,图6为本申请实施例提供的语音通信控制方法的再一种流程图。Please refer to FIG. 6, which is another flowchart of a voice communication control method according to an embodiment of the present application.
本实施例以所述第一终端为公网通信终端,且所述第二终端为窄带通信终端为例。所述双模通信终端的输出通路可包括:听筒和扬声器。In this embodiment, the first terminal is a public network communication terminal, and the second terminal is a narrowband communication terminal. The output path of the dual-mode communication terminal may include a handset and a speaker.
如图6所示,所述方法包括:As shown in FIG. 6, the method includes:
S401:与公网通信终端进行第一语音通信。S401: Perform a first voice communication with a public network communication terminal.
在双模通信终端与公网通信终端进行第一语音通信的过程中,包括接收并输出所述公网通信终端发送的第一语音信息。The process of the first voice communication between the dual-mode communication terminal and the public network communication terminal includes receiving and outputting the first voice information sent by the public network communication terminal.
S402:判断输出所述第一语音信息的输出通路,当所述输出通路为所述扬声器时,执行步骤S403;当所述输出通路为所述听筒时,执行步骤S409。S402: Determine an output path for outputting the first voice information. When the output path is the speaker, perform step S403; when the output path is the handset, perform step S409.
S403:判断所述双模通信终端是否靠近用户耳部,若是,则执行步骤S404;若否,重新执行步骤S403。S403: Determine whether the dual-mode communication terminal is close to the ear of the user. If yes, perform step S404; if not, perform step S403 again.
S404:判断设备距离是否小于预设距离阈值;若是,则执行步骤S405;若否,重新执行步骤S404。S404: Determine whether the device distance is less than a preset distance threshold; if yes, perform step S405; if not, perform step S404 again.
其中,设备距离是指所述双模通信终端与用户耳部之间的距离。The device distance refers to a distance between the dual-mode communication terminal and a user's ear.
S405:将输出所述第一语音信息的输出通路切换为所述听筒。S405: Switch the output path for outputting the first voice information to the handset.
S406:判断设备距离是否大于预设距离阈值,若是,执行步骤S407;若否,执行步骤S408。S406: Determine whether the device distance is greater than a preset distance threshold. If yes, go to step S407; if not, go to step S408.
S407:将输出所述第一语音信息的输出通路切换为所述扬声器,并执行步骤S404。S407: Switch the output path that outputs the first voice information to the speaker, and execute step S404.
在双模通信终端与公网通信终端进行第一语音通话的过程中,当输出第一语音信息的输出通路为扬声器(免提模式)时,可以利用双模通信终端中内嵌的重力传感器和距离传感器,检测用户是否有将双模通信终端拿到用户耳部旁的动作,并依据距离传感器检测双模通信终端与耳部之间的距离,并在满足预设条件的情况下,直接将输出第一语音信息的输出通路切换为听筒(听筒模式)。其中,听筒模式下的输出音量可由用户预先设置。During the first voice call between the dual-mode communication terminal and the public network communication terminal, when the output path for outputting the first voice information is a speaker (hands-free mode), a gravity sensor and a built-in gravity sensor in the dual-mode communication terminal can be used. The distance sensor detects whether the user has taken the dual-mode communication terminal to the user's ear, and detects the distance between the dual-mode communication terminal and the ear according to the distance sensor, and directly meets the preset conditions when the preset conditions are met. The output path for outputting the first voice information is switched to a handset (handset mode). The output volume in the handset mode can be preset by the user.
相应的,在与第一终端进行第一语音通信之后,且接收到第二终端发起的第二语音通信的接入请求之前,所述方法还包括:检测所述双模通信终端的运动状态。Correspondingly, after performing the first voice communication with the first terminal and before receiving the access request for the second voice communication initiated by the second terminal, the method further includes: detecting a motion state of the dual-mode communication terminal.
S408:根据所述双模通信终端与用户耳部之间的距离,动态调整所述听筒的音量输出参数。S408: Dynamically adjust the volume output parameter of the handset according to the distance between the dual-mode communication terminal and the user's ear.
其中,通过步骤S403-S408,当输出所述第一语音信息的输出通路为所述扬声器,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离小于预设距离阈值时,将输出所述第一语音信息的输出通路切换为所述听筒;当输出所述第一语音信息的输出通路为所述听筒,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离大于预设距离阈值时,将输出所述第一语音信息的输出通路切换为所述扬声器;当输出所述第一语音信息的输出通路为所述听筒,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离不大于预设距离阈值时,根据所述双模通信终端与用户耳部之间的距离动态调整所述听筒的输出音量。Wherein, through steps S403-S408, when the output path for outputting the first voice information is the speaker, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is less than a preset distance threshold When the output path for outputting the first voice information is switched to the handset; when the output path for outputting the first voice information is the handset, and the motion state characterizes the dual-mode communication terminal and the user When the distance between the ears is greater than a preset distance threshold, the output path for outputting the first voice information is switched to the speaker; when the output path for outputting the first voice information is the handset, and the The movement state indicates that when the distance between the dual-mode communication terminal and the user's ear is not greater than a preset distance threshold, the output volume of the handset is dynamically adjusted according to the distance between the dual-mode communication terminal and the user's ear.
S409:判断是否接收到窄带通信终端发起的第二语音通信的接入请求,若是,则执行步骤S410;否则,重新执行步骤S409;S409: Determine whether an access request for the second voice communication initiated by the narrowband communication terminal is received, and if yes, perform step S410; otherwise, perform step S409 again;
S410:根据所述听筒的音量输出参数调整所述扬声器的音量输出参数。S410: Adjust the volume output parameter of the speaker according to the volume output parameter of the handset.
其中,通过步骤S409-S410,当输出所述第一语音信息的输出通路为所述听筒时,若接收到窄带通信终端发起的第二语音通信的接入请求,则根据所述听筒的音量输出参数调整所述扬声器的音量输出参数,从而在利用听筒接听公网语音信息的过程中遇到集群或者常规对讲机等窄带通信终端突然呼入时,能够有效防止扬声器突然以较大音量输出第二语音信息,而给用户的耳朵带来伤害,进而改善用户通话体验。Wherein, through steps S409-S410, when the output path for outputting the first voice information is the handset, if an access request for the second voice communication initiated by the narrowband communication terminal is received, the output is performed according to the volume of the handset. The parameter adjusts the volume output parameter of the speaker, so that when a narrow-band communication terminal such as a cluster or a conventional walkie-talkie is suddenly called in during the process of using the handset to receive public network voice information, it can effectively prevent the speaker from suddenly outputting a second voice at a large volume Information to the user ’s ears, thereby improving the user ’s calling experience.
一示例中,在用户利用听筒接听公网通话的过程中,双模通信终端可以根据用户的行为习惯,记录听筒的音量等级(音量输出参数之一)与设备距离之间的对应关系,形成一个听筒模式下的音量等级与距离的拟合匹配表,称为第一拟合匹配表,其中,所述音量等级是用户手动调节设置的听筒的音量等级,所述设备距离是指双模通信终端与用户耳部之间的距离。In an example, during the process of a user using a handset to answer a public network call, the dual-mode communication terminal may record the correspondence between the volume level of the handset (one of the volume output parameters) and the distance of the device according to the behavior of the user to form a The matching matching table between the volume level and the distance in the handset mode is called the first fitting matching table, wherein the volume level is the volume level of the handset that is manually adjusted by the user, and the device distance refers to the dual-mode communication terminal. The distance from the user's ear.
另外,在免提模式下也有一个对应的音量等级与距离的第二拟合匹配表,第一拟合匹配表与第二拟合匹配表中记录的音量等级(VolLevel)之间存在系数关系,即,receiver_VolLevel=K×Speaker_VolLevel,其中,receiver_VolLevel表示第一拟合匹配表中的音量等级,Speaker_VolLevel表示第二拟合匹配表中的音量等级,系数K为固定值。In addition, in the hands-free mode, there is also a second fitting matching table corresponding to the volume level and distance. There is a coefficient relationship between the first fitting matching table and the volume level (VolLevel) recorded in the second fitting matching table. That is, receiver_VolLevel = K × Speaker_VolLevel, where receiver_VolLevel represents the volume level in the first fitting matching table, Speaker_VolLevel represents the volume level in the second fitting matching table, and the coefficient K is a fixed value.
相应的,所述根据所述听筒的音量输出参数调整所述扬声器的音量输出参数,可以是对所述听筒的音量等级与所述扬声器的音量等级进行拟合,根据所述听筒的音量等级与所述系数关系,确定并设置所述扬声器的音量等级,使扬声器的输出音量被控制在合理范围内。Correspondingly, adjusting the volume output parameter of the speaker according to the volume output parameter of the handset may be fitting the volume level of the handset with the volume level of the speaker, and according to the volume level of the handset, The coefficient relationship determines and sets the volume level of the speaker so that the output volume of the speaker is controlled within a reasonable range.
此外,当第二语音通信结束后,还可以自动恢复所述扬声器的音量等级。In addition, when the second voice communication ends, the volume level of the speaker may be automatically restored.
本实施提供的语音通信控制方法中,所述第一终端为公网通信终端,所述第二终端为窄带通信终端,根据所述双模通信终端的运动状态、输出第一通信语音的输出模块,来动态切换第一语音信息的输出通路,使其与用户的使用习惯相适应,使语音输出控制更具人性化;并且,当输出所述第一语音信息的输出通路为所述听筒时,若接收到窄带通信终端发起的第二语音通信的接入请求,则根据所述听筒的音量输出参数调整所述扬声器的音量输出参数,使扬声器的输出音量与听筒的输出音量相拟合,使扬声器的输出音量被控制在合理范围内,从而提高音量控制的人性化程度。In the voice communication control method provided in this embodiment, the first terminal is a public network communication terminal, and the second terminal is a narrowband communication terminal, and an output module that outputs a first communication voice according to the motion state of the dual-mode communication terminal. To dynamically switch the output path of the first voice information to make it compatible with the user's usage habits and make the voice output control more humane; and when the output path to output the first voice information is the handset, If a second voice communication access request initiated by the narrowband communication terminal is received, the volume output parameter of the speaker is adjusted according to the volume output parameter of the handset, so that the output volume of the speaker matches the output volume of the handset, so that The output volume of the speaker is controlled within a reasonable range, thereby improving the humanity of the volume control.
本申请实施例还提供了相应的语音通信控制系统,所述语音通信控制系统用于实施本发明实施例提供的语音通信控制方法,下文描述的语音通信控制系统的技术内容,可与上文描述的语音通信控制方法的技术内容相互对应参照。The embodiment of the present application also provides a corresponding voice communication control system, which is used to implement the voice communication control method provided by the embodiment of the present invention. The technical content of the voice communication control system described below can be described with the above. The technical contents of the voice communication control method are cross-referenced.
请参阅图7,图7为本申请实施例提供的语音通信控制系统的总体架构图。Please refer to FIG. 7, which is an overall architecture diagram of a voice communication control system according to an embodiment of the present application.
如图7所示,所述语音通信控制系统主要包括:语音通路切换模块10与语音音量控制模块20。As shown in FIG. 7, the voice communication control system mainly includes a voice path switching module 10 and a voice volume control module 20.
所述语音通路切换模块10,用于实现双模通信环境下,不同语音业务的语音输出通路的智能切换,为用户提供更加人性化的语音切换流程。The voice path switching module 10 is configured to implement intelligent switching of voice output paths of different voice services in a dual-mode communication environment, and provide users with a more humanized voice switching process.
所述语音音量控制模块20,用于提供音量自动控制算法,基于重力传感器与距离传感器,拟合听筒和扬声器的输出音量,控制扬声器的音量在合理范围内,以保护人耳不受强音伤害,改善用户通话体验。The voice volume control module 20 is used to provide an automatic volume control algorithm. Based on the gravity sensor and the distance sensor, fit the output volume of the earpiece and the speaker, and control the volume of the speaker within a reasonable range to protect the human ear from being damaged by strong sound To improve user calling experience.
请参阅图8,图8为本申请实施例提供的语音通信控制系统的一种结构示意图。Please refer to FIG. 8, which is a schematic structural diagram of a voice communication control system according to an embodiment of the present application.
本实施例的语音通信控制系统,用于实施前述实施例的语音通信控制方法,如图8所示,所述系统包括:语音通信单元100与优先级确定单元200。The voice communication control system of this embodiment is configured to implement the voice communication control method of the foregoing embodiment. As shown in FIG. 8, the system includes a voice communication unit 100 and a priority determination unit 200.
所述语音通信单元100,用于与第一终端进行第一语音通信,其中包括接收并输出所述第一终端发送的第一语音信息;The voice communication unit 100 is configured to perform first voice communication with a first terminal, and includes receiving and outputting first voice information sent by the first terminal;
优先级确定单元200,用于当接收到第二终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级;A priority determining unit 200, configured to determine a priority of the second voice communication and the first voice communication when a second voice communication access request initiated by a second terminal is received;
所述语音通信单元100,还用于根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息;The voice communication unit 100 is further configured to receive and output first voice information sent by the first terminal according to the priorities of the second voice communication and the first voice communication, and / or, the first The second voice information sent by the two terminals;
其中,所述第一语音信息与所述第二语音信息的通信模式不同。Wherein, the communication modes of the first voice information and the second voice information are different.
本实施例提供的语音通信控制系统,应用于双模通信终端,所述双模通信终端与第一终端进行第一语音通信,其中包括接收并输出所述第一终端发送的第一语音信息,当接收到第二终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级,根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息,从而实现了双模通信环境下不同语音通信业务的智能切换,解决了目前双模通信终端的公网语音通信与窄带语音通 信之间语音输出相互冲突的问题。The voice communication control system provided in this embodiment is applied to a dual-mode communication terminal. The dual-mode communication terminal performs first voice communication with a first terminal, and includes receiving and outputting first voice information sent by the first terminal. When receiving an access request for a second voice communication initiated by a second terminal, determine the priority of the second voice communication and the first voice communication, and communicate with the first voice communication according to the second voice communication Receiving and outputting the first voice information sent by the first terminal and / or the second voice information sent by the second terminal, thereby implementing intelligent switching of different voice communication services in a dual-mode communication environment It solves the problem that the voice output between the public network voice communication and the narrow-band voice communication of the current dual-mode communication terminal conflicts with each other.
请参阅图9,图9为本申请实施例提供的语音通信控制系统的另一种结构示意图。Please refer to FIG. 9, which is another schematic structural diagram of a voice communication control system according to an embodiment of the present application.
如图9所示,本实施例的语音通信控制系统,包括前述实施例中的语音通信单元100与优先级确定单元200。双模通信终端的输出通路可包括:听筒与扬声器。As shown in FIG. 9, the voice communication control system of this embodiment includes the voice communication unit 100 and the priority determination unit 200 in the foregoing embodiment. The output path of the dual-mode communication terminal may include a handset and a speaker.
其中,当第一终端为公网通信终端,且第二终端为窄带通信终端时,所述语音通信单元100具体用于:When the first terminal is a public network communication terminal and the second terminal is a narrowband communication terminal, the voice communication unit 100 is specifically configured to:
当所述第二语音通信的优先级高于所述第一语音通信的优先级时,接收并输出所述窄带通信终端发送的第二语音信息,且终止所述第一语音通信;When the priority of the second voice communication is higher than the priority of the first voice communication, receiving and outputting second voice information sent by the narrowband communication terminal, and terminating the first voice communication;
当所述第二语音通信的优先级低于所述第一语音通信的优先级时,继续接收并输出所述第一语音信息,且接收所述窄带通信终端发送的第二语音信息,并对所述第二语音信息进行录音;When the priority of the second voice communication is lower than the priority of the first voice communication, continue to receive and output the first voice information, and receive the second voice information sent by the narrowband communication terminal, and Recording the second voice information;
当所述第二语音通信的优先级等于所述第一语音通信的优先级时,接收并输出所述第一语音信息和所述窄带通信终端发送的第二语音信息。When the priority of the second voice communication is equal to the priority of the first voice communication, receiving and outputting the first voice information and the second voice information sent by the narrowband communication terminal.
其中,所述接收并输出所述第一语音信息和所述窄带通信终端发送的第二语音信息包括:Wherein, receiving and outputting the first voice information and the second voice information sent by the narrowband communication terminal includes:
当输出所述第一语音信息的输出通路为所述听筒时,利用所述扬声器输出所述窄带通信终端发送的第二语音信息;When the output path for outputting the first voice information is the handset, use the speaker to output the second voice information sent by the narrowband communication terminal;
当输出所述第一语音信息的输出通路为所述扬声器时,将输出所述第一语音通信的输出通路切换为所述听筒,并利用所述扬声器输出所述窄带通信终端发送的第二语音信息。When the output path for outputting the first voice information is the speaker, switching the output path for outputting the first voice communication to the handset, and using the speaker to output the second voice sent by the narrowband communication terminal information.
当所述第一终端为窄带通信终端,且所述第二终端为公网通信终端时,所述语音通信单元100具体用于:When the first terminal is a narrowband communication terminal and the second terminal is a public network communication terminal, the voice communication unit 100 is specifically configured to:
当所述第二语音通信的优先级高于所述第一语音通信的优先级时,接收并输出所述公网通信终端发送的第二语音信息,并对所述窄带通信终端发送的第一语音信息进行录音,且终止所述第一语音信息的输出;When the priority of the second voice communication is higher than the priority of the first voice communication, receiving and outputting the second voice information sent by the public network communication terminal, and Recording voice information, and terminating output of the first voice information;
当所述第二语音通信的优先级低于所述第一语音通信的优先级时,继续接收并输出所述第一语音信息,并拒绝所述第二语音通信的接入;When the priority of the second voice communication is lower than the priority of the first voice communication, continue to receive and output the first voice information, and deny access to the second voice communication;
当所述第二语音通信的优先级等于所述第一语音通信的优先级时,接收并 输出所述第一语音信息和所述公网通信终端发送的第二语音信息。When the priority of the second voice communication is equal to the priority of the first voice communication, the first voice information and the second voice information sent by the public network communication terminal are received and output.
其中,输出所述第一语音信息的输出通路为所述扬声器;所述接收并输出所述第一语音信息和所述公网通信终端发送的第二语音信息包括:The output path for outputting the first voice information is the speaker; the receiving and outputting the first voice information and the second voice information sent by the public network communication terminal include:
利用所述听筒输出所述公网通信终端发送的第二语音信息。Using the handset to output second voice information sent by the public network communication terminal.
一示例中,所述系统还包括:运动状态检测单元300与输出通路切换单元400;In an example, the system further includes: a motion state detection unit 300 and an output path switching unit 400;
所述运动状态检测单元30,用于检测所述双模通信终端的运动状态;The motion state detection unit 30 is configured to detect a motion state of the dual-mode communication terminal;
所述输出通路切换单元400,用于在所述与第一终端进行第一语音通信之后,且,所述接收到第二终端发起的第二语音通信的接入请求之前,执行以下操作:The output path switching unit 400 is configured to perform the following operations after the first voice communication with the first terminal and before receiving the access request for the second voice communication initiated by the second terminal:
当输出所述第一语音信息的输出通路为所述扬声器,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离小于预设距离阈值时,将输出所述第一语音信息的输出通路切换为所述听筒;When the output path for outputting the first voice information is the speaker, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is less than a preset distance threshold, the first The output path of voice information is switched to the handset;
当输出所述第一语音信息的输出通路为所述听筒,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离大于预设距离阈值时,将输出所述第一语音信息的输出通路切换为所述扬声器;When the output path for outputting the first voice information is the handset, and the movement state indicates that the distance between the dual-mode communication terminal and the user's ear is greater than a preset distance threshold, the first An output path of voice information is switched to the speaker;
当输出所述第一语音信息的输出通路为所述听筒,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离不大于预设距离阈值时,根据所述双模通信终端与用户耳部之间的距离动态调整所述听筒的输出音量;When the output path for outputting the first voice information is the handset, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is not greater than a preset distance threshold, the dual-mode The distance between the communication terminal and the user's ear dynamically adjusts the output volume of the handset;
该示例中,所述第一终端为公网通信终端,且,所述第二终端为窄带通信终端。In this example, the first terminal is a public network communication terminal, and the second terminal is a narrowband communication terminal.
此外,当输出所述第一语音信息的输出通路为所述听筒时,若接收到窄带通信终端发起的第二语音通信的接入请求,则根据所述听筒的音量输出参数调整所述扬声器的音量输出参数。In addition, when the output path for outputting the first voice information is the handset, if an access request for the second voice communication initiated by the narrowband communication terminal is received, the speaker's Volume output parameter.
本实施例提供的语音通信控制系统,针对第一终端为公网通信终端且第二终端为窄带通信终端的情况,以及,第一终端为窄带通信终端且第二终端为公网通信终端的情况,分别采用了不同的语音控制策略,并合理分配所述第一语音信息和所述第二语音信息的输出通路,为用户提供了更加人性化的语音切换流程,实现了双模通信环境下不同语音通信业务的智能切换,解决了目前双模通信终端的公网语音通信与窄带语音通信之间语音输出相互冲突的问题。The voice communication control system provided in this embodiment is directed to a case where the first terminal is a public network communication terminal and the second terminal is a narrowband communication terminal, and a case where the first terminal is a narrowband communication terminal and the second terminal is a public network communication terminal. Different voice control strategies are adopted, and the output channels of the first voice information and the second voice information are reasonably allocated, which provides a more user-friendly voice switching process for users, and realizes the difference in the dual-mode communication environment. The intelligent switching of voice communication services solves the problem of conflicting voice output between the public network voice communication and the narrowband voice communication of the current dual-mode communication terminal.
并且,在第一终端为公网通信终端,且第二终端为窄带通信终端的情况下,根据所述双模通信终端的运动状态、输出第一通信语音的输出模块,来动态切换第一语音信息的输出通路,使其与用户的使用习惯相适应,使语音输出控制更具人性化;当输出所述第一语音信息的输出通路为所述听筒时,若接收到窄带通信终端发起的第二语音通信的接入请求,则根据所述听筒的音量输出参数调整所述扬声器的音量输出参数,使扬声器的输出音量与听筒的输出音量相拟合,使扬声器的输出音量被控制在合理范围内,从而提高音量控制的人性化程度。Moreover, when the first terminal is a public network communication terminal and the second terminal is a narrowband communication terminal, the first voice is dynamically switched according to the motion state of the dual-mode communication terminal and the output module that outputs the first communication voice. The output path of the information is adapted to the user's usage habits, making the voice output control more humane. When the output path for outputting the first voice information is the handset, if the first For the access request of two voice communications, the volume output parameter of the speaker is adjusted according to the volume output parameter of the handset, so that the output volume of the speaker matches the output volume of the handset, and the output volume of the speaker is controlled within a reasonable range Inside, thereby improving the ergonomics of volume control.
本申请实施例还提供了一种存储介质,所述存储介质中存储有计算机程序代码,所述计算机程序代码被运行时实现如前述实施例中所述的语音通信控制方法。An embodiment of the present application further provides a storage medium, where the computer program code is stored in the storage medium, and when the computer program code is executed, the voice communication control method as described in the foregoing embodiment is implemented.
本申请实施例还提供了一种与前述实施例中所述的语音通信控制方法相对应的双模通信终端,所述终端包括:处理器、存储器和通信模块;An embodiment of the present application further provides a dual-mode communication terminal corresponding to the voice communication control method described in the foregoing embodiment. The terminal includes: a processor, a memory, and a communication module.
所述通信模块,用于与第一终端进行第一语音通信,其中包括接收并输出所述第一终端发送的第一语音信息;The communication module is configured to perform first voice communication with a first terminal, and includes receiving and outputting first voice information sent by the first terminal;
所述处理器,用于当接收到第二终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级;The processor is configured to determine a priority of the second voice communication and the first voice communication when a second voice communication access request initiated by a second terminal is received;
所述通信模块,还用于根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息;The communication module is further configured to receive and output the first voice information sent by the first terminal according to the priority of the second voice communication and the first voice communication, and / or the second terminal Sent second voice information;
所述存储器,用于存储所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息;The memory is configured to store first voice information sent by the first terminal, and / or second voice information sent by the second terminal;
其中,所述第一语音信息与所述第二语音信息的通信模式不同。Wherein, the communication modes of the first voice information and the second voice information are different.
本实施例提供的双模通信终端,与第一终端进行第一语音通信,其中包括接收并输出所述第一终端发送的第一语音信息,当接收到第二终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级,根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息,从而实现了双模通信环境下不同语音通信业务的智能切换,解决了目前双模通信终端的公网语音通信与窄带语音通信之间语音输出相互冲突的问题。The dual-mode communication terminal provided in this embodiment performs first voice communication with the first terminal, and includes receiving and outputting the first voice information sent by the first terminal, and receiving the second voice communication initiated by the second terminal. When an access request is made, the priority of the second voice communication and the first voice communication is determined, and according to the priority of the second voice communication and the first voice communication, the first terminal sends and receives the output And / or the second voice information sent by the second terminal, thereby realizing the intelligent switching of different voice communication services in a dual-mode communication environment, and solving the public network voice communication of the current dual-mode communication terminal. The problem of conflicting voice output with narrowband voice communication.
最后,还需要说明的是,在本文中,诸如第一和第一等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should be noted that in this article, relational terms such as first and first are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities. There is any such actual relationship or order between OR operations. Moreover, the terms "including", "comprising", or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or device that includes a series of elements includes not only those elements but also those that are not explicitly listed Or other elements inherent to such a process, method, article, or device. Without more restrictions, the elements defined by the sentence "including a ..." do not exclude the existence of other identical elements in the process, method, article, or equipment including the elements.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本申请可借助软件加必需的硬件平台的方式来实现,当然也可以全部通过硬件来实施,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案对背景技术做出贡献的全部或者部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例或者实施例的某些部分所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus a necessary hardware platform, and of course all of them can be implemented by hardware, but in many cases the former is better. Implementation. Based on such an understanding, all or part of the technical solution of the present application that contributes to the background technology can be embodied in the form of a software product, which can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc. , Including a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in each embodiment or some parts of the application.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的系统而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。The embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same and similar parts between the embodiments, refer to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant part may refer to the description of the method.
本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处。综上所述,本说明书内容不应理解为对本申请的限制。Specific examples are used herein to explain the principles and implementations of the present application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; meanwhile, for those of ordinary skill in the art, according to this application There will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be construed as a limitation on this application.

Claims (12)

  1. 一种语音通信控制方法,其中,应用于双模通信终端,所述方法包括:A voice communication control method, which is applied to a dual-mode communication terminal, and the method includes:
    与第一终端进行第一语音通信,其中包括接收并输出所述第一终端发送的第一语音信息;Performing a first voice communication with a first terminal, which includes receiving and outputting first voice information sent by the first terminal;
    当接收到第二终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级;Determining the priority of the second voice communication and the first voice communication when receiving an access request for a second voice communication initiated by the second terminal;
    根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息;Receiving and outputting the first voice information sent by the first terminal and / or the second voice information sent by the second terminal according to the priorities of the second voice communication and the first voice communication;
    其中,所述第一语音信息与所述第二语音信息的通信模式不同。Wherein, the communication modes of the first voice information and the second voice information are different.
  2. 如权利要求1所述的方法,其中,当所述第一终端为公网通信终端,且所述第二终端为窄带通信终端时,所述根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息包括:The method according to claim 1, wherein when the first terminal is a public network communication terminal and the second terminal is a narrowband communication terminal, the communicating with the first voice according to the second voice communication Priority of communication, receiving and outputting the first voice information sent by the first terminal, and / or the second voice information sent by the second terminal includes:
    当所述第二语音通信的优先级高于所述第一语音通信的优先级时,接收并输出所述窄带通信终端发送的第二语音信息,且终止所述第一语音通信;When the priority of the second voice communication is higher than the priority of the first voice communication, receiving and outputting second voice information sent by the narrowband communication terminal, and terminating the first voice communication;
    当所述第二语音通信的优先级低于所述第一语音通信的优先级时,继续接收并输出所述第一语音信息,且接收所述窄带通信终端发送的第二语音信息,并对所述第二语音信息进行录音;When the priority of the second voice communication is lower than the priority of the first voice communication, continue to receive and output the first voice information, and receive the second voice information sent by the narrowband communication terminal, and Recording the second voice information;
    当所述第二语音通信的优先级等于所述第一语音通信的优先级时,接收并输出所述第一语音信息和所述窄带通信终端发送的第二语音信息。When the priority of the second voice communication is equal to the priority of the first voice communication, receiving and outputting the first voice information and the second voice information sent by the narrowband communication terminal.
  3. 如权利要求2所述的方法,其中,所述双模通信终端的输出通路包括:听筒与扬声器;所述接收并输出所述第一语音信息和所述窄带通信终端发送的第二语音信息包括:The method according to claim 2, wherein the output path of the dual-mode communication terminal comprises: a handset and a speaker; and the receiving and outputting the first voice information and the second voice information sent by the narrowband communication terminal include :
    当输出所述第一语音信息的输出通路为所述听筒时,利用所述扬声器输出所述窄带通信终端发送的第二语音信息;When the output path for outputting the first voice information is the handset, use the speaker to output the second voice information sent by the narrowband communication terminal;
    当输出所述第一语音信息的输出通路为所述扬声器时,将输出所述第一语音通信的输出通路切换为所述听筒,并利用所述扬声器输出所述窄带通信终端发送的第二语音信息。When the output path for outputting the first voice information is the speaker, switching the output path for outputting the first voice communication to the handset, and using the speaker to output the second voice sent by the narrowband communication terminal information.
  4. 如权利要求1所述的方法,其中,当所述第一终端为窄带通信终端,且所述第二终端为公网通信终端时,所述根据所述第二语音通信与所述第一语 音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息包括:The method according to claim 1, wherein when the first terminal is a narrowband communication terminal and the second terminal is a public network communication terminal, the communication with the first voice according to the second voice communication is performed. Priority of communication, receiving and outputting the first voice information sent by the first terminal, and / or the second voice information sent by the second terminal includes:
    当所述第二语音通信的优先级高于所述第一语音通信的优先级时,接收并输出所述公网通信终端发送的第二语音信息,并对所述窄带通信终端发送的第一语音信息进行录音,且终止所述第一语音信息的输出;When the priority of the second voice communication is higher than the priority of the first voice communication, receiving and outputting the second voice information sent by the public network communication terminal, and Recording voice information, and terminating output of the first voice information;
    当所述第二语音通信的优先级低于所述第一语音通信的优先级时,继续接收并输出所述第一语音信息,并拒绝所述第二语音通信的接入;When the priority of the second voice communication is lower than the priority of the first voice communication, continue to receive and output the first voice information, and deny access to the second voice communication;
    当所述第二语音通信的优先级等于所述第一语音通信的优先级时,接收并输出所述第一语音信息和所述公网通信终端发送的第二语音信息。When the priority of the second voice communication is equal to the priority of the first voice communication, receiving and outputting the first voice information and the second voice information sent by the public network communication terminal.
  5. 如权利要求4所述的方法,其中,双模通信终端的输出通路包括:听筒与扬声器;其中,输出所述第一语音信息的输出通路为所述扬声器;所述接收并输出所述第一语音信息和所述公网通信终端发送的第二语音信息包括:The method according to claim 4, wherein the output path of the dual-mode communication terminal comprises: a handset and a speaker; wherein the output path for outputting the first voice information is the speaker; and receiving and outputting the first The voice information and the second voice information sent by the public network communication terminal include:
    利用所述听筒输出所述公网通信终端发送的第二语音信息。Using the handset to output second voice information sent by the public network communication terminal.
  6. 如权利要求1所述的方法,其中,所述双模通信终端的输出通路包括:听筒和扬声器;当所述第一终端为公网通信终端,且所述第二终端为窄带通信终端时,在所述与第一终端进行第一语音通信之后,且所述接收到第二终端发起的第二语音通信的接入请求之前,所述方法还包括:The method according to claim 1, wherein the output path of the dual-mode communication terminal comprises: a handset and a speaker; when the first terminal is a public network communication terminal and the second terminal is a narrowband communication terminal, After performing the first voice communication with the first terminal and before receiving the access request for the second voice communication initiated by the second terminal, the method further includes:
    检测所述双模通信终端的运动状态;Detecting a motion state of the dual-mode communication terminal;
    当输出所述第一语音信息的输出通路为所述扬声器,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离小于预设距离阈值时,将输出所述第一语音信息的输出通路切换为所述听筒;When the output path for outputting the first voice information is the speaker, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is less than a preset distance threshold, the first The output path of voice information is switched to the handset;
    当输出所述第一语音信息的输出通路为所述听筒,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离大于预设距离阈值时,将输出所述第一语音信息的输出通路切换为所述扬声器;When the output path for outputting the first voice information is the handset, and the movement state indicates that the distance between the dual-mode communication terminal and the user's ear is greater than a preset distance threshold, the first An output path of voice information is switched to the speaker;
    当输出所述第一语音信息的输出通路为所述听筒,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离不大于预设距离阈值时,根据所述双模通信终端与用户耳部之间的距离动态调整所述听筒的输出音量。When the output path for outputting the first voice information is the handset, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is not greater than a preset distance threshold, the dual-mode The distance between the communication terminal and the user's ear dynamically adjusts the output volume of the handset.
  7. 如权利要求6所述的方法,其中,所述方法还包括:The method of claim 6, further comprising:
    当输出所述第一语音信息的输出通路为所述听筒时,若接收到窄带通信终端发起的第二语音通信的接入请求,则根据所述听筒的音量输出参数调整所述 扬声器的音量输出参数。When the output path for outputting the first voice information is the handset, if an access request for the second voice communication initiated by the narrowband communication terminal is received, the volume output of the speaker is adjusted according to the volume output parameter of the handset parameter.
  8. 一种语音通信控制系统,其中,应用于双模通信终端,所述系统包括:语音通信单元与优先级确定单元;A voice communication control system, which is applied to a dual-mode communication terminal, and the system includes a voice communication unit and a priority determination unit;
    所述语音通信单元,用于与第一终端进行第一语音通信,其中包括接收并输出所述第一终端发送的第一语音信息;The voice communication unit is configured to perform first voice communication with a first terminal, and includes receiving and outputting first voice information sent by the first terminal;
    优先级确定单元,用于当接收到第二终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级;A priority determining unit, configured to determine a priority of the second voice communication and the first voice communication when a second voice communication access request initiated by a second terminal is received;
    所述语音通信单元,还用于根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息;The voice communication unit is further configured to receive and output first voice information sent by the first terminal according to the priorities of the second voice communication and the first voice communication, and / or, the second The second voice information sent by the terminal;
    其中,所述第一语音信息与所述第二语音信息的通信模式不同。Wherein, the communication modes of the first voice information and the second voice information are different.
  9. 如权利要求8所述的系统,其中,当所述第一终端为公网通信终端,且所述第二终端为窄带通信终端时,所述语音通信单元具体用于:The system according to claim 8, wherein when the first terminal is a public network communication terminal and the second terminal is a narrowband communication terminal, the voice communication unit is specifically configured to:
    当所述第二语音通信的优先级高于所述第一语音通信的优先级时,接收并输出所述窄带通信终端发送的第二语音信息,且终止所述第一语音通信;When the priority of the second voice communication is higher than the priority of the first voice communication, receiving and outputting second voice information sent by the narrowband communication terminal, and terminating the first voice communication;
    当所述第二语音通信的优先级低于所述第一语音通信的优先级时,继续接收并输出所述第一语音信息,且接收所述窄带通信终端发送的第二语音信息,并对所述第二语音信息进行录音;When the priority of the second voice communication is lower than the priority of the first voice communication, continue to receive and output the first voice information, and receive the second voice information sent by the narrowband communication terminal, and Recording the second voice information;
    当所述第二语音通信的优先级等于所述第一语音通信的优先级时,接收并输出所述第一语音信息和所述窄带通信终端发送的第二语音信息。When the priority of the second voice communication is equal to the priority of the first voice communication, receiving and outputting the first voice information and the second voice information sent by the narrowband communication terminal.
  10. 如权利要求8所述的系统,其中,所述双模通信终端的输出通路包括听筒和扬声器;所述系统还包括:运动状态检测单元与输出通路切换单元;The system according to claim 8, wherein the output path of the dual-mode communication terminal includes a handset and a speaker; the system further comprises: a motion state detection unit and an output path switching unit;
    所述运动状态检测单元,用于检测所述双模通信终端的运动状态;The motion state detecting unit is configured to detect a motion state of the dual-mode communication terminal;
    所述输出通路切换单元,用于在所述与第一终端进行第一语音通信之后,且,所述接收到第二终端发起的第二语音通信的接入请求之前,执行以下操作:The output path switching unit is configured to perform the following operations after the first voice communication with the first terminal and before receiving the access request for the second voice communication initiated by the second terminal:
    当输出所述第一语音信息的输出通路为所述扬声器,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离小于预设距离阈值时,将输出所述第一语音信息的输出通路切换为所述听筒;When the output path for outputting the first voice information is the speaker, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is less than a preset distance threshold, the first The output path of voice information is switched to the handset;
    当输出所述第一语音信息的输出通路为所述听筒,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离大于预设距离阈值时,将输出所述第 一语音信息的输出通路切换为所述扬声器;When the output path for outputting the first voice information is the handset, and the movement state indicates that the distance between the dual-mode communication terminal and the user's ear is greater than a preset distance threshold, the first An output path of voice information is switched to the speaker;
    当输出所述第一语音信息的输出通路为所述听筒,且,所述运动状态表征所述双模通信终端与用户耳部之间的距离不大于预设距离阈值时,根据所述双模通信终端与用户耳部之间的距离动态调整所述听筒的输出音量;When the output path for outputting the first voice information is the handset, and the motion state indicates that the distance between the dual-mode communication terminal and the user's ear is not greater than a preset distance threshold, the dual-mode The distance between the communication terminal and the user's ear dynamically adjusts the output volume of the handset;
    其中,所述第一终端为公网通信终端,且,所述第二终端为窄带通信终端。The first terminal is a public network communication terminal, and the second terminal is a narrowband communication terminal.
  11. 一种存储介质,其中,所述存储介质中存储有计算机程序代码,所述计算机程序代码被运行时实现如权利要求1至7任意一项所述的语音通信控制方法。A storage medium, wherein a computer program code is stored in the storage medium, and when the computer program code is executed, the voice communication control method according to any one of claims 1 to 7 is implemented.
  12. 一种双模通信终端,其中,所述终端包括:处理器、存储器和通信模块;A dual-mode communication terminal, wherein the terminal includes: a processor, a memory, and a communication module;
    所述通信模块,用于与第一终端进行第一语音通信,其中包括接收并输出所述第一终端发送的第一语音信息;The communication module is configured to perform first voice communication with a first terminal, and includes receiving and outputting first voice information sent by the first terminal;
    所述处理器,用于当接收到第二终端发起的第二语音通信的接入请求时,确定所述第二语音通信与所述第一语音通信的优先级;The processor is configured to determine a priority of the second voice communication and the first voice communication when a second voice communication access request initiated by a second terminal is received;
    所述通信模块,还用于根据所述第二语音通信与所述第一语音通信的优先级,接收并输出所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息;The communication module is further configured to receive and output the first voice information sent by the first terminal according to the priority of the second voice communication and the first voice communication, and / or the second terminal Sent second voice information;
    所述存储器,用于存储所述第一终端发送的第一语音信息,和/或,所述第二终端发送的第二语音信息;The memory is configured to store first voice information sent by the first terminal, and / or second voice information sent by the second terminal;
    其中,所述第一语音信息与所述第二语音信息的通信模式不同。Wherein, the communication modes of the first voice information and the second voice information are different.
PCT/CN2018/106701 2018-09-20 2018-09-20 Voice communication control method and system WO2020056665A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/106701 WO2020056665A1 (en) 2018-09-20 2018-09-20 Voice communication control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/106701 WO2020056665A1 (en) 2018-09-20 2018-09-20 Voice communication control method and system

Publications (1)

Publication Number Publication Date
WO2020056665A1 true WO2020056665A1 (en) 2020-03-26

Family

ID=69888143

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/106701 WO2020056665A1 (en) 2018-09-20 2018-09-20 Voice communication control method and system

Country Status (1)

Country Link
WO (1) WO2020056665A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147421A (en) * 2017-06-19 2017-09-08 泉州欧讯电子有限公司 A kind of double mode intercom
CN108235450A (en) * 2017-05-19 2018-06-29 成都零壹众科技有限公司 A kind of public network is to the seamless adaptive communication means of traditional intercommunication bimodulus of making peace

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108235450A (en) * 2017-05-19 2018-06-29 成都零壹众科技有限公司 A kind of public network is to the seamless adaptive communication means of traditional intercommunication bimodulus of making peace
CN107147421A (en) * 2017-06-19 2017-09-08 泉州欧讯电子有限公司 A kind of double mode intercom

Similar Documents

Publication Publication Date Title
US11812485B2 (en) Bluetooth communication method and terminal
US9332410B2 (en) Method, apparatus, and terminal for answering call
JP6312843B2 (en) Establishing a connection between the mobile device and the vehicle's hands-free system based on their distance
US20140170979A1 (en) Contextual power saving in bluetooth audio
CN104243662B (en) Terminal prompt mode adjusting method and terminal
US10950238B2 (en) Bluetooth speaker base, method and system for controlling thereof
WO2013060109A1 (en) Processing method for call of terminal, terminal and processing system
WO2020019820A1 (en) Microphone hole blockage detection method and related product
US10827455B1 (en) Method and apparatus for sending a notification to a short-range wireless communication audio output device
WO2013127302A1 (en) Method and terminal for preventing voice crosstalk between external loudspeaker and microphone
CN102984374A (en) Communication terminal and communication manner switching method thereof
US11507340B2 (en) Audio output method, electronic device, and storage medium
CN107621933B (en) Audio playing method and device and related medium product
WO2017113581A1 (en) Method, device and system for controlling call
TW201448556A (en) Volume adjusting system and method
WO2020019843A1 (en) Microphone hole blockage detection method and related product
WO2014127712A1 (en) Method and device for controlling call audio channel of communication terminal, and communication terminal
CN111757306B (en) External playing method and system based on earphone charging box and readable storage medium
EP2636212B1 (en) Controlling audio signals
WO2015067067A1 (en) Calling method, communication terminal and storage medium
CN110933710B (en) Voice communication control method and system
WO2020056665A1 (en) Voice communication control method and system
WO2020082387A1 (en) Method for changing audio channel, and related device
WO2020019822A1 (en) Microphone hole blockage detecting method and related product
WO2023123459A1 (en) Information reception method and apparatus, information transmission method and apparatus, communication apparatus, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18933777

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11/08/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18933777

Country of ref document: EP

Kind code of ref document: A1