WO2018099284A1 - Communication method and apparatus - Google Patents

Communication method and apparatus Download PDF

Info

Publication number
WO2018099284A1
WO2018099284A1 PCT/CN2017/111802 CN2017111802W WO2018099284A1 WO 2018099284 A1 WO2018099284 A1 WO 2018099284A1 CN 2017111802 W CN2017111802 W CN 2017111802W WO 2018099284 A1 WO2018099284 A1 WO 2018099284A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
message
voice
client
electronic device
Prior art date
Application number
PCT/CN2017/111802
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 阿里巴巴集团控股有限公司
Publication of WO2018099284A1 publication Critical patent/WO2018099284A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1083In-session procedures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/762Media network packet handling at the source 

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a communication method and apparatus.
  • the user can implement the communication operation based on the instant messaging technology by running the client of the instant messaging application on the electronic device, that is, performing the transmission of the instant messaging message.
  • the electronic device needs to be connected to a wireless local area network such as a mobile communication network or a WIFI, the communication resource of the packet switching domain provided by the mobile communication network or the wireless local area network realizes the transmission of the instant communication message.
  • the communication resources provided by the mobile communication network or the wireless local area network are limited, and the number of devices using the communication resource in the same area is large, or some devices occupy a large amount of communication resources due to a conference call or a video conference, or some devices are
  • the communication resources may be insufficient or unstable, thereby causing the failure of the instant messaging message transmission and reducing the communication efficiency between users.
  • the signal strength of the mobile communication network or the wireless local area network may be weak, and even the normal communication operation cannot be guaranteed, thereby causing the failure of the instant messaging message transmission.
  • the present application provides a communication method and device, which can realize reasonable utilization of communication resources and help improve communication efficiency.
  • a communication method comprising:
  • the user input content obtained by the instant messaging application running on the electronic device is generated as a corresponding communication voice to be sent;
  • the to-be-sent communication voice is generated as a voice type instant messaging message, and the voice type instant messaging message is sent;
  • a communication method comprising:
  • an inquiry message for the device of the target user is sent by the first intercom module installed on the electronic device;
  • a communication method comprising:
  • the voice message is from a second client of the instant messaging application running on the second electronic device, and the voice message is sent by a second intercom module installed on the second electronic device,
  • the first client is configured as an intercom mode for the second client.
  • a communication method comprising:
  • the communication message When the message type is a voice type, the communication message is played; when the message type is a text type, the communication message is voice converted into a voice message, and the converted voice message is played.
  • a communication device comprising:
  • the detecting unit generates the user input content obtained by the client of the instant messaging application running on the electronic device as a corresponding communication voice to be sent;
  • a first sending unit when the client is configured to be in an instant messaging mode, generating the to-be-sent communication voice as a voice type instant messaging message, and issuing the voice type instant messaging message;
  • a second sending unit when the client is configured to be in an intercom mode, sending the to-be-sent communication voice by using a first intercom module installed on the electronic device.
  • a communication device comprising:
  • the inquiry unit detects the communication for the target user when the client of the instant messaging application running on the electronic device detects When requested, an inquiry message for the device of the target user is issued by the first intercom module installed on the electronic device;
  • a setting unit when receiving a confirmation message returned by the second intercom module installed on the device of the target user, setting a mode switching option on the client to a triggerable state; wherein, when the mode switching option is When triggered, the client implements mode switching between the instant messaging mode and the intercom mode.
  • a communication device comprising:
  • the detecting unit detects, by the first client of the instant messaging application running on the first electronic device, the voice message received by the first intercom module installed on the electronic device;
  • a configuration unit when the voice message is from a second client of the instant messaging application running on the second electronic device, and the voice message is sent by a second intercom module installed on the second electronic device,
  • the first client is configured as an intercom mode for the second client.
  • a communication device comprising:
  • the detecting unit detects, by the first client of the instant messaging application running on the first electronic device, the communication message received by the first intercom module installed on the electronic device;
  • a determining unit when the communication message is from a second client of the instant messaging application running on the second electronic device, and the communication message is sent by a second intercom module installed on the second electronic device, Determining a message type of the communication message;
  • a playing unit when the message type is a voice type, playing the communication message; when the message type is a text type, converting the communication message into a voice message, and playing the converted voice message.
  • the present application applies the first intercom module on the electronic device, and enables the client of the instant messaging application to apply the first intercom module, so that the client of the instant messaging application can not only transmit the instant.
  • the communication message can also realize the message transmission based on the intercom voice form through the first intercom module, thereby fully utilizing the communication resources of different frequency bands to realize the transmission of the communication voice in the instant messaging application, and avoiding insufficient communication resources in some frequency bands.
  • the resulting poor communication can also prevent the failure of the instant messaging message transmission caused by the weak signal of the mobile communication network, which helps to improve the communication efficiency based on the instant messaging application.
  • FIG. 1A is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure.
  • FIG. 1B is a flowchart of a communication method according to an exemplary embodiment of the present application.
  • FIG. 3 is a schematic diagram of a message session page of a client of an instant messaging application according to an exemplary embodiment of the present application
  • FIG. 4 is another schematic diagram of a message session page of a client of an instant messaging application according to an exemplary embodiment of the present application
  • FIG. 5 is still another schematic diagram of a message session page of a client of an instant messaging application according to an exemplary embodiment of the present application
  • FIG. 6 is still another schematic diagram of a message session page of a client of an instant messaging application according to an exemplary embodiment of the present application.
  • FIG. 7 is still another schematic diagram of a message session page of a client of an instant messaging application according to an exemplary embodiment of the present application.
  • FIG. 8 is still another schematic diagram of a message session page of a client of an instant messaging application according to an exemplary embodiment of the present application.
  • FIG. 9 is still another schematic diagram of a message session page of a client of an instant messaging application according to an exemplary embodiment of the present application.
  • FIG. 10 is a flowchart of still another communication method according to an exemplary embodiment of the present application.
  • FIG. 11 is a flowchart of still another communication method according to an exemplary embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure.
  • FIG. 13 is a block diagram of a communication apparatus according to an exemplary embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of another electronic device according to an exemplary embodiment of the present disclosure.
  • FIG. 15 is a block diagram of another communication apparatus according to an exemplary embodiment of the present application.
  • FIG. 16 is a schematic structural diagram of still another electronic device according to an exemplary embodiment of the present application.
  • FIG. 17 is a block diagram of still another communication apparatus according to an exemplary embodiment of the present application.
  • FIG. 18 is a flowchart of still another communication method according to an exemplary embodiment of the present application.
  • FIG. 19 is a schematic structural diagram of still another electronic device according to an exemplary embodiment of the present application.
  • FIG. 20 is a block diagram of still another communication apparatus according to an exemplary embodiment of the present application.
  • the client of the instant messaging application running on the electronic device realizes the transmission operation of the instant messaging message only through the mobile communication network connected by the electronic device or the communication resource of the packet switching domain provided by the wireless local area network.
  • the mobile communication network or the wireless local area network only uses communication resources in some frequency bands, for example, a WCDMA (Wideband Code Division Multiple Access) mobile communication network, for example, using 1920 MHz-1980 MHz, 2110 MHz-2170 MHz.
  • Communication resources in the same frequency band enable communication data interaction, while communication resources in many other frequency bands cannot be utilized by instant messaging applications, resulting in an unreasonable distribution of communication resources.
  • the mobile communication network or the wireless local area network may have a poor signal condition, so that even if the communication resources are sufficient, the instant messaging message transmission may fail.
  • FIG. 1A is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
  • the electronic device may include: a device body and an intercom module; wherein the device body is equivalent to an "electronic device" in the related art, such as a mobile phone, a tablet, etc., in other words, in other words, it is considered that the present application further assembles an intercom module for the electronic device on the basis of the related art, so that the electronic device can implement the intercom function of the intercom device such as the interphone in the related art.
  • the intercom module can cooperate with the device body in various ways. Structurally speaking, the intercom module can be pre-built in the device body. For example, the intercom module can be soldered to the main board of the device body without adding it later; or the intercom module can be an external independent functional component.
  • the electronic device according to the present application is implemented by establishing a data connection with the device body to implement the cooperation with the device body.
  • the intercom module can be assembled in a protective case (such as a mobile phone case, etc.) of the electronic device, so that the electronic device After the device is assembled with the protective case, not only can the protection performance of the electronic device be increased, but also the intercom function can be added and implemented.
  • the intercom module and the device body can be connected and interacted by wire.
  • the intercom module can access the earphone hole on the device body through the earphone cable, or access the USB device on the device body through the data cable. Interfaces, etc., thereby implementing a wired connection between the two, and transmitting various types of communication messages such as voice, text, etc.; or, the intercom module and the device body can also establish a data connection and interaction by wireless, for example, based on Bluetooth, WIFI, ZigBee and other wireless communication protocols are implemented.
  • a client running on the instant messaging application of the present application is run on the device body, and the function logic of the client at the runtime can be matched with the intercom module, so as to cooperate with the intercom module to implement the communication scheme of the present application; Since the device body belongs to a part of the electronic device, descriptions such as "a client running an instant messaging application on the electronic device” are also described below, and those skilled in the art should understand that it is equivalent to "a client running an instant messaging application on the device body". ", without running the client on the intercom module.
  • FIG. 1B is a flowchart of a communication method according to an exemplary embodiment of the present application. As shown in FIG. 1B, the method is applied to a client of an instant messaging application, and may include the following steps:
  • Step 102 Generate, by using a client of an instant messaging application running on the electronic device, the obtained user input content as a corresponding communication voice to be sent.
  • the instant messaging application can be any form of instant messaging application, and the application does not limit this.
  • the instant messaging application can be an enterprise instant messaging (EIM) application, such as "DING Talk”.
  • EIM enterprise instant messaging
  • the electronic device by installing a client application (APP) of the instant messaging application on the electronic device and logging in the registered account of the user at the instant messaging application, the electronic device can be configured as the instant corresponding to the user.
  • the client of the communication application may be a mobile device such as a mobile phone or a tablet, or the electronic device may also be a non-mobile electronic device such as a PC host, which is not limited in this application.
  • client when using an online "client” such as HTML5 technology, the client can be obtained and run without even having to install the corresponding application on the electronic device.
  • the user input content may include at least one of voice data and a text message; wherein, when the user input content includes voice data, for example, the user directly performs voice input through a sound pickup component such as a microphone on the electronic device to obtain The voice data can be directly generated by the electronic device as the communication voice to be sent; and when the user input content includes the text message, the electronic device can perform voice conversion on the text message to obtain the communication voice to be sent.
  • voice data for example, the user directly performs voice input through a sound pickup component such as a microphone on the electronic device to obtain
  • a sound pickup component such as a microphone on the electronic device
  • Step 104 When the client is configured to the instant messaging mode, generate the to-be-sent communication voice as a voice type instant messaging message, and issue the voice type instant messaging message.
  • Step 106 When the client is configured to be in the intercom mode, the to-be-transmitted communication voice is sent by the first intercom module installed on the electronic device.
  • the intercom module refers to any hardware module that can implement a two way radio function, and the intercom module can be built in the electronic device, or the intercom module can also be an external structure.
  • the intercom module can be assembled in an external protective case of the electronic device (for example, when the electronic device is a mobile phone, the external protective case can be a mobile phone case, etc.), or the intercom module can also be used as an independent device.
  • An external accessory to establish a connection with an electronic device through, for example, a headphone jack, a data line interface, or the like.
  • the intercom module can adopt an analog processing mode, that is, the communication voice to be sent in the form of an analog signal is directly modulated to a carrier frequency to realize transmission; or, the intercom module can also adopt a digital processing manner, that is, the communication voice to be transmitted is simulated. After the signal is converted into a digital signal, the communication voice to be transmitted in the form of a digital signal is modulated to a carrier frequency. The transmission is implemented, and this application does not limit this.
  • the client running on the electronic device can use the transmission method of the instant messaging message in the related art, for example, the communication resource of the mobile communication network, to realize the sending operation of the communication voice to be sent.
  • the communication resources of the radio frequency bands such as 136-174 MHz and 400-470 MHz applied to the walkie-talkie device in the related art can be fully utilized to realize the transmission operation of the communication voice to be transmitted.
  • the client may determine a communication status between the first intercom module and a second intercom module installed on the target user's device, and when the communication status is in a communicable state, actively
  • the client is configured as the intercom mode. Since the communication resources of the mobile communication network are applied to the transmission of instant messaging messages, they are also applied to other data transmission operations such as video conferences, audio conferences, file downloads, etc., and thus it is easy to perform the operation of transmitting instant messaging messages. The communication resources are insufficient, the message transmission is not smooth, and even the instant messaging message fails to be sent, and the push delay is delayed, thereby affecting normal instant messaging operations.
  • the user can implement a transmission operation of the communication voice to be transmitted through the communication resource of the intercom module, so that the to-be-sent communication voice can be realized more quickly. Fast and smooth transmission helps to improve user communication efficiency.
  • the client may determine a communication status between the first intercom module and a second intercom module installed on the target user's device, and when the communication status is communicable, The mode switching option on the client is set to a triggerable state; wherein, when the mode switching option is triggered, the client implements mode switching between the instant messaging mode and the intercom mode. Then, by setting the mode switching option to the triggerable state, the user can manually select the instant messaging mode or the intercom mode to implement the transmission operation of the communication voice to be transmitted according to the actual needs of the user, which helps to improve the communication behavior of the user. Degree of freedom.
  • the client may determine a separation distance between the electronic device and a device of the target user, and determine that the communication state is in a state when the separation distance is not greater than a preset distance.
  • the client may determine the separation distance by using at least one of the following manners:
  • the positioning information may be, for example, a GPS chip built in by the device (the above-mentioned electronic device or the device of the target user)
  • the positioning information is obtained or obtained by other means, and the application does not limit this.
  • the preset near field wireless connection For example, it may be a Bluetooth connection, a ZigBee connection, etc., and this application does not limit this.
  • the client may send an inquiry message to the second intercom module through the first intercom module, and when receiving the confirmation message returned by the second intercom module, determine that it is in the The communication status is described.
  • the confirmation message may be automatically returned by the second intercom module to the first intercom module after receiving the inquiry message, so that the entire confirmation process is for the target user.
  • the target user does not need to pay attention to the confirmation process; in fact, the first intercom module can implement periodic confirmation with the second intercom module according to the preset period, and thus the second intercom module automatically returns the confirmation message. , can significantly reduce the amount of operations of the target user.
  • the confirmation message may be by the second The intercom module returns to the first intercom module according to the confirmation operation performed by the target user; in other words, in this case, the target user needs to manually perform the confirmation operation on the inquiry prompt, then the first intercom module can be, for example, When it is detected that the communication requirement for the target user (for example, the message session window for the target user is turned on), the inquiry message is sent to the corresponding second intercom module to reduce the operation amount of the target user.
  • the to-be-sent communication voice when the communication voice to be sent is sent by the first intercom module, if the to-be-sent communication voice is not successfully sent, the to-be-sent communication voice may be generated as a voice type instant.
  • the communication message is sent, and the to-be-sent communication voice is sent in an instant messaging manner to ensure that the to-be-sent communication voice can be successfully sent to the target user.
  • the to-be-sent communication voice when the to-be-sent communication voice is sent by using an instant messaging mode, if the to-be-sent communication voice is not successfully transmitted, the communication voice to be sent is sent by the first intercom module to ensure The to-be-sent communication voice can be smoothly transmitted to the target user.
  • the electronic device when the electronic device sends or receives a communication voice through the assembled intercom module (such as the first intercom module described above), the electronic device may not save the communication voice due to the “intercom” feature. Or, the electronic device can also save the communication voice that is sent or received, so that the user can listen to it repeatedly. Of course, the user can configure the electronic device to save or not to send or receive the communication voice according to his own needs, or only save the sent communication voice without saving the received communication voice, or only save the received communication. Voice without saving the outgoing communication voice, etc. Alternatively, the electronic device may temporarily store the communication voice for a preset duration after each communication voice is sent or received, and when the user confirms the storage within the preset duration, the electronic device pairs the corresponding communication voice. Long-term storage, otherwise the electronic device will automatically delete after the preset time has elapsed. Corresponding communication voice.
  • the present application applies the first intercom module on the electronic device, and enables the client of the instant messaging application to apply the first intercom module, so that the client of the instant messaging application can not only transmit the instant.
  • the communication message can also realize the message transmission based on the intercom voice form through the first intercom module, thereby fully utilizing the communication resources of different frequency bands to realize the transmission of the communication voice in the instant messaging application, and avoiding insufficient communication resources in some frequency bands.
  • the resulting poor communication can also prevent the failure of the instant messaging message transmission caused by the weak signal of the mobile communication network, which helps to improve the communication efficiency based on the instant messaging application.
  • FIG. 2 is A flow chart of another communication method provided by an exemplary embodiment of the present application. As shown in FIG. 2, the method is applied to the staple client 1 on the electronic device 1 used by the user A, so that the user A can use the staple client on the electronic device 2 used by the staple client 1 to the user B. 2 Sending a communication voice, the method may include the following steps:
  • step 202 the nail client 1 detects that the message session page corresponding to the user B is turned on.
  • the mode switching option may be performed through the following steps 204A to 208B and the like.
  • the reasonable configuration is performed so that the user A realizes the communication operation with the user B through the instant messaging mode or the intercom mode. For example, when it is detected that the user A clicks the page entry in the message list page shown in FIG. 3 and transfers to the message session page with the user B shown in FIG. 4, it can be determined that the user B corresponds to the user B.
  • the message session page is opened.
  • the communication requirement of the user A may be determined by other means, for example, according to the user A's related to the user B.
  • the business management events related to user B (such as pending approval events, pending attendance events, etc.) and historical communication content with user B can be used to analyze whether the user A exists.
  • the user B's communication needs, of course, this application does not limit this.
  • the mode switching option is set to the triggerable state in the communication state, otherwise the mode switching option can be set to the untriggerable state.
  • whether the communication state is determined by the following steps 204A-206A; in another embodiment, whether the communication state is determined by the following steps 204B-206B; In an embodiment, the following steps 204A-206A and 204B-206B may be simultaneously performed to more accurately determine whether it is in Communication status.
  • step 204A the staple client 1 determines the separation distance between the electronic device 1 and the electronic device 2 used by the user B.
  • step 206A when the separation distance indicates that the electronic device 2 is located in the vicinity of the electronic device 1, the process proceeds to step 208B, otherwise, the process proceeds to step 208A.
  • the staple client 1 can determine the separation distance between the electronic device 1 and the electronic device 2 in various ways, which is not limited in this application;
  • the staple client 1 can acquire the separation distance calculated according to the positioning information of the electronic device 1 and the electronic device 2.
  • the electronic device 1 and the electronic device 2 respectively have a positioning component such as a GPS chip built therein, and the nail client 1 can initiate a separation distance acquisition request to the nail server, and the nail server can respectively nail the client 1 and nail The nail client 2 initiates a positioning request, so that the nail client 1 applies for a positioning operation to the electronic device 1, and the nail client 2 applies for a positioning operation to the electronic device 2, and then the electronic device 1 acquires its own positioning information through the built-in positioning component.
  • the electronic device 2 obtains its own positioning information 2 through the built-in positioning component, and the nailing client 1 and the nailing client 2 respectively upload the positioning information 1 and the positioning information 2 to the nailing server end, thereby serving by the nailing service.
  • the above-mentioned separation distance is calculated by the positioning information 1 and the positioning information 2.
  • the intercom module 1 is determined to be The intercom module 2 is in a communicable state, that is, the user A and the user B can implement voice communication through the intercom module 1 and the intercom module 2.
  • the nail client 1 may attempt to establish a preset near field wireless connection between the electronic device 1 and the electronic device 2, and when the near field wireless connection is successfully established, it is determined that the separation distance is not greater than a preset distance, and This determines that the intercom module 1 and the intercom module 2 are in a communicable state.
  • the preset near field wireless connection may include multiple types such as a Bluetooth connection, a ZigBee connection, and the like, which is not limited in this application. Since the near field wireless connection has a certain requirement for establishing a connected device distance, that is, when the electronic device 1 and the electronic device 2 should be within a certain distance, the successful establishment of the near field wireless connection can be realized, and thus the intercom When the maximum communication distance between the module 1 and the intercom module 2 is close to the maximum established distance of the near field wireless connection, the intercom can be determined when the near field wireless connection is successfully established between the electronic device 1 and the electronic device 2 Module 1 and the intercom module 2 are in a communicable state.
  • the staple client 1 can indicate the RSSI according to the detected received signal strength of the preset near field wireless connection (Received Signal Strength Indication) determines the separation distance, where the separation distance is inversely related to the value of RSSI.
  • step 204B the staple client 1 issues an inquiry message to the staple client 2 via the intercom module 1 assembled on the electronic device 1.
  • Step 206B when the staple client 1 receives the confirmation message returned by the staple client 2, the process proceeds to step 208B, otherwise, the process proceeds to step 208A.
  • the nail client 1 can issue an inquiry message through the intercom module 1, wherein the inquiry message can be configured to be only for the user B, for example, the inquiry message can include the registration account of the user B, and the The registered account is registered on the electronic device 2 to be configured as the staple client 2 corresponding to the user B.
  • the confirmation message can be automatically returned to the intercom module 1 by the intercom module 2 upon receiving the inquiry message.
  • the interrogation module 2 may determine that it is the inquiry message according to the registered account of the user B included therein and the nail client 2 running on the electronic device 2. Send the target and automatically return a confirmation message.
  • the intercom module 2 can report the received inquiry message to the nail client 2, and the nail client 2 automatically passes the registration account of the user B included in the inquiry message. The intercom module 2 returns a confirmation message.
  • the inquiry request may further include the registration account of the user A to indicate the identity of the initiator of the inquiry request; then, the nail client 2 may determine that there is a preset association relationship between the user A and the user B ( When a user A is, such as a stranger, the nail client 2 may refuse to return a confirmation message to circumvent a possible security risk.
  • the intercom module 2 can report the received inquiry message to the nail client 2, and the nail client 2 serves as the inquiry request according to the registered account of the user B included in the inquiry message.
  • the registered account of the user A of the initiator, and the user B makes an inquiry prompt to the user B through the electronic device 2, for example, the inquiry prompt can be expressed as “A invites you to enter the walkie-talkie mode” as shown in FIG. 5, and then the nail client 2 determines When the "Accept" option is triggered, the acknowledgment message is returned to the Talkback Module 1 via the Talkback Module 2, and when the Stud Client 2 determines that the "Reject" option is triggered, the acknowledgment message may be rejected.
  • the query prompt is displayed in the message session page corresponding to the user A in the nail client 2; in fact, the query prompt can be displayed in any page of the nail client 2
  • the present invention does not limit the present invention to any interface such as a lock screen interface or a standby interface of the electronic device 2 in the form of a push message.
  • step 208A the nail client 1 sets the mode switching option to the untriggerable state in the message session page corresponding to the user B.
  • step 208B the nail client 1 sets the mode switching option to a triggerable state in the message session page corresponding to the user B.
  • Step 210 When the nail client 1 detects that the mode switching option in the message session page corresponding to the user B is triggered, the process proceeds to step 212B, otherwise, the process proceeds to step 212A.
  • step 212A the nail client 1 configures itself as an instant messaging mode for the user B.
  • step 212B the nail client 1 configures itself as an intercom mode for the user B.
  • each message session page may include a mode switching option, which is used by the intercom module 1 and any contact.
  • the mode switching option on the message session page corresponding to the contact may be configured to be in a triggerable state, otherwise the mode switching option may be configured as an untriggerable state.
  • the mode switching option can be represented as a walkie-talkie icon in the form of a dashed line (or other form) indicating that the mode switching option is in an untriggerable state.
  • the mode switching option may be represented by a walkie-talkie icon in the form of a solid line as shown in FIG. 6, indicating that the mode switching option is in a triggerable state.
  • the triggerable state as shown in FIG. 6, when the user A detects a click operation on the walkie-talkie icon or the like, the nail client 1 can switch its own communication mode for the user B;
  • the staple client 1 adopts an instant messaging mode for the user B
  • the staple client 1 adopts an intercom mode for the user B, and the user A can According to the background pattern of the "walkie-talkie icon" in the message session page shown in FIG. 7, the difference is in the instant messaging mode or the intercom mode.
  • the communicable state or the non-communicable state is for a single user; for example, when the intercom module 1 and the intercom module 2 are in a communicable state, the staple client 1 can switch the mode for the user B.
  • the option is set to the triggerable state, but the intercom module 1 and the intercom module 3 corresponding to the user C may be in a non-communicable state, so the nail client 1 can set the mode switching option to the untriggerable state for the user C.
  • the instant messaging mode or the intercom mode is also for a single user; for example, when the intercom module 1 is in a communicable state with the intercom module 2 and the intercom module 3 at the same time, the staple client 1 can be based on the user A.
  • the triggering operation of the mode switching option in the message session page corresponding to the user B, and the mode switching option in the message session page corresponding to the user C The triggering operation sets the mode switching option in the message session page corresponding to the user B to the intercom mode, and sets the mode switching option in the message session page corresponding to the user C to the instant messaging mode.
  • step 214 the nail client 1 acquires a communication voice to be sent.
  • the staple client 1 can support the direct voice input of the user A, that is, the user input operation of the user A can cause the staple client 1 to directly obtain the corresponding voice data as the communication voice to be transmitted.
  • the staple client 1 can receive the text message included in the user input operation of the user A, and actively perform voice conversion on the text message to obtain the above-mentioned communication voice to be transmitted.
  • step 216 the nail client 1 sends a communication voice to be sent.
  • the staple client 1 when the staple client 1 is in the instant messaging mode, the staple client 1 transmits the communication voice to be sent to the user B in the form of instant communication; when the staple client 1 is in the intercom mode, The nailing client 1 sends the communication voice to be sent to the intercom module 2 through the intercom module 1 on the electronic device 1, and plays to the user B through the nail client 2.
  • the nail client 2 can simulate the voice message received by the intercom module 2, and can directly simulate the walkie-talkie in the related art, and directly play the voice message, and of course, the nail client 2 can voice the voice message.
  • the message is stored and the corresponding message box is shown in the message session page corresponding to User A for User B to repeatedly trigger the message box to listen to.
  • the nailing client 2 may not directly play the voice message, but adopt a processing method similar to that for the voice message in the instant messaging scenario, and display a corresponding message box in the message session page corresponding to the user A, and After the user B triggers the message box, the user plays the corresponding voice message, so that the application experience of the user B in the intercom mode is equivalent to the instant messaging mode, which helps to reduce the learning cost and improve the application experience.
  • the nail client 1 controls to send the to-be-sent communication voice through the intercom module 1, it can be displayed in the message session page.
  • the corresponding message box is displayed.
  • the communication voice to be sent is successfully sent to the intercom module 2 by the intercom module 1 and confirmed by the nail client 2 (for example, after the intercom module 2 receives the voice message, the nail client 2 may After the corresponding receiving confirmation message is returned by the nailing server or the intercom module 2, a success reminder may be displayed in the associated area of the message box (as shown in the left side of the message box in FIG. 8), for example, FIG. The " ⁇ " icon shown.
  • the associated area of the corresponding message box may show an "unlisted” mark as shown in FIG. 8, indicating that the corresponding communication voice is in an unlisted state;
  • the nail client 2 can return to the phase through the nail server or the communication module 2 In the listened state, the staple client 1 can update the above-mentioned "not listened” to "listened” or the like.
  • Step 220 When the nail client 1 has performed mode switching, the nail client 1 performs a failure reminder, otherwise proceeds to step 222.
  • step 222 the nail client 1 switches the mode and resends the above-mentioned communication voice to be transmitted, and then proceeds to step 218.
  • the nail client 1 sends the above-mentioned communication voice to be transmitted in the intercom mode as an example.
  • the nail client 1 may not successfully send the communication voice to be sent, and the nail client 1 may show "Send failed" and "Show” as shown in Figure 9.
  • the nailing client 1 can automatically switch from the intercom mode to the instant messaging mode, and resend the to-be-sent communication voice to increase the transmission success rate of the to-be-sent communication voice, and nail
  • the staple client 1 can display a "re-send by nail” or the like as shown in FIG. 9 at a corresponding message box to indicate that the content of the message box is re-issued after performing mode switching.
  • the nail client 1 uses the instant messaging mode to send the communication voice, it can refer to the instant messaging scheme in the related art, and details are not described herein; of course, if the communication voice to be sent is in the instant messaging mode If the transmission is not successful, the method may be used to switch from the instant messaging mode to the intercom mode to implement retransmission of the to-be-sent communication voice to increase the success rate of the to-be-sent communication voice. I will not repeat them here.
  • the intercom module is assembled on the electronic device, and the intercom module is utilized by the instant messaging application, so that the voice message generated by the user on the client of the instant messaging application can be selected through the instant messaging mode or The intercom mode can be used to improve the communication efficiency of the voice message.
  • FIG. 10 is a flowchart of still another communication method provided by an exemplary embodiment of the present application. As shown in FIG. 10, the method is applied to a client of an instant messaging application, and may include the following steps:
  • Step 1002 When the client of the instant messaging application running on the electronic device detects the communication requirement for the target user, an inquiry message for the device of the target user is sent by the first intercom module installed on the electronic device.
  • the communication requirements for the target user can be detected in various ways. For example, when it is detected that the message session page corresponding to the target user is turned on, it may be determined that there is a communication requirement for the target user.
  • the communication needs of the user A can be determined by other means, for example, according to the user A's unrelated matters related to the user B, and the enterprise management events related to the user B (such as pending approval events, pending).
  • the attendance event, etc., the historical communication content with the user B, etc. can be used to analyze whether the user A has a communication demand for the user B.
  • this application does not limit this.
  • Step 1004 When receiving the confirmation message returned by the second intercom module installed on the device of the target user, setting a mode switching option on the client to a triggerable state; wherein, when the mode switching option is When triggered, the client implements mode switching between the instant messaging mode and the intercom mode.
  • the user can select to use the instant messaging mode or the intercom mode according to actual needs, and is not limited to simply using the instant messaging mode in the related technology. Make full use of communication resources in different frequency bands.
  • FIG. 11 is a flowchart of still another communication method provided by an exemplary embodiment of the present application. As shown in FIG. 11, the method is applied to a first client of an instant messaging application running on a first electronic device, and may include the following steps:
  • Step 1102 Detect a voice message received by the first intercom module installed on the electronic device by using a first client of the instant messaging application running on the first electronic device.
  • Step 1104 when the voice message is from a second client of the instant messaging application running on the second electronic device, and the voice message is sent by the second intercom module installed on the second electronic device,
  • the first client is configured as an intercom mode for the second client.
  • the first client when the first client receives the voice message sent by the second client through the second intercom module, the first client may be configured as the intercom module to cooperate with the second client.
  • the first client and the second client implement the transmission of the voice message through the first intercom module and the second intercom module, without the user manually performing mode switching on the first client.
  • the user can manually switch the first client back to the instant messaging mode, so that the first client can receive the voice sent by the second client through the second intercom module through the first intercom module.
  • the message, and the first client also sends a voice message to the second client in an instant messaging mode.
  • FIG. 12 shows a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
  • the electronic device includes a processor 1202, an internal bus 1204, a network interface 1206, a memory 1208, and a non-volatile memory 1210, and of course may also include hardware required for other services.
  • the processor 1202 reads the corresponding computer program from the non-volatile memory 1210 into the memory 1202 and then operates to form a communication device at a logical level.
  • this application does not exclude other implementations, such as logic devices or software and hardware combinations, etc., that is, the execution body of the following processing flow is not limited to each logic.
  • the unit can also be hardware or logic.
  • the communication device may include a generating unit 1301 , a first sending unit 1302 , and a second sending unit 1303 . among them:
  • the generating unit 1301 generates, by using a client of the instant messaging application running on the electronic device, the obtained user input content as a corresponding communication voice to be sent;
  • the first sending unit 1302 when the client is configured to the instant messaging mode, generate the to-be-sent communication voice as a voice type instant messaging message, and issue the voice type instant messaging message;
  • the second sending unit 1303 sends the to-be-sent communication voice through the first intercom module installed on the electronic device when the client is configured to be in the intercom mode.
  • it also includes:
  • the configuration unit 1305 configures the client as the intercom mode when the communication state is a communicable state.
  • it also includes:
  • the determining unit 1304 is specifically configured to:
  • the determining unit 1304 determines a separation distance between the electronic device and a device of the target user by:
  • the determining unit 1304 is specifically configured to:
  • the confirmation message is automatically returned by the second intercom module to the first intercom module after receiving the inquiry message;
  • the confirmation message is used by the second intercom module according to the target.
  • the user performs a confirmation operation and returns to the first intercom module.
  • the first resending unit 1307 when the communication voice to be sent is sent by the first intercom module, if the to-be-sent communication voice is not successfully sent, the to-be-sent communication voice is generated as a voice type instant. Communicating a message and transmitting the to-be-sent communication voice by means of instant messaging;
  • the second resending unit 1308 sends the to-be-sent communication voice through the first intercom module if the to-be-sent communication voice is not successfully transmitted when the to-be-sent communication voice is sent in an instant messaging manner.
  • the generating unit 1301 is specifically configured to use at least one of the following:
  • the voice data is generated as the to-be-sent communication voice
  • the text message is voice converted into the to-be-sent communication voice.
  • FIG. 14 shows a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
  • the electronic device includes a processor 1402, an internal bus 1404, a network interface 1406, a memory 1408, and a non-volatile memory 1410, and may of course include hardware required for other services.
  • the processor 1402 reads the corresponding computer program from the non-volatile memory 1410 into the memory 1402 and then operates to form a communication device at a logical level.
  • the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and may be Hardware or logic device.
  • the communication device can include an interrogation unit 1501 and a setup unit 1502. among them:
  • the inquiring unit 1501 when the client of the instant messaging application running on the electronic device detects the communication requirement for the target user, sends the device for the target user through the first intercom module installed on the electronic device. Inquiry message
  • the setting unit 1502 when receiving the confirmation message returned by the second intercom module installed on the device of the target user, setting the mode switching option on the client to a triggerable state; wherein, when the mode is switched When the option is triggered, the client implements mode switching between the instant messaging mode and the intercom mode.
  • FIG. 16 shows a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
  • the electronic device includes a processor 1602, an internal bus 1604, a network interface 1606, a memory 1608, and a non-volatile memory 1610, and of course may also include hardware required for other services.
  • the processor 1602 reads the corresponding computer program from the non-volatile memory 1610 into the memory 1602 and then operates to form a communication device at a logical level.
  • the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and may be Hardware or logic device.
  • the communication device may include a detecting unit 1701 and a configuration unit 1702. among them:
  • the detecting unit 1701 detects a voice message received by the first intercom module installed on the electronic device by using a first client of the instant messaging application running on the first electronic device;
  • the configuration unit 1702 when the voice message is from a second client of the instant messaging application running on the second electronic device, and the voice message is sent by the second intercom module installed on the second electronic device And configuring the first client as an intercom mode for the second client.
  • FIG. 18 is a flowchart of still another communication method according to an exemplary embodiment of the present application. As shown in FIG. 18, the method is applied to a client of an instant messaging application, and may include the following steps:
  • Step 1802 The first client of the instant messaging application running on the first electronic device detects a communication message received by the first intercom module installed on the electronic device.
  • Step 1804 when the communication message is from a second client of the instant messaging application running on the second electronic device, and the communication message is sent by the second intercom module installed on the second electronic device, Determining the message type of the communication message.
  • Step 1806 When the message type is a voice type, the communication message is played; when the message type is a text type, the communication message is voice converted into a voice message, and the converted voice message is played.
  • the corresponding communication message may be performed by using an intercom module (such as the first intercom module and the second intercom module described above). Transmission, thereby utilizing the communication frequency band used by the intercom module to achieve rational use of communication resources.
  • an intercom module such as the first intercom module and the second intercom module described above.
  • the intercom module can transmit a voice type communication message generated by the instant messaging application. For example, when the first intercom module receives the voice type communication message sent by the second intercom module, the first intercom module can directly play the communication message to implement the intercom function.
  • the intercom module can transmit a text type communication message generated by the instant messaging application.
  • a text type communication message generated by the instant messaging application.
  • the user who uses the second electronic device is inconvenient to talk, such as the environment is too noisy and may cause unclear voice, worry about affecting surrounding users, etc.
  • the user may use text input form through the input box provided by the second client. Entering an operation to obtain a text type communication message; then, when the second electronic device sends the text type communication message through the second intercom module, the first client can actively convert the text type communication message into The voice message is played, and the converted voice message is played, so that the user who uses the first electronic device can listen, so that the communication efficiency can be improved compared to directly viewing the text content.
  • FIG. 19 shows a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application.
  • the electronic device includes a processor 1902, an internal bus 1904, a network interface 1906, a memory 1908, and a non-volatile memory 1910, and of course may also include hardware required for other services.
  • the processor 1902 reads the corresponding computer program from the non-volatile memory 1910 into the memory 1902 and then operates to form a communication device at a logical level.
  • the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and may be Hardware or logic device.
  • the communication device may include a detecting unit 2001, a determining unit 2002, and a playing unit 2003. among them:
  • the detecting unit 2001 detects a communication message received by the first intercom module installed on the electronic device by using a first client of the instant messaging application running on the first electronic device;
  • a determining unit 2002 when the communication message is from a second client of the instant messaging application running on the second electronic device, and the communication message is sent by the second intercom module assembled on the second electronic device Determining a message type of the communication message;
  • the playing unit 2003 plays the communication message when the message type is a voice type, and converts the communication message into a voice message when the message type is a text type, and plays the converted voice message.
  • a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
  • processors CPUs
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is computer readable A qualitative example.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
  • first, second, third, etc. may be used to describe various information in this application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as the second information without departing from the scope of the present application.
  • second information may also be referred to as the first information.
  • word "if” as used herein may be interpreted as "when” or “when” or “in response to a determination.”

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

Provided by the present application are a communication method and apparatus, wherein the method may comprise: by means of a client of an instant messaging application run on an electronic device, generating obtained user input content into corresponding communication voice to be sent; when the client is configured as an instant messaging mode, generating the communication voice to be sent as a voice-type instant messaging message, and sending out the voice-type instant messaging message; and when the client is configured as an intercom mode, sending out the communication voice to be sent by means of a first intercom module assembled on the electronic device. By means of the technical solution of the present application, communication resources may be utilized well, thereby improving communication efficiency.

Description

通讯方法及装置Communication method and device
本申请要求2016年12月01日递交的申请号为201611093984.8、发明名称为“通讯方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application Serial No. No. No. No. No. No. No. No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No No
技术领域Technical field
本申请涉及通讯技术领域,尤其涉及一种通讯方法及装置。The present application relates to the field of communications technologies, and in particular, to a communication method and apparatus.
背景技术Background technique
在相关技术中,用户可以通过在电子设备上运行即时通讯应用的客户端,实现基于即时通讯技术的通讯操作,即执行对即时通讯消息的传输。电子设备需要连接至移动通讯网络或WIFI等无线局域网后,通过该移动通讯网络或无线局域网提供的分组交换域的通讯资源,实现对即时通讯消息的传输。In the related art, the user can implement the communication operation based on the instant messaging technology by running the client of the instant messaging application on the electronic device, that is, performing the transmission of the instant messaging message. After the electronic device needs to be connected to a wireless local area network such as a mobile communication network or a WIFI, the communication resource of the packet switching domain provided by the mobile communication network or the wireless local area network realizes the transmission of the instant communication message.
但是,移动通讯网络或无线局域网所能够提供的通讯资源有限,当同一区域内使用该通讯资源的设备数量较多,或者部分设备由于电话会议或视频会议而占用了大量通讯资源,或者部分设备由于在执行数据下载等操作而占用了大量通讯资源,或者发生其他相关情况时,可能造成通讯资源的不足或不稳定,从而造成即时通讯消息传输失败,降低了用户之间的通讯效率。However, the communication resources provided by the mobile communication network or the wireless local area network are limited, and the number of devices using the communication resource in the same area is large, or some devices occupy a large amount of communication resources due to a conference call or a video conference, or some devices are When performing operations such as data downloading and occupying a large amount of communication resources, or other related situations, the communication resources may be insufficient or unstable, thereby causing the failure of the instant messaging message transmission and reducing the communication efficiency between users.
同时,在一些角落或较为封闭的空间处,移动通讯网络或无线局域网的信号强度可能较弱,甚至无法保证正常的通讯操作,从而造成即时通讯消息传输失败。At the same time, in some corners or relatively closed spaces, the signal strength of the mobile communication network or the wireless local area network may be weak, and even the normal communication operation cannot be guaranteed, thereby causing the failure of the instant messaging message transmission.
发明内容Summary of the invention
有鉴于此,本申请提供一种通讯方法及装置,可以实现对通讯资源的合理利用,有助于提升通讯效率。In view of this, the present application provides a communication method and device, which can realize reasonable utilization of communication resources and help improve communication efficiency.
为实现上述目的,本申请提供技术方案如下:To achieve the above objective, the present application provides the following technical solutions:
根据本申请的第一方面,提出了一种通讯方法,包括:According to a first aspect of the present application, a communication method is proposed, comprising:
通过电子设备上运行的即时通讯应用的客户端,将获得的用户输入内容生成为相应的待发送通讯语音;The user input content obtained by the instant messaging application running on the electronic device is generated as a corresponding communication voice to be sent;
当所述客户端被配置为即时通讯模式时,将所述待发送通讯语音生成为语音类型的即时通讯消息,并发出所述语音类型的即时通讯消息;When the client is configured to the instant messaging mode, the to-be-sent communication voice is generated as a voice type instant messaging message, and the voice type instant messaging message is sent;
当所述客户端被配置为对讲模式时,通过所述电子设备上装配的第一对讲模块发出 所述待发送通讯语音。When the client is configured to be in an intercom mode, is sent by the first intercom module assembled on the electronic device The communication voice to be sent.
根据本申请的第二方面,提出了一种通讯方法,包括:According to a second aspect of the present application, a communication method is provided, comprising:
当电子设备上运行的即时通讯应用的客户端检测到针对目标用户的通讯需求时,通过所述电子设备上装配的第一对讲模块发出针对所述目标用户的设备的询问消息;When the client of the instant messaging application running on the electronic device detects the communication requirement for the target user, an inquiry message for the device of the target user is sent by the first intercom module installed on the electronic device;
当接收到所述目标用户的设备上装配的第二对讲模块返回的确认消息时,将所述客户端上的模式切换选项设置为可触发状态;其中,当所述模式切换选项被触发时,所述客户端在即时通讯模式与所述对讲模式之间实现模式切换。Setting a mode switching option on the client to a triggerable state when receiving a confirmation message returned by the second intercom module installed on the target user's device; wherein, when the mode switching option is triggered The client implements mode switching between the instant messaging mode and the intercom mode.
根据本申请的第三方面,提出了一种通讯方法,包括:According to a third aspect of the present application, a communication method is proposed, comprising:
通过第一电子设备上运行的即时通讯应用的第一客户端,检测所述电子设备上装配的第一对讲模块接收到的语音消息;Detecting, by the first client of the instant messaging application running on the first electronic device, a voice message received by the first intercom module mounted on the electronic device;
当所述语音消息来自第二电子设备上运行的所述即时通讯应用的第二客户端,且所述语音消息由所述第二电子设备上装配的第二对讲模块发出时,将所述第一客户端配置为针对所述第二客户端的对讲模式。When the voice message is from a second client of the instant messaging application running on the second electronic device, and the voice message is sent by a second intercom module installed on the second electronic device, The first client is configured as an intercom mode for the second client.
根据本申请的第四方面,提出了一种通讯方法,包括:According to a fourth aspect of the present application, a communication method is provided, comprising:
通过第一电子设备上运行的即时通讯应用的第一客户端,检测所述电子设备上装配的第一对讲模块接收到的通讯消息;And detecting, by the first client of the instant messaging application running on the first electronic device, a communication message received by the first intercom module mounted on the electronic device;
当所述通讯消息来自第二电子设备上运行的所述即时通讯应用的第二客户端,且所述通讯消息由所述第二电子设备上装配的第二对讲模块发出时,确定所述通讯消息的消息类型;Determining that the communication message is from a second client of the instant messaging application running on the second electronic device, and the communication message is sent by a second intercom module installed on the second electronic device The message type of the communication message;
当所述消息类型为语音类型时,播放所述通讯消息;当所述消息类型为文本类型时,对所述通讯消息进行语音转换为语音消息,并播放转换后的语音消息。When the message type is a voice type, the communication message is played; when the message type is a text type, the communication message is voice converted into a voice message, and the converted voice message is played.
根据本申请的第五方面,提出了一种通讯装置,包括:According to a fifth aspect of the present application, a communication device is provided, comprising:
检测单元,通过电子设备上运行的即时通讯应用的客户端,将获得的用户输入内容生成为相应的待发送通讯语音;The detecting unit generates the user input content obtained by the client of the instant messaging application running on the electronic device as a corresponding communication voice to be sent;
第一发送单元,当所述客户端被配置为即时通讯模式时,将所述待发送通讯语音生成为语音类型的即时通讯消息,并发出所述语音类型的即时通讯消息;a first sending unit, when the client is configured to be in an instant messaging mode, generating the to-be-sent communication voice as a voice type instant messaging message, and issuing the voice type instant messaging message;
第二发送单元,当所述客户端被配置为对讲模式时,通过所述电子设备上装配的第一对讲模块发出所述待发送通讯语音。And a second sending unit, when the client is configured to be in an intercom mode, sending the to-be-sent communication voice by using a first intercom module installed on the electronic device.
根据本申请的第六方面,提出了一种通讯装置,包括:According to a sixth aspect of the present application, a communication device is provided, comprising:
询问单元,当电子设备上运行的即时通讯应用的客户端检测到针对目标用户的通讯 需求时,通过所述电子设备上装配的第一对讲模块发出针对所述目标用户的设备的询问消息;The inquiry unit detects the communication for the target user when the client of the instant messaging application running on the electronic device detects When requested, an inquiry message for the device of the target user is issued by the first intercom module installed on the electronic device;
设置单元,当接收到所述目标用户的设备上装配的第二对讲模块返回的确认消息时,将所述客户端上的模式切换选项设置为可触发状态;其中,当所述模式切换选项被触发时,所述客户端在即时通讯模式与所述对讲模式之间实现模式切换。a setting unit, when receiving a confirmation message returned by the second intercom module installed on the device of the target user, setting a mode switching option on the client to a triggerable state; wherein, when the mode switching option is When triggered, the client implements mode switching between the instant messaging mode and the intercom mode.
根据本申请的第七方面,提出了一种通讯装置,包括:According to a seventh aspect of the present application, a communication device is provided, comprising:
检测单元,通过第一电子设备上运行的即时通讯应用的第一客户端,检测所述电子设备上装配的第一对讲模块接收到的语音消息;The detecting unit detects, by the first client of the instant messaging application running on the first electronic device, the voice message received by the first intercom module installed on the electronic device;
配置单元,当所述语音消息来自第二电子设备上运行的所述即时通讯应用的第二客户端,且所述语音消息由所述第二电子设备上装配的第二对讲模块发出时,将所述第一客户端配置为针对所述第二客户端的对讲模式。a configuration unit, when the voice message is from a second client of the instant messaging application running on the second electronic device, and the voice message is sent by a second intercom module installed on the second electronic device, The first client is configured as an intercom mode for the second client.
根据本申请的第八方面,提出了一种通讯装置,包括:According to an eighth aspect of the present application, a communication device is provided, comprising:
检测单元,通过第一电子设备上运行的即时通讯应用的第一客户端,检测所述电子设备上装配的第一对讲模块接收到的通讯消息;The detecting unit detects, by the first client of the instant messaging application running on the first electronic device, the communication message received by the first intercom module installed on the electronic device;
确定单元,当所述通讯消息来自第二电子设备上运行的所述即时通讯应用的第二客户端,且所述通讯消息由所述第二电子设备上装配的第二对讲模块发出时,确定所述通讯消息的消息类型;a determining unit, when the communication message is from a second client of the instant messaging application running on the second electronic device, and the communication message is sent by a second intercom module installed on the second electronic device, Determining a message type of the communication message;
播放单元,当所述消息类型为语音类型时,播放所述通讯消息;当所述消息类型为文本类型时,对所述通讯消息进行语音转换为语音消息,并播放转换后的语音消息。a playing unit, when the message type is a voice type, playing the communication message; when the message type is a text type, converting the communication message into a voice message, and playing the converted voice message.
由以上技术方案可见,本申请通过在电子设备上装配第一对讲模块,并使得即时通讯应用的客户端对该第一对讲模块进行应用,使得该即时通讯应用的客户端不仅可以传输即时通讯消息,还能够通过该第一对讲模块实现基于对讲语音形式的消息传输,从而充分利用不同频段的通讯资源来实现对即时通讯应用中的通讯语音的传输,避免部分频段的通讯资源不足而导致的通讯不畅,还可以防止移动通讯网络的信号较弱而导致的即时通讯消息传输失败,有助于提升基于即时通讯应用的通讯效率。As can be seen from the above technical solution, the present application applies the first intercom module on the electronic device, and enables the client of the instant messaging application to apply the first intercom module, so that the client of the instant messaging application can not only transmit the instant. The communication message can also realize the message transmission based on the intercom voice form through the first intercom module, thereby fully utilizing the communication resources of different frequency bands to realize the transmission of the communication voice in the instant messaging application, and avoiding insufficient communication resources in some frequency bands. The resulting poor communication can also prevent the failure of the instant messaging message transmission caused by the weak signal of the mobile communication network, which helps to improve the communication efficiency based on the instant messaging application.
附图说明DRAWINGS
图1A是本申请一示例性实施例提供的一种电子设备的结构示意图;1A is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure;
图1B是本申请一示例性实施例提供的一种通讯方法的流程图;FIG. 1B is a flowchart of a communication method according to an exemplary embodiment of the present application; FIG.
图2是本申请一示例性实施例提供的另一种通讯方法的流程图; 2 is a flowchart of another communication method provided by an exemplary embodiment of the present application;
图3是本申请一示例性实施例提供的一种即时通讯应用的客户端的消息会话页面的示意图;FIG. 3 is a schematic diagram of a message session page of a client of an instant messaging application according to an exemplary embodiment of the present application; FIG.
图4是本申请一示例性实施例提供的一种即时通讯应用的客户端的消息会话页面的另一示意图;FIG. 4 is another schematic diagram of a message session page of a client of an instant messaging application according to an exemplary embodiment of the present application; FIG.
图5是本申请一示例性实施例提供的一种即时通讯应用的客户端的消息会话页面的又一示意图;FIG. 5 is still another schematic diagram of a message session page of a client of an instant messaging application according to an exemplary embodiment of the present application; FIG.
图6是本申请一示例性实施例提供的一种即时通讯应用的客户端的消息会话页面的又一示意图;FIG. 6 is still another schematic diagram of a message session page of a client of an instant messaging application according to an exemplary embodiment of the present application; FIG.
图7是本申请一示例性实施例提供的一种即时通讯应用的客户端的消息会话页面的又一示意图;FIG. 7 is still another schematic diagram of a message session page of a client of an instant messaging application according to an exemplary embodiment of the present application; FIG.
图8是本申请一示例性实施例提供的一种即时通讯应用的客户端的消息会话页面的又一示意图;FIG. 8 is still another schematic diagram of a message session page of a client of an instant messaging application according to an exemplary embodiment of the present application; FIG.
图9是本申请一示例性实施例提供的一种即时通讯应用的客户端的消息会话页面的又一示意图;FIG. 9 is still another schematic diagram of a message session page of a client of an instant messaging application according to an exemplary embodiment of the present application; FIG.
图10是本申请一示例性实施例提供的又一种通讯方法的流程图;FIG. 10 is a flowchart of still another communication method according to an exemplary embodiment of the present application; FIG.
图11是本申请一示例性实施例提供的又一种通讯方法的流程图;FIG. 11 is a flowchart of still another communication method according to an exemplary embodiment of the present application;
图12是本申请一示例性实施例提供的一种电子设备的结构示意图;FIG. 12 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present disclosure;
图13是本申请一示例性实施例提供的一种通讯装置的框图;FIG. 13 is a block diagram of a communication apparatus according to an exemplary embodiment of the present application; FIG.
图14是本申请一示例性实施例提供的另一种电子设备的结构示意图;FIG. 14 is a schematic structural diagram of another electronic device according to an exemplary embodiment of the present disclosure;
图15是本申请一示例性实施例提供的另一种通讯装置的框图;FIG. 15 is a block diagram of another communication apparatus according to an exemplary embodiment of the present application; FIG.
图16是本申请一示例性实施例提供的又一种电子设备的结构示意图;FIG. 16 is a schematic structural diagram of still another electronic device according to an exemplary embodiment of the present application; FIG.
图17是本申请一示例性实施例提供的又一种通讯装置的框图;FIG. 17 is a block diagram of still another communication apparatus according to an exemplary embodiment of the present application; FIG.
图18是本申请一示例性实施例提供的又一种通讯方法的流程图;FIG. 18 is a flowchart of still another communication method according to an exemplary embodiment of the present application;
图19是本申请一示例性实施例提供的又一种电子设备的结构示意图;FIG. 19 is a schematic structural diagram of still another electronic device according to an exemplary embodiment of the present application; FIG.
图20是本申请一示例性实施例提供的又一种通讯装置的框图。FIG. 20 is a block diagram of still another communication apparatus according to an exemplary embodiment of the present application.
具体实施方式detailed description
在相关技术中,电子设备上运行的即时通讯应用的客户端,仅通过电子设备连接的移动通讯网络或无线局域网提供的分组交换域的通讯资源,实现对即时通讯消息的传输操作。 In the related art, the client of the instant messaging application running on the electronic device realizes the transmission operation of the instant messaging message only through the mobile communication network connected by the electronic device or the communication resource of the packet switching domain provided by the wireless local area network.
但是,移动通讯网络或无线局域网仅应用了部分频段上的通讯资源,例如以WCDMA(Wideband Code Division Multiple Access,宽带码分多址)制式的移动通讯网络为例,采用1920MHz-1980MHz、2110MHz-2170MHz等频段的通讯资源实现通讯数据交互,而其他很多频段的通讯资源则无法被即时通讯应用所利用,造成了通讯资源的分配不合理的问题。However, the mobile communication network or the wireless local area network only uses communication resources in some frequency bands, for example, a WCDMA (Wideband Code Division Multiple Access) mobile communication network, for example, using 1920 MHz-1980 MHz, 2110 MHz-2170 MHz. Communication resources in the same frequency band enable communication data interaction, while communication resources in many other frequency bands cannot be utilized by instant messaging applications, resulting in an unreasonable distribution of communication resources.
同时,当电子设备处于角落处或较为封闭的空间等时,移动通讯网络或无线局域网可能存在信号较差的情况,从而即便通讯资源充足,也可能造成即时通讯消息传输失败。At the same time, when the electronic device is in a corner or a relatively closed space, the mobile communication network or the wireless local area network may have a poor signal condition, so that even if the communication resources are sufficient, the instant messaging message transmission may fail.
因此,本申请通过改进通讯方案,可以解决相关技术中的上述技术问题。为对本申请进行进一步说明,提供下列实施例:Therefore, the present application can solve the above technical problems in the related art by improving the communication scheme. In order to further illustrate this application, the following examples are provided:
图1A是本申请一示例性实施例提供的一种电子设备的结构示意图。如图1A所示,从硬件层面的结构而言,该电子设备可以包括:设备本体和对讲模块;其中,设备本体相当于相关技术中的“电子设备”,例如手机、平板等,换言之可以认为本申请在相关技术的基础上为电子设备进一步装配了对讲模块,使得电子设备可以实现相关技术中的对讲机等对讲设备的对讲功能。FIG. 1A is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application. As shown in FIG. 1A, the electronic device may include: a device body and an intercom module; wherein the device body is equivalent to an "electronic device" in the related art, such as a mobile phone, a tablet, etc., in other words, in other words, It is considered that the present application further assembles an intercom module for the electronic device on the basis of the related art, so that the electronic device can implement the intercom function of the intercom device such as the interphone in the related art.
其中,对讲模块可以通过多种方式与设备本体进行配合。从结构上而言,对讲模块可以预先内置于设备本体内,例如对讲模块可以被焊接于设备本体的主板上,而无需后期添加;或者,对讲模块可以为外置的独立功能组件,通过与设备本体之间建立数据连接,从而实现与设备本体的配合,实现基于本申请的电子设备,例如可以将该对讲模块装配于电子设备的保护壳(如手机壳等)内,使得电子设备装配该保护壳之后,不仅可以增加电子设备的防护性能,还能够添加和实现对讲功能。从数据交互上而言,对讲模块与设备本体可以通过有线方式进行连接和交互,例如对讲模块可以通过耳机线接入设备本体上的耳机孔,或者通过数据线接入设备本体上的USB接口等,从而实现两者的有线连接,并据此传输语音、文本等各种类型的通讯消息;或者,对讲模块与设备本体之间也可以通过无线方式建立数据连接和交互,例如可以基于蓝牙、WIFI、ZigBee等无线通讯协议来实现。The intercom module can cooperate with the device body in various ways. Structurally speaking, the intercom module can be pre-built in the device body. For example, the intercom module can be soldered to the main board of the device body without adding it later; or the intercom module can be an external independent functional component. The electronic device according to the present application is implemented by establishing a data connection with the device body to implement the cooperation with the device body. For example, the intercom module can be assembled in a protective case (such as a mobile phone case, etc.) of the electronic device, so that the electronic device After the device is assembled with the protective case, not only can the protection performance of the electronic device be increased, but also the intercom function can be added and implemented. In terms of data interaction, the intercom module and the device body can be connected and interacted by wire. For example, the intercom module can access the earphone hole on the device body through the earphone cable, or access the USB device on the device body through the data cable. Interfaces, etc., thereby implementing a wired connection between the two, and transmitting various types of communication messages such as voice, text, etc.; or, the intercom module and the device body can also establish a data connection and interaction by wireless, for example, based on Bluetooth, WIFI, ZigBee and other wireless communication protocols are implemented.
同时,在设备本体上运行有基于本申请的即时通讯应用的客户端,该客户端在运行时的功能逻辑可以配合于对讲模块,从而与对讲模块配合实现本申请的通讯方案;当然,由于设备本体属于电子设备的一部分,因而下文也采用诸如“电子设备上运行即时通讯应用的客户端”等描述,本领域技术人员应当理解其等同于“在设备本体上运行即时通讯应用的客户端”,而不会将客户端运行于对讲模块上。 At the same time, a client running on the instant messaging application of the present application is run on the device body, and the function logic of the client at the runtime can be matched with the intercom module, so as to cooperate with the intercom module to implement the communication scheme of the present application; Since the device body belongs to a part of the electronic device, descriptions such as "a client running an instant messaging application on the electronic device" are also described below, and those skilled in the art should understand that it is equivalent to "a client running an instant messaging application on the device body". ", without running the client on the intercom module.
图1B是本申请一示例性实施例提供的一种通讯方法的流程图。如图1B所示,该方法应用于即时通讯应用的客户端,可以包括以下步骤:FIG. 1B is a flowchart of a communication method according to an exemplary embodiment of the present application. As shown in FIG. 1B, the method is applied to a client of an instant messaging application, and may include the following steps:
步骤102,通过电子设备上运行的即时通讯应用的客户端,将获得的用户输入内容生成为相应的待发送通讯语音。Step 102: Generate, by using a client of an instant messaging application running on the electronic device, the obtained user input content as a corresponding communication voice to be sent.
在本实施例中,即时通讯应用可以为任意形式的即时通讯应用,本申请并不对此进行限制。比如,该即时通讯应用可以为企业即时通讯(Enterprise Instant Messaging,EIM)应用,例如“钉钉(DING Talk)”等。In this embodiment, the instant messaging application can be any form of instant messaging application, and the application does not limit this. For example, the instant messaging application can be an enterprise instant messaging (EIM) application, such as "DING Talk".
在本实施例中,通过在电子设备上安装即时通讯应用的客户端应用程序(APP),并登录用户在该即时通讯应用处的注册账号,即可将该电子设备配置为该用户对应的即时通讯应用的客户端。其中,该电子设备可以为手机、平板等移动设备,或者该电子设备也可以为PC主机等非移动式的电子设备,本申请并不对此进行限制。当然,当采用诸如HTML5技术的在线“客户端”时,甚至无需在电子设备上安装相应的应用程序,即可获得并运行该客户端。In this embodiment, by installing a client application (APP) of the instant messaging application on the electronic device and logging in the registered account of the user at the instant messaging application, the electronic device can be configured as the instant corresponding to the user. The client of the communication application. The electronic device may be a mobile device such as a mobile phone or a tablet, or the electronic device may also be a non-mobile electronic device such as a PC host, which is not limited in this application. Of course, when using an online "client" such as HTML5 technology, the client can be obtained and run without even having to install the corresponding application on the electronic device.
在本实施例中,用户输入内容可以包含语音数据和文本消息中至少之一;其中,当用户输入内容包含语音数据时,例如用户通过电子设备上的麦克风等拾音组件直接执行语音输入以得到该语音数据,则电子设备可以将该语音数据直接生成为待发送通讯语音;而当用户输入内容包含文本消息时,电子设备可以将该文本消息进行语音转换得到待发送通讯语音。In this embodiment, the user input content may include at least one of voice data and a text message; wherein, when the user input content includes voice data, for example, the user directly performs voice input through a sound pickup component such as a microphone on the electronic device to obtain The voice data can be directly generated by the electronic device as the communication voice to be sent; and when the user input content includes the text message, the electronic device can perform voice conversion on the text message to obtain the communication voice to be sent.
步骤104,当所述客户端被配置为即时通讯模式时,将所述待发送通讯语音生成为语音类型的即时通讯消息,并发出所述语音类型的即时通讯消息。Step 104: When the client is configured to the instant messaging mode, generate the to-be-sent communication voice as a voice type instant messaging message, and issue the voice type instant messaging message.
步骤106,当所述客户端被配置为对讲模式时,通过所述电子设备上装配的第一对讲模块发出所述待发送通讯语音。Step 106: When the client is configured to be in the intercom mode, the to-be-transmitted communication voice is sent by the first intercom module installed on the electronic device.
在本实施例中,对讲模块是指可以实现对讲(two way radio)功能的任意硬件模块,该对讲模块可以被内置于电子设备中,或者该对讲模块也可以呈外置结构,例如该对讲模块可以被装配于电子设备的外置保护壳(例如当电子设备为手机时,该外置保护壳可以为手机壳等)等部件中,或者该对讲模块也可以作为独立的外置配件,从而通过诸如耳机接口、数据线接口等与电子设备建立连接。In this embodiment, the intercom module refers to any hardware module that can implement a two way radio function, and the intercom module can be built in the electronic device, or the intercom module can also be an external structure. For example, the intercom module can be assembled in an external protective case of the electronic device (for example, when the electronic device is a mobile phone, the external protective case can be a mobile phone case, etc.), or the intercom module can also be used as an independent device. An external accessory to establish a connection with an electronic device through, for example, a headphone jack, a data line interface, or the like.
其中,对讲模块可以采用模拟处理方式,即将模拟信号形式的待发送通讯语音直接调制到载频后实现传输;或者,对讲模块也可以采用数字处理方式,即在将待发送通讯语音由模拟信号转换为数字信号后,将该数字信号形式的待发送通讯语音调制到载频后 实现传输,本申请并不对此进行限制。The intercom module can adopt an analog processing mode, that is, the communication voice to be sent in the form of an analog signal is directly modulated to a carrier frequency to realize transmission; or, the intercom module can also adopt a digital processing manner, that is, the communication voice to be transmitted is simulated. After the signal is converted into a digital signal, the communication voice to be transmitted in the form of a digital signal is modulated to a carrier frequency. The transmission is implemented, and this application does not limit this.
在本实施例中,当电子设备处于即时通讯模式时,电子设备上运行的客户端可以采用相关技术中对于即时通讯消息的传输方式,例如移动通讯网络的通讯资源实现对待发送通讯语音的发送操作。而当电子设备处于对讲模式时,可以充分利用相关技术中被应用于对讲机设备的136-174MHz、400-470MHz等无线电频段的通讯资源,实现对待发送通讯语音的发送操作。In this embodiment, when the electronic device is in the instant messaging mode, the client running on the electronic device can use the transmission method of the instant messaging message in the related art, for example, the communication resource of the mobile communication network, to realize the sending operation of the communication voice to be sent. . When the electronic device is in the intercom mode, the communication resources of the radio frequency bands such as 136-174 MHz and 400-470 MHz applied to the walkie-talkie device in the related art can be fully utilized to realize the transmission operation of the communication voice to be transmitted.
在一实施例中,客户端可以确定所述第一对讲模块与目标用户的设备上装配的第二对讲模块之间的通讯状态,并当所述通讯状态为可通讯状态时,主动将所述客户端配置为所述对讲模式。由于移动通讯网络的通讯资源除了被应用于即时通讯消息的传输之外,还被应用于视频会议、音频会议、文件下载等其他数据传输操作,因而在执行对即时通讯消息的传输操作时,容易造成通讯资源不足、消息传输不畅,甚至导致即时通讯消息发送失败、推送延迟等现象,从而影响正常的即时通讯操作。因此,在第一对讲模块与第二对讲模块处于可通讯状态时,即用户可以通过对讲模块的通讯资源实现对待发送通讯语音的传输操作,使得该待发送通讯语音可以实现更为迅速、快捷、流畅地传输,有助于提升用户的通讯效率。In an embodiment, the client may determine a communication status between the first intercom module and a second intercom module installed on the target user's device, and when the communication status is in a communicable state, actively The client is configured as the intercom mode. Since the communication resources of the mobile communication network are applied to the transmission of instant messaging messages, they are also applied to other data transmission operations such as video conferences, audio conferences, file downloads, etc., and thus it is easy to perform the operation of transmitting instant messaging messages. The communication resources are insufficient, the message transmission is not smooth, and even the instant messaging message fails to be sent, and the push delay is delayed, thereby affecting normal instant messaging operations. Therefore, when the first intercom module and the second intercom module are in a communicable state, the user can implement a transmission operation of the communication voice to be transmitted through the communication resource of the intercom module, so that the to-be-sent communication voice can be realized more quickly. Fast and smooth transmission helps to improve user communication efficiency.
在另一实施例中,客户端可以确定所述第一对讲模块与目标用户的设备上装配的第二对讲模块之间的通讯状态,并当所述通讯状态为可通讯状态时,将所述客户端上的模式切换选项设置为可触发状态;其中,当所述模式切换选项被触发时,所述客户端在所述即时通讯模式与所述对讲模式之间实现模式切换。那么,通过将模式切换选项设置为可触发状态,使得用户可以根据自身的实际需求,手动选择由即时通讯模式或对讲模式来实现对待发送通讯语音的传输操作,有助于提升用户通讯行为的自由度。In another embodiment, the client may determine a communication status between the first intercom module and a second intercom module installed on the target user's device, and when the communication status is communicable, The mode switching option on the client is set to a triggerable state; wherein, when the mode switching option is triggered, the client implements mode switching between the instant messaging mode and the intercom mode. Then, by setting the mode switching option to the triggerable state, the user can manually select the instant messaging mode or the intercom mode to implement the transmission operation of the communication voice to be transmitted according to the actual needs of the user, which helps to improve the communication behavior of the user. Degree of freedom.
在一实施例中,客户端可以确定所述电子设备与目标用户的设备之间的间隔距离,并当所述间隔距离不大于预设距离时,确定处于所述可通讯状态。其中,客户端可以通过该下述方式中至少之一来确定该间隔距离:In an embodiment, the client may determine a separation distance between the electronic device and a device of the target user, and determine that the communication state is in a state when the separation distance is not greater than a preset distance. The client may determine the separation distance by using at least one of the following manners:
1)获取根据所述电子设备和所述目标用户的设备的定位信息计算出的所述间隔距离;其中,定位信息例如可以由设备(上述的电子设备或目标用户的设备)内置的GPS芯片等采集得到,或者采用其他方式获得该定位信息,本申请并不对此进行限制。1) acquiring the separation distance calculated according to the positioning information of the electronic device and the device of the target user; wherein the positioning information may be, for example, a GPS chip built in by the device (the above-mentioned electronic device or the device of the target user) The positioning information is obtained or obtained by other means, and the application does not limit this.
2)尝试与所述目标用户的设备建立预设近场无线连接,当所述近场无线连接建立成功时判定为所述间隔距离不大于所述预设距离;其中,预设近场无线连接例如可以为蓝牙连接、ZigBee连接等,本申请并不对此进行限制。 2) attempting to establish a preset near field wireless connection with the device of the target user, and determining that the separation distance is not greater than the preset distance when the near field wireless connection is successfully established; wherein the preset near field wireless connection For example, it may be a Bluetooth connection, a ZigBee connection, etc., and this application does not limit this.
3)根据检测到的与所述目标用户的设备建立的预设近场无线连接(如上述的蓝牙连接、ZigBee连接等)的接收信号强度指示RSSI,确定所述间隔距离,其中所述间隔距离与所述接收信号强度指示呈反相关。3) determining the separation distance according to the received signal strength indication RSSI of the detected preset near field wireless connection (such as the Bluetooth connection, ZigBee connection, etc.) established by the target user's device, wherein the separation distance It is inversely related to the received signal strength indication.
在另一实施例中,客户端可以通过所述第一对讲模块向所述第二对讲模块发送询问消息,并当接收到所述第二对讲模块返回的确认消息时,确定处于所述可通讯状态。In another embodiment, the client may send an inquiry message to the second intercom module through the first intercom module, and when receiving the confirmation message returned by the second intercom module, determine that it is in the The communication status is described.
其中,在一种情况下,所述确认消息可以由所述第二对讲模块在接收到所述询问消息后,自动返回至所述第一对讲模块,使得整个确认过程对于目标用户而言是不可见的,换言之目标用户无需关注于该确认过程;实际上,第一对讲模块可以按照预设周期实现与第二对讲模块的定期确认,因而第二对讲模块自动返回确认消息时,可以显著降低目标用户的操作量。而在另一种情况下,在所述目标用户的设备根据所述第二对讲模块接收到的所述确认消息向所述目标用户进行询问提示后,所述确认消息可以由所述第二对讲模块根据所述目标用户执行的确认操作而返回至所述第一对讲模块;换言之,该情况下需要由目标用户对询问提示进行手动执行确认操作,那么第一对讲模块可以例如在检测到针对该目标用户的通讯需求(例如针对该目标用户的消息会话窗口被开启)时,才向相应的第二对讲模块发送询问消息,以降低目标用户的操作量。In one case, the confirmation message may be automatically returned by the second intercom module to the first intercom module after receiving the inquiry message, so that the entire confirmation process is for the target user. Invisible, in other words, the target user does not need to pay attention to the confirmation process; in fact, the first intercom module can implement periodic confirmation with the second intercom module according to the preset period, and thus the second intercom module automatically returns the confirmation message. , can significantly reduce the amount of operations of the target user. In another case, after the device of the target user sends a query prompt to the target user according to the confirmation message received by the second intercom module, the confirmation message may be by the second The intercom module returns to the first intercom module according to the confirmation operation performed by the target user; in other words, in this case, the target user needs to manually perform the confirmation operation on the inquiry prompt, then the first intercom module can be, for example, When it is detected that the communication requirement for the target user (for example, the message session window for the target user is turned on), the inquiry message is sent to the corresponding second intercom module to reduce the operation amount of the target user.
在本实施例中,当通过所述第一对讲模块发出所述待发送通讯语音时,若所述待发送通讯语音未被成功发送,可以将所述待发送通讯语音生成为语音类型的即时通讯消息,并采用即时通讯方式发出所述待发送通讯语音,以确保该待发送通讯语音能够被顺利地发送至目标用户。In this embodiment, when the communication voice to be sent is sent by the first intercom module, if the to-be-sent communication voice is not successfully sent, the to-be-sent communication voice may be generated as a voice type instant. The communication message is sent, and the to-be-sent communication voice is sent in an instant messaging manner to ensure that the to-be-sent communication voice can be successfully sent to the target user.
在本实施例中,当采用即时通讯方式发出所述待发送通讯语音时,若所述待发送通讯语音未被成功发送,通过所述第一对讲模块发出所述待发送通讯语音,以确保该待发送通讯语音能够被顺利地发送至目标用户。In this embodiment, when the to-be-sent communication voice is sent by using an instant messaging mode, if the to-be-sent communication voice is not successfully transmitted, the communication voice to be sent is sent by the first intercom module to ensure The to-be-sent communication voice can be smoothly transmitted to the target user.
在本实施例中,当电子设备通过装配的对讲模块(如上述的第一对讲模块)发出或接收到通讯语音时,电子设备可以出于“对讲”特性而不对该通讯语音进行保存;或者,电子设备也可以对发出或接收到的通讯语音予以保存,以便于用户后续反复收听。当然,用户可以根据自身需求,将电子设备配置为对发出或接收到的通讯语音进行保存或不保存,或者仅保存发出的通讯语音而不保存接收到的通讯语音,或者仅保存接收到的通讯语音而不保存发出的通讯语音等。或者,电子设备可以在每次发出或接收到一条通讯语音后,均对该通讯语音进行预设时长的暂时存储,则当用户在该预设时长内确认存储时,电子设备对相应的通讯语音进行长期存储,否则电子设备在该预设时长到达后自动删除 相应的通讯语音。In this embodiment, when the electronic device sends or receives a communication voice through the assembled intercom module (such as the first intercom module described above), the electronic device may not save the communication voice due to the “intercom” feature. Or, the electronic device can also save the communication voice that is sent or received, so that the user can listen to it repeatedly. Of course, the user can configure the electronic device to save or not to send or receive the communication voice according to his own needs, or only save the sent communication voice without saving the received communication voice, or only save the received communication. Voice without saving the outgoing communication voice, etc. Alternatively, the electronic device may temporarily store the communication voice for a preset duration after each communication voice is sent or received, and when the user confirms the storage within the preset duration, the electronic device pairs the corresponding communication voice. Long-term storage, otherwise the electronic device will automatically delete after the preset time has elapsed. Corresponding communication voice.
由以上技术方案可见,本申请通过在电子设备上装配第一对讲模块,并使得即时通讯应用的客户端对该第一对讲模块进行应用,使得该即时通讯应用的客户端不仅可以传输即时通讯消息,还能够通过该第一对讲模块实现基于对讲语音形式的消息传输,从而充分利用不同频段的通讯资源来实现对即时通讯应用中的通讯语音的传输,避免部分频段的通讯资源不足而导致的通讯不畅,还可以防止移动通讯网络的信号较弱而导致的即时通讯消息传输失败,有助于提升基于即时通讯应用的通讯效率。As can be seen from the above technical solution, the present application applies the first intercom module on the electronic device, and enables the client of the instant messaging application to apply the first intercom module, so that the client of the instant messaging application can not only transmit the instant. The communication message can also realize the message transmission based on the intercom voice form through the first intercom module, thereby fully utilizing the communication resources of different frequency bands to realize the transmission of the communication voice in the instant messaging application, and avoiding insufficient communication resources in some frequency bands. The resulting poor communication can also prevent the failure of the instant messaging message transmission caused by the weak signal of the mobile communication network, which helps to improve the communication efficiency based on the instant messaging application.
下面以企业即时通讯应用“钉钉”为例,假定用户A与用户B分别通过装配有对讲模块的电子设备1、电子设备2,执行基于本申请实施例的通讯方案;其中,图2是本申请一示例性实施例提供的另一种通讯方法的流程图。如图2所示,该方法应用于用户A使用的电子设备1上的钉钉客户端1,使得用户A可以通过该钉钉客户端1向用户B使用的电子设备2上的钉钉客户端2发送通讯语音,该方法可以包括以下步骤:The following is an example of the enterprise instant messaging application "nailing". It is assumed that the user A and the user B respectively perform the communication scheme based on the embodiment of the present application through the electronic device 1 and the electronic device 2 equipped with the intercom module; wherein, FIG. 2 is A flow chart of another communication method provided by an exemplary embodiment of the present application. As shown in FIG. 2, the method is applied to the staple client 1 on the electronic device 1 used by the user A, so that the user A can use the staple client on the electronic device 2 used by the staple client 1 to the user B. 2 Sending a communication voice, the method may include the following steps:
步骤202,钉钉客户端1检测到对应于用户B的消息会话页面被开启。In step 202, the nail client 1 detects that the message session page corresponding to the user B is turned on.
在本实施例中,当检测到对应于用户B的消息会话页面被开启时,表明用户A可能存在针对用户B的通讯需求,因而可以通过下述的步骤204A至步骤208B等,对模式切换选项进行合理配置,以便于用户A通过即时通讯模式或对讲模式,实现与该用户B之间的通讯操作。举例而言,当检测到用户A点击图3所示的消息列表页面中的页面入口,并转入图4所示的与该用户B之间的消息会话页面时,可以确定对应于用户B的消息会话页面被开启。In this embodiment, when it is detected that the message session page corresponding to the user B is turned on, it indicates that the user A may have a communication requirement for the user B, and thus the mode switching option may be performed through the following steps 204A to 208B and the like. The reasonable configuration is performed so that the user A realizes the communication operation with the user B through the instant messaging mode or the intercom mode. For example, when it is detected that the user A clicks the page entry in the message list page shown in FIG. 3 and transfers to the message session page with the user B shown in FIG. 4, it can be determined that the user B corresponds to the user B. The message session page is opened.
当然,获取消息会话页面的开启状态,只是识别出用户A的通讯需求的一种实施方式,实际上还可以通过其他方式确定用户A的通讯需求,例如根据该用户A的与用户B相关的未办事项、与用户B相关的企业管理事件(如待处理的审批事件、待处理的考勤事件等)、与用户B之间的历史通讯内容等,均可以用于分析出该用户A是否存在对该用户B的通讯需求,当然本申请并不对此进行限制。Certainly, obtaining an open state of the message session page is only an implementation manner of identifying the communication requirement of the user A. In fact, the communication requirement of the user A may be determined by other means, for example, according to the user A's related to the user B. The business management events related to user B (such as pending approval events, pending attendance events, etc.) and historical communication content with user B can be used to analyze whether the user A exists. The user B's communication needs, of course, this application does not limit this.
在本实施例中,当用户A存在针对用户B的通讯需求时,可以确定电子设备1上的对讲模块1与电子设备2上的对讲模块2之间是否处于可通讯状态,从而在可通讯状态下将模式切换选项设置为可触发状态,否则可以将该模式切换选项设置为不可触发状态。在一实施例中,可以通过下述的步骤204A-206A来判断是否处于可通讯状态;在另一实施例中,可以通过下述的步骤204B-206B来判断是否处于可通讯状态;在又一实施例中,可以同时执行下述的步骤204A-206A和步骤204B-206B,从而更为准确地判断是否处于 可通讯状态。In this embodiment, when the user A has a communication requirement for the user B, it can be determined whether the intercom module 1 on the electronic device 1 and the intercom module 2 on the electronic device 2 are in a communicable state, so that The mode switching option is set to the triggerable state in the communication state, otherwise the mode switching option can be set to the untriggerable state. In an embodiment, whether the communication state is determined by the following steps 204A-206A; in another embodiment, whether the communication state is determined by the following steps 204B-206B; In an embodiment, the following steps 204A-206A and 204B-206B may be simultaneously performed to more accurately determine whether it is in Communication status.
步骤204A,钉钉客户端1确定电子设备1与用户B使用的电子设备2之间的间隔距离。In step 204A, the staple client 1 determines the separation distance between the electronic device 1 and the electronic device 2 used by the user B.
步骤206A,当间隔距离表明电子设备2位于电子设备1附近区域时,转入步骤208B,否则转入步骤208A。In step 206A, when the separation distance indicates that the electronic device 2 is located in the vicinity of the electronic device 1, the process proceeds to step 208B, otherwise, the process proceeds to step 208A.
在本实施例中,钉钉客户端1可以通过多种方式确定电子设备1与电子设备2之间的间隔距离,本申请并不对此进行限制;下面进行举例说明:In this embodiment, the staple client 1 can determine the separation distance between the electronic device 1 and the electronic device 2 in various ways, which is not limited in this application;
1)基于定位信息1) Based on location information
在一实施方式中,钉钉客户端1可以获取根据电子设备1和电子设备2的定位信息计算出的间隔距离。例如,电子设备1和电子设备2分别内置有诸如GPS芯片等定位组件,钉钉客户端1可以向钉钉服务端发起间隔距离获取请求,钉钉服务端可以分别向钉钉客户端1、钉钉客户端2发起定位请求,使得钉钉客户端1向电子设备1申请定位操作、钉钉客户端2向电子设备2申请定位操作,那么电子设备1通过内置的定位组件获取自身的定位信息1、电子设备2通过内置的定位组件获取自身的定位信息2,并由钉钉客户端1、钉钉客户端2分别将定位信息1、定位信息2上传至钉钉服务端,从而由钉钉服务端通过定位信息1和定位信息2计算得到上述的间隔距离。In an embodiment, the staple client 1 can acquire the separation distance calculated according to the positioning information of the electronic device 1 and the electronic device 2. For example, the electronic device 1 and the electronic device 2 respectively have a positioning component such as a GPS chip built therein, and the nail client 1 can initiate a separation distance acquisition request to the nail server, and the nail server can respectively nail the client 1 and nail The nail client 2 initiates a positioning request, so that the nail client 1 applies for a positioning operation to the electronic device 1, and the nail client 2 applies for a positioning operation to the electronic device 2, and then the electronic device 1 acquires its own positioning information through the built-in positioning component. The electronic device 2 obtains its own positioning information 2 through the built-in positioning component, and the nailing client 1 and the nailing client 2 respectively upload the positioning information 1 and the positioning information 2 to the nailing server end, thereby serving by the nailing service. The above-mentioned separation distance is calculated by the positioning information 1 and the positioning information 2.
那么,通过将间隔距离的数值与预设距离进行比较,当间隔距离的数值不大于该预设距离时,即可确定电子设备2位于电子设备1的附近区域,因而判定为对讲模块1与对讲模块2之间处于可通讯状态,即用户A与用户B可以通过对讲模块1、对讲模块2实现语音通讯。Then, by comparing the value of the separation distance with the preset distance, when the value of the separation distance is not greater than the preset distance, it can be determined that the electronic device 2 is located in the vicinity of the electronic device 1, and thus the intercom module 1 is determined to be The intercom module 2 is in a communicable state, that is, the user A and the user B can implement voice communication through the intercom module 1 and the intercom module 2.
2)建立无线连接2) Establish a wireless connection
在一实施方式中,钉钉客户端1可以尝试将电子设备1与电子设备2建立预设近场无线连接,当该近场无线连接建立成功时判定为间隔距离不大于预设距离,并据此判定对讲模块1与对讲模块2之间处于可通讯状态。In an embodiment, the nail client 1 may attempt to establish a preset near field wireless connection between the electronic device 1 and the electronic device 2, and when the near field wireless connection is successfully established, it is determined that the separation distance is not greater than a preset distance, and This determines that the intercom module 1 and the intercom module 2 are in a communicable state.
其中,预设近场无线连接可以包括蓝牙连接、ZigBee连接等多种类型,本申请并不对此进行限制。由于近场无线连接对于建立连接的设备距离存在一定要求,即电子设备1与电子设备2之间应当处于一定距离之内时,才能够实现对该近场无线连接的成功建立,因而当对讲模块1与对讲模块2之间的最大通讯距离与该近场无线连接的最大建立距离相近时,可以在电子设备1与电子设备2之间成功建立该近场无线连接时,判定该对讲模块1与对讲模块2之间处于可通讯状态。 The preset near field wireless connection may include multiple types such as a Bluetooth connection, a ZigBee connection, and the like, which is not limited in this application. Since the near field wireless connection has a certain requirement for establishing a connected device distance, that is, when the electronic device 1 and the electronic device 2 should be within a certain distance, the successful establishment of the near field wireless connection can be realized, and thus the intercom When the maximum communication distance between the module 1 and the intercom module 2 is close to the maximum established distance of the near field wireless connection, the intercom can be determined when the near field wireless connection is successfully established between the electronic device 1 and the electronic device 2 Module 1 and the intercom module 2 are in a communicable state.
3)基于信号强度3) Based on signal strength
在一实施方式中,当电子设备1与电子设备2已经建立了预设近场无线连接时,钉钉客户端1可以根据检测到的该预设近场无线连接的接收信号强度指示RSSI(Received Signal Strength Indication)确定间隔距离,其中间隔距离与RSSI的值呈反相关。In an embodiment, when the electronic device 1 and the electronic device 2 have established a preset near field wireless connection, the staple client 1 can indicate the RSSI according to the detected received signal strength of the preset near field wireless connection (Received Signal Strength Indication) determines the separation distance, where the separation distance is inversely related to the value of RSSI.
步骤204B,钉钉客户端1通过电子设备1上装配的对讲模块1发出针对钉钉客户端2的询问消息。In step 204B, the staple client 1 issues an inquiry message to the staple client 2 via the intercom module 1 assembled on the electronic device 1.
步骤206B,当钉钉客户端1接收到钉钉客户端2返回的确认消息时,转入步骤208B,否则转入步骤208A。 Step 206B, when the staple client 1 receives the confirmation message returned by the staple client 2, the process proceeds to step 208B, otherwise, the process proceeds to step 208A.
在本实施例中,钉钉客户端1可以通过对讲模块1发出询问消息,其中该询问消息可以被配置为仅针对用户B,例如该询问消息中可以包含该用户B的注册账号,且该注册账号被登录于电子设备2上使其被配置为该用户B对应的钉钉客户端2。In this embodiment, the nail client 1 can issue an inquiry message through the intercom module 1, wherein the inquiry message can be configured to be only for the user B, for example, the inquiry message can include the registration account of the user B, and the The registered account is registered on the electronic device 2 to be configured as the staple client 2 corresponding to the user B.
在一种情况下,确认消息可以由对讲模块2在接收到询问消息后,自动返回至对讲模块1。在一实施方式中,当对讲模块2接收到该询问消息时,可以根据其中包含的该用户B的注册账号,以及该电子设备2上运行的钉钉客户端2,确定自身为该询问消息的发送目标,并自动返回确认消息。而在另一实施方式中,对讲模块2可以将接收到的询问消息上报至钉钉客户端2,而钉钉客户端2根据该询问消息中包含的该用户B的注册账号,自动通过该对讲模块2返回确认消息。In one case, the confirmation message can be automatically returned to the intercom module 1 by the intercom module 2 upon receiving the inquiry message. In an embodiment, when the interrogation module 2 receives the inquiry message, it may determine that it is the inquiry message according to the registered account of the user B included therein and the nail client 2 running on the electronic device 2. Send the target and automatically return a confirmation message. In another embodiment, the intercom module 2 can report the received inquiry message to the nail client 2, and the nail client 2 automatically passes the registration account of the user B included in the inquiry message. The intercom module 2 returns a confirmation message.
当然,询问请求中还可以包括该用户A的注册账号,以表明该询问请求的发起者的身份;那么,钉钉客户端2可以在确定该用户A与用户B之间存在预设关联关系(如好友、同事等)时,返回确认消息;而当用户A为诸如陌生人时,钉钉客户端2可以拒绝返回确认消息,以规避可能存在的安全风险。Certainly, the inquiry request may further include the registration account of the user A to indicate the identity of the initiator of the inquiry request; then, the nail client 2 may determine that there is a preset association relationship between the user A and the user B ( When a user A is, such as a stranger, the nail client 2 may refuse to return a confirmation message to circumvent a possible security risk.
在另一种情况下,对讲模块2可以将接收到的询问消息上报至钉钉客户端2,而钉钉客户端2根据该询问消息中包含的该用户B的注册账号、作为该询问请求的发起者的用户A的注册账号,通过电子设备2向用户B进行询问提示,例如该询问提示可以表现为图5所示的“A邀请您进入对讲机模式”,则当钉钉客户端2确定“接受”选项被触发时,通过对讲模块2向对讲模块1返回确认消息,而当钉钉客户端2确定“拒绝”选项被触发时,可以拒绝返回确认消息。当然,在图5所示的实施例中,询问提示展示在钉钉客户端2中对应于用户A的消息会话页面中;实际上,该询问提示可以展示在钉钉客户端2的任意页面中,或者以推送消息的形式展示在电子设备2的锁屏界面、待机界面等任意界面中,本申请并不对此进行限制。 In another case, the intercom module 2 can report the received inquiry message to the nail client 2, and the nail client 2 serves as the inquiry request according to the registered account of the user B included in the inquiry message. The registered account of the user A of the initiator, and the user B makes an inquiry prompt to the user B through the electronic device 2, for example, the inquiry prompt can be expressed as “A invites you to enter the walkie-talkie mode” as shown in FIG. 5, and then the nail client 2 determines When the "Accept" option is triggered, the acknowledgment message is returned to the Talkback Module 1 via the Talkback Module 2, and when the Stud Client 2 determines that the "Reject" option is triggered, the acknowledgment message may be rejected. Of course, in the embodiment shown in FIG. 5, the query prompt is displayed in the message session page corresponding to the user A in the nail client 2; in fact, the query prompt can be displayed in any page of the nail client 2 The present invention does not limit the present invention to any interface such as a lock screen interface or a standby interface of the electronic device 2 in the form of a push message.
步骤208A,钉钉客户端1在用户B对应的消息会话页面中,将模式切换选项设置为不可触发状态。In step 208A, the nail client 1 sets the mode switching option to the untriggerable state in the message session page corresponding to the user B.
步骤208B,钉钉客户端1在用户B对应的消息会话页面中,将模式切换选项设置为可触发状态。In step 208B, the nail client 1 sets the mode switching option to a triggerable state in the message session page corresponding to the user B.
步骤210,当钉钉客户端1检测到用户B对应的消息会话页面中的模式切换选项被触发时,转入步骤212B,否则转入步骤212A。Step 210: When the nail client 1 detects that the mode switching option in the message session page corresponding to the user B is triggered, the process proceeds to step 212B, otherwise, the process proceeds to step 212A.
步骤212A,钉钉客户端1将自身配置为针对该用户B的即时通讯模式。In step 212A, the nail client 1 configures itself as an instant messaging mode for the user B.
步骤212B,钉钉客户端1将自身配置为针对该用户B的对讲模式。In step 212B, the nail client 1 configures itself as an intercom mode for the user B.
在本实施例中,钉钉客户端1上存在针对每一联系人的消息会话页面,而每一消息会话页面中可以包含一模式切换选项,当对讲模块1与任一联系人所使用的电子设备的对讲模块之间处于可通讯状态时,该任一联系人对应的消息会话页面上的模式切换选项可以被配置为可触发状态,否则可以将该模式切换选项配置为不可触发状态。In this embodiment, there is a message session page for each contact on the nail client 1, and each message session page may include a mode switching option, which is used by the intercom module 1 and any contact. When the intercom module of the electronic device is in a communicable state, the mode switching option on the message session page corresponding to the contact may be configured to be in a triggerable state, otherwise the mode switching option may be configured as an untriggerable state.
例如,以用户A与用户B为例,当对讲模块1与对讲模块2之间处于不可通讯状态或尚未确定时,在如图4所示的钉钉客户端1上对应于用户B的消息会话页面中,模式切换选项可以表现为虚线(或其他形式)形式的对讲机图标,表明该模式切换选项处于不可触发状态。For example, taking user A and user B as an example, when the intercom module 1 and the intercom module 2 are in a non-communicable state or have not been determined, corresponding to the user B on the staple client 1 as shown in FIG. In the message session page, the mode switching option can be represented as a walkie-talkie icon in the form of a dashed line (or other form) indicating that the mode switching option is in an untriggerable state.
而当对讲模块1与对讲模块2处于可通讯状态时,模式切换选项可以表现为图6所示的实线形式的对讲机图标,表明该模式切换选项处于可触发状态。在如图6所示的可触发状态下,当检测到用户A对该对讲机图标的点击等触发操作时,钉钉客户端1可将自身针对该用户B的通讯模式进行切换;其中,在图6所示的实施例中,钉钉客户端1针对该用户B采用即时通讯模式,而在图7所示的实施例中,钉钉客户端1针对该用户B采用对讲模式,用户A可以根据图7所示的消息会话页面中“对讲机图标”的背景图案,区分处于即时通讯模式或对讲模式。When the intercom module 1 and the intercom module 2 are in a communicable state, the mode switching option may be represented by a walkie-talkie icon in the form of a solid line as shown in FIG. 6, indicating that the mode switching option is in a triggerable state. In the triggerable state as shown in FIG. 6, when the user A detects a click operation on the walkie-talkie icon or the like, the nail client 1 can switch its own communication mode for the user B; In the embodiment shown in FIG. 6, the staple client 1 adopts an instant messaging mode for the user B, and in the embodiment shown in FIG. 7, the staple client 1 adopts an intercom mode for the user B, and the user A can According to the background pattern of the "walkie-talkie icon" in the message session page shown in FIG. 7, the difference is in the instant messaging mode or the intercom mode.
在本实施例中,可通讯状态或不可通讯状态是针对单个用户而言;例如,当对讲模块1与对讲模块2处于可通讯状态时,钉钉客户端1可以针对用户B将模式切换选项设置为可触发状态,但是对讲模块1同时与用户C对应的对讲模块3可能处于不可通讯状态,因而钉钉客户端1可以针对用户C将模式切换选项设置为不可触发状态。类似地,即时通讯模式或对讲模式也是针对单个用户而言;例如,当对讲模块1同时与对讲模块2、对讲模块3处于可通讯状态时,钉钉客户端1可以根据用户A对用户B对应的消息会话页面中的模式切换选项的触发操作、用户C对应的消息会话页面中的模式切换选项 的触发操作,分别将用户B对应的消息会话页面中的模式切换选项设置为对讲模式、将用户C对应的消息会话页面中的模式切换选项设置为即时通讯模式。In this embodiment, the communicable state or the non-communicable state is for a single user; for example, when the intercom module 1 and the intercom module 2 are in a communicable state, the staple client 1 can switch the mode for the user B. The option is set to the triggerable state, but the intercom module 1 and the intercom module 3 corresponding to the user C may be in a non-communicable state, so the nail client 1 can set the mode switching option to the untriggerable state for the user C. Similarly, the instant messaging mode or the intercom mode is also for a single user; for example, when the intercom module 1 is in a communicable state with the intercom module 2 and the intercom module 3 at the same time, the staple client 1 can be based on the user A. The triggering operation of the mode switching option in the message session page corresponding to the user B, and the mode switching option in the message session page corresponding to the user C The triggering operation sets the mode switching option in the message session page corresponding to the user B to the intercom mode, and sets the mode switching option in the message session page corresponding to the user C to the instant messaging mode.
步骤214,钉钉客户端1获取待发送通讯语音。In step 214, the nail client 1 acquires a communication voice to be sent.
在一实施例中,钉钉客户端1可以支持用户A的直接语音输入,即用户A的用户输入操作可使得钉钉客户端1直接获得相应的语音数据,以将其作为待发送通讯语音。In an embodiment, the staple client 1 can support the direct voice input of the user A, that is, the user input operation of the user A can cause the staple client 1 to directly obtain the corresponding voice data as the communication voice to be transmitted.
在另一实施例中,钉钉客户端1可以接收用户A的用户输入操作包含的文字消息,并主动对该文字消息进行语音转换,从而得到上述的待发送通讯语音。In another embodiment, the staple client 1 can receive the text message included in the user input operation of the user A, and actively perform voice conversion on the text message to obtain the above-mentioned communication voice to be transmitted.
步骤216,钉钉客户端1发出待发送通讯语音。In step 216, the nail client 1 sends a communication voice to be sent.
在本实施例中,当钉钉客户端1处于即时通讯模式时,钉钉客户端1采用即时通讯形式,将待发送通讯语音发送至用户B;当钉钉客户端1处于对讲模式时,钉钉客户端1通过电子设备1上的对讲模块1,将待发送通讯语音发送至对讲模块2,并通过钉钉客户端2向用户B进行播放。In this embodiment, when the staple client 1 is in the instant messaging mode, the staple client 1 transmits the communication voice to be sent to the user B in the form of instant communication; when the staple client 1 is in the intercom mode, The nailing client 1 sends the communication voice to be sent to the intercom module 2 through the intercom module 1 on the electronic device 1, and plays to the user B through the nail client 2.
其中,在对讲模式下,钉钉客户端2针对对讲模块2接收到的语音消息,可以模拟相关技术中的对讲机,直接对该语音消息进行播放,当然钉钉客户端2可以对该语音消息进行存储并在对应于用户A的消息会话页面中示出相应的消息框,以供用户B反复触发该消息框来收听。或者,钉钉客户端2可以不对语音消息进行直接播放,而采用类似于针对即时通讯场景下的语音消息的处理方式,在对应于用户A的消息会话页面中示出相应的消息框,并在用户B对该消息框进行触发后,播放相应的语音消息,使得用户B在对讲模式下的应用体验与即时通讯模式相当,有助于降低学习成本、提升应用体验。In the intercom mode, the nail client 2 can simulate the voice message received by the intercom module 2, and can directly simulate the walkie-talkie in the related art, and directly play the voice message, and of course, the nail client 2 can voice the voice message. The message is stored and the corresponding message box is shown in the message session page corresponding to User A for User B to repeatedly trigger the message box to listen to. Alternatively, the nailing client 2 may not directly play the voice message, but adopt a processing method similar to that for the voice message in the instant messaging scenario, and display a corresponding message box in the message session page corresponding to the user A, and After the user B triggers the message box, the user plays the corresponding voice message, so that the application experience of the user B in the intercom mode is equivalent to the instant messaging mode, which helps to reduce the learning cost and improve the application experience.
步骤218,当待发送通讯语音被发送成功时,钉钉客户端1执行成功提醒,否则转入步骤220。Step 218, when the to-be-sent communication voice is successfully sent, the nail client 1 performs a successful reminder, otherwise proceeds to step 220.
在本实施例中,以图8所示的对讲模式下的消息会话页面为例,钉钉客户端1控制将该待发送通讯语音通过对讲模块1发出后,可以在消息会话页面中示出相应的消息框。进一步地,当待发送通讯语音被对讲模块1成功发送至对讲模块2,并由钉钉客户端2确认接收到(例如,对讲模块2接收到语音消息后,钉钉客户端2可以通过钉钉服务端或对讲模块2返回相应的接收确认消息)后,可以在该消息框的关联区域(如图8中位于该消息框的左侧)处示出成功提醒,例如图8所示的“□√”图标等。In this embodiment, taking the message session page in the intercom mode shown in FIG. 8 as an example, after the nail client 1 controls to send the to-be-sent communication voice through the intercom module 1, it can be displayed in the message session page. The corresponding message box is displayed. Further, when the communication voice to be sent is successfully sent to the intercom module 2 by the intercom module 1 and confirmed by the nail client 2 (for example, after the intercom module 2 receives the voice message, the nail client 2 may After the corresponding receiving confirmation message is returned by the nailing server or the intercom module 2, a success reminder may be displayed in the associated area of the message box (as shown in the left side of the message box in FIG. 8), for example, FIG. The "□√" icon shown.
同时,在用户B尚未收听已发送的通讯语音时,相应消息框的关联区域处可以示出如图8所示的“未收听”标记,表明相应的通讯语音处于的未收听状态;当用户B执行了对该通讯语音的收听操作后,钉钉客户端2可以通过钉钉服务端或通讯模块2返回相 应的已收听状态,则钉钉客户端1可以将上述的“未收听”更新为“已收听”等。Meanwhile, when the user B has not listened to the transmitted communication voice, the associated area of the corresponding message box may show an "unlisted" mark as shown in FIG. 8, indicating that the corresponding communication voice is in an unlisted state; when the user B After performing the listening operation on the communication voice, the nail client 2 can return to the phase through the nail server or the communication module 2 In the listened state, the staple client 1 can update the above-mentioned "not listened" to "listened" or the like.
步骤220,当钉钉客户端1已经执行了模式切换时,钉钉客户端1执行失败提醒,否则转入步骤222。Step 220: When the nail client 1 has performed mode switching, the nail client 1 performs a failure reminder, otherwise proceeds to step 222.
步骤222,钉钉客户端1切换模式并重新发送上述的待发送通讯语音,然后转入步骤218。In step 222, the nail client 1 switches the mode and resends the above-mentioned communication voice to be transmitted, and then proceeds to step 218.
在本实施例中,以钉钉客户端1在对讲模式下发出上述的待发送通讯语音为例。在当电子设备1与电子设备2之间的相对位置发生变化,或者周围环境较为复杂等情况下,钉钉客户端1可能并未成功发出该待发送通讯语音,则钉钉客户端1可以示出图9所示的“发送失败”和“
Figure PCTCN2017111802-appb-000001
”等失败提醒。进一步地,钉钉客户端1可以自动由对讲模式切换至即时通讯模式,并对该待发送通讯语音进行重新发送,以增加该待发送通讯语音的发送成功率,并且钉钉客户端1可以在相应的消息框处示出诸如图9所示的“通过钉钉重新发送”等,以表明该消息框中的内容是在执行模式切换后被重新发出。
In this embodiment, the nail client 1 sends the above-mentioned communication voice to be transmitted in the intercom mode as an example. In the case that the relative position between the electronic device 1 and the electronic device 2 changes, or the surrounding environment is relatively complicated, etc., the nail client 1 may not successfully send the communication voice to be sent, and the nail client 1 may show "Send failed" and "Show" as shown in Figure 9.
Figure PCTCN2017111802-appb-000001
Further, the nailing client 1 can automatically switch from the intercom mode to the instant messaging mode, and resend the to-be-sent communication voice to increase the transmission success rate of the to-be-sent communication voice, and nail The staple client 1 can display a "re-send by nail" or the like as shown in FIG. 9 at a corresponding message box to indicate that the content of the message box is re-issued after performing mode switching.
需要指出的是:当钉钉客户端1采用即时通讯模式对待发送通讯语音进行发送时,可参考相关技术中的即时通讯方案,此处不再赘述;当然,如果待发送通讯语音在即时通讯模式下未被成功发送,同样可以通过上述的步骤222的方式,从即时通讯模式切换至对讲模式,以实现对该待发送通讯语音的重新发送,以增加该待发送通讯语音的发送成功率,此处不再赘述。It should be pointed out that when the nail client 1 uses the instant messaging mode to send the communication voice, it can refer to the instant messaging scheme in the related art, and details are not described herein; of course, if the communication voice to be sent is in the instant messaging mode If the transmission is not successful, the method may be used to switch from the instant messaging mode to the intercom mode to implement retransmission of the to-be-sent communication voice to increase the success rate of the to-be-sent communication voice. I will not repeat them here.
综上所述,通过在电子设备上装配对讲模块,并由即时通讯应用对该对讲模块进行利用,使得用户在即时通讯应用的客户端上生成的语音消息,可以选择通过即时通讯模式或对讲模式进行发送,可以充分利用各个频段的通讯资源,并且可以在某一模式不可用时,及时切换至另一模式,可以提升语音消息的发送成功率,有助于提升用户的通讯效率。In summary, the intercom module is assembled on the electronic device, and the intercom module is utilized by the instant messaging application, so that the voice message generated by the user on the client of the instant messaging application can be selected through the instant messaging mode or The intercom mode can be used to improve the communication efficiency of the voice message.
图10是本申请一示例性实施例提供的又一种通讯方法的流程图。如图10所示,该方法应用于即时通讯应用的客户端,可以包括以下步骤:FIG. 10 is a flowchart of still another communication method provided by an exemplary embodiment of the present application. As shown in FIG. 10, the method is applied to a client of an instant messaging application, and may include the following steps:
步骤1002,当电子设备上运行的即时通讯应用的客户端检测到针对目标用户的通讯需求时,通过所述电子设备上装配的第一对讲模块发出针对所述目标用户的设备的询问消息。Step 1002: When the client of the instant messaging application running on the electronic device detects the communication requirement for the target user, an inquiry message for the device of the target user is sent by the first intercom module installed on the electronic device.
在本实施例中,可以通过多种方式检测出针对目标用户的通讯需求。举例而言,当检测到该目标用户对应的消息会话页面被开启时,可以确定为存在针对该目标用户的通讯需求。 In this embodiment, the communication requirements for the target user can be detected in various ways. For example, when it is detected that the message session page corresponding to the target user is turned on, it may be determined that there is a communication requirement for the target user.
当然,实际上还可以通过其他方式确定用户A的通讯需求,例如根据该用户A的与用户B相关的未办事项、与用户B相关的企业管理事件(如待处理的审批事件、待处理的考勤事件等)、与用户B之间的历史通讯内容等,均可以用于分析出该用户A是否存在对该用户B的通讯需求,当然本申请并不对此进行限制。Of course, in fact, the communication needs of the user A can be determined by other means, for example, according to the user A's unrelated matters related to the user B, and the enterprise management events related to the user B (such as pending approval events, pending). The attendance event, etc., the historical communication content with the user B, etc., can be used to analyze whether the user A has a communication demand for the user B. Of course, this application does not limit this.
步骤1004,当接收到所述目标用户的设备上装配的第二对讲模块返回的确认消息时,将所述客户端上的模式切换选项设置为可触发状态;其中,当所述模式切换选项被触发时,所述客户端在即时通讯模式与所述对讲模式之间实现模式切换。Step 1004: When receiving the confirmation message returned by the second intercom module installed on the device of the target user, setting a mode switching option on the client to a triggerable state; wherein, when the mode switching option is When triggered, the client implements mode switching between the instant messaging mode and the intercom mode.
在本实施例中,通过将模式切换选项设置为可触发状态,使得用户可以根据实际需求选择使用即时通讯模式或对讲模式,而不局限于单纯使用相关技术中的即时通讯模式,可以实现对不同频段的通讯资源的充分利用。In this embodiment, by setting the mode switching option to the triggerable state, the user can select to use the instant messaging mode or the intercom mode according to actual needs, and is not limited to simply using the instant messaging mode in the related technology. Make full use of communication resources in different frequency bands.
图11是本申请一示例性实施例提供的又一种通讯方法的流程图。如图11所示,该方法应用于第一电子设备上运行的即时通讯应用的第一客户端,可以包括以下步骤:FIG. 11 is a flowchart of still another communication method provided by an exemplary embodiment of the present application. As shown in FIG. 11, the method is applied to a first client of an instant messaging application running on a first electronic device, and may include the following steps:
步骤1102,通过第一电子设备上运行的即时通讯应用的第一客户端,检测所述电子设备上装配的第一对讲模块接收到的语音消息。Step 1102: Detect a voice message received by the first intercom module installed on the electronic device by using a first client of the instant messaging application running on the first electronic device.
步骤1104,当所述语音消息来自第二电子设备上运行的所述即时通讯应用的第二客户端,且所述语音消息由所述第二电子设备上装配的第二对讲模块发出时,将所述第一客户端配置为针对所述第二客户端的对讲模式。 Step 1104, when the voice message is from a second client of the instant messaging application running on the second electronic device, and the voice message is sent by the second intercom module installed on the second electronic device, The first client is configured as an intercom mode for the second client.
在本实施例中,当第一客户端接收到第二客户端通过第二对讲模块发出的语音消息时,第一客户端可以通过将自身配置为对讲模块,以配合于该第二客户端,即第一客户端与第二客户端之间通过第一对讲模块、第二对讲模块实现对语音消息的传输,而无需用户手动对第一客户端进行模式切换。In this embodiment, when the first client receives the voice message sent by the second client through the second intercom module, the first client may be configured as the intercom module to cooperate with the second client. The first client and the second client implement the transmission of the voice message through the first intercom module and the second intercom module, without the user manually performing mode switching on the first client.
当然,基于用户的实际选择,用户也可以手动将第一客户端切换回即时通讯模式,使得第一客户端可以通过第一对讲模块接收到第二客户端通过第二对讲模块发出的语音消息,且第一客户端还采用即时通讯模式向该第二客户端发出语音消息。Of course, based on the actual selection of the user, the user can manually switch the first client back to the instant messaging mode, so that the first client can receive the voice sent by the second client through the second intercom module through the first intercom module. The message, and the first client also sends a voice message to the second client in an instant messaging mode.
图12示出了根据本申请的一示例性实施例的电子设备的示意结构图。请参考图12,在硬件层面,该电子设备包括处理器1202、内部总线1204、网络接口1206、内存1208以及非易失性存储器1210,当然还可能包括其他业务所需要的硬件。处理器1202从非易失性存储器1210中读取对应的计算机程序到内存1202中然后运行,在逻辑层面上形成通讯装置。当然,除了软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻 辑单元,也可以是硬件或逻辑器件。FIG. 12 shows a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application. Referring to FIG. 12, at the hardware level, the electronic device includes a processor 1202, an internal bus 1204, a network interface 1206, a memory 1208, and a non-volatile memory 1210, and of course may also include hardware required for other services. The processor 1202 reads the corresponding computer program from the non-volatile memory 1210 into the memory 1202 and then operates to form a communication device at a logical level. Of course, in addition to the software implementation, this application does not exclude other implementations, such as logic devices or software and hardware combinations, etc., that is, the execution body of the following processing flow is not limited to each logic. The unit can also be hardware or logic.
请参考图13,在软件实施方式中,该通讯装置可以包括生成单元1301、第一发送单元1302和第二发送单元1303。其中:Referring to FIG. 13 , in a software implementation, the communication device may include a generating unit 1301 , a first sending unit 1302 , and a second sending unit 1303 . among them:
生成单元1301,通过电子设备上运行的即时通讯应用的客户端,将获得的用户输入内容生成为相应的待发送通讯语音;The generating unit 1301 generates, by using a client of the instant messaging application running on the electronic device, the obtained user input content as a corresponding communication voice to be sent;
第一发送单元1302,当所述客户端被配置为即时通讯模式时,将所述待发送通讯语音生成为语音类型的即时通讯消息,并发出所述语音类型的即时通讯消息;The first sending unit 1302, when the client is configured to the instant messaging mode, generate the to-be-sent communication voice as a voice type instant messaging message, and issue the voice type instant messaging message;
第二发送单元1303,当所述客户端被配置为对讲模式时,通过所述电子设备上装配的第一对讲模块发出所述待发送通讯语音。The second sending unit 1303 sends the to-be-sent communication voice through the first intercom module installed on the electronic device when the client is configured to be in the intercom mode.
可选的,还包括:Optionally, it also includes:
确定单元1304,确定所述第一对讲模块与目标用户的设备上装配的第二对讲模块之间的通讯状态;a determining unit 1304, determining a communication state between the first intercom module and a second intercom module installed on a device of the target user;
配置单元1305,当所述通讯状态为可通讯状态时,将所述客户端配置为所述对讲模式。The configuration unit 1305 configures the client as the intercom mode when the communication state is a communicable state.
可选的,还包括:Optionally, it also includes:
确定单元1304,确定所述第一对讲模块与目标用户的设备上装配的第二对讲模块之间的通讯状态;a determining unit 1304, determining a communication state between the first intercom module and a second intercom module installed on a device of the target user;
设置单元1306,当所述通讯状态为可通讯状态时,将所述客户端上的模式切换选项设置为可触发状态;其中,当所述模式切换选项被触发时,所述客户端在所述即时通讯模式与所述对讲模式之间实现模式切换。The setting unit 1306, when the communication state is a communicable state, setting a mode switching option on the client to a triggerable state; wherein, when the mode switching option is triggered, the client is in the A mode switch is implemented between the instant messaging mode and the intercom mode.
可选的,所述确定单元1304具体用于:Optionally, the determining unit 1304 is specifically configured to:
确定所述电子设备与目标用户的设备之间的间隔距离;Determining a separation distance between the electronic device and a device of the target user;
当所述间隔距离不大于预设距离时,确定处于所述可通讯状态。When the separation distance is not greater than the preset distance, it is determined to be in the communicable state.
可选的,所述确定单元1304通过下述方式确定所述电子设备与目标用户的设备之间的间隔距离,包括:Optionally, the determining unit 1304 determines a separation distance between the electronic device and a device of the target user by:
获取根据所述电子设备和所述目标用户的设备的定位信息计算出的所述间隔距离;Acquiring the separation distance calculated according to the positioning information of the electronic device and the device of the target user;
或者,尝试与所述目标用户的设备建立预设近场无线连接,当所述近场无线连接建立成功时判定为所述间隔距离不大于所述预设距离;Or determining to establish a preset near field wireless connection with the device of the target user, and determining that the separation distance is not greater than the preset distance when the near field wireless connection is successfully established;
或者,根据检测到的与所述目标用户的设备建立的预设近场无线连接的接收信号强度指示RSSI,确定所述间隔距离,其中所述间隔距离与所述接收信号强度指示呈反相关。 Or determining, according to the detected received signal strength indication RSSI of the preset near field wireless connection established with the device of the target user, wherein the separation distance is inversely related to the received signal strength indication.
可选的,所述确定单元1304具体用于:Optionally, the determining unit 1304 is specifically configured to:
通过所述第一对讲模块向所述第二对讲模块发送询问消息;Sending an inquiry message to the second intercom module by using the first intercom module;
当接收到所述第二对讲模块返回的确认消息时,确定处于所述可通讯状态。When receiving the confirmation message returned by the second intercom module, it is determined that the communication state is in the communication state.
可选的,Optional,
所述确认消息由所述第二对讲模块在接收到所述询问消息后,自动返回至所述第一对讲模块;The confirmation message is automatically returned by the second intercom module to the first intercom module after receiving the inquiry message;
或者,在所述目标用户的设备根据所述第二对讲模块接收到的所述确认消息向所述目标用户进行询问提示后,所述确认消息由所述第二对讲模块根据所述目标用户执行的确认操作而返回至所述第一对讲模块。Or after the device of the target user sends an inquiry prompt to the target user according to the confirmation message received by the second intercom module, the confirmation message is used by the second intercom module according to the target. The user performs a confirmation operation and returns to the first intercom module.
可选的,还包括以下至少之一:Optionally, at least one of the following is also included:
第一重发送单元1307,当通过所述第一对讲模块发出所述待发送通讯语音时,若所述待发送通讯语音未被成功发送,将所述待发送通讯语音生成为语音类型的即时通讯消息,并采用即时通讯方式发出所述待发送通讯语音;The first resending unit 1307, when the communication voice to be sent is sent by the first intercom module, if the to-be-sent communication voice is not successfully sent, the to-be-sent communication voice is generated as a voice type instant. Communicating a message and transmitting the to-be-sent communication voice by means of instant messaging;
第二重发送单元1308,当采用即时通讯方式发出所述待发送通讯语音时,若所述待发送通讯语音未被成功发送,通过所述第一对讲模块发出所述待发送通讯语音。The second resending unit 1308 sends the to-be-sent communication voice through the first intercom module if the to-be-sent communication voice is not successfully transmitted when the to-be-sent communication voice is sent in an instant messaging manner.
可选的,所述生成单元1301具体用于以下至少之一:Optionally, the generating unit 1301 is specifically configured to use at least one of the following:
当所述用户输入内容包含语音数据时,将所述语音数据生成为所述待发送通讯语音;When the user input content includes voice data, the voice data is generated as the to-be-sent communication voice;
当所述用户输入内容包含文本消息时,将所述文本消息进行语音转换为所述待发送通讯语音。When the user input content includes a text message, the text message is voice converted into the to-be-sent communication voice.
图14示出了根据本申请的一示例性实施例的电子设备的示意结构图。请参考图14,在硬件层面,该电子设备包括处理器1402、内部总线1404、网络接口1406、内存1408以及非易失性存储器1410,当然还可能包括其他业务所需要的硬件。处理器1402从非易失性存储器1410中读取对应的计算机程序到内存1402中然后运行,在逻辑层面上形成通讯装置。当然,除了软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。FIG. 14 shows a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application. Referring to FIG. 14, at the hardware level, the electronic device includes a processor 1402, an internal bus 1404, a network interface 1406, a memory 1408, and a non-volatile memory 1410, and may of course include hardware required for other services. The processor 1402 reads the corresponding computer program from the non-volatile memory 1410 into the memory 1402 and then operates to form a communication device at a logical level. Of course, in addition to the software implementation, the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and may be Hardware or logic device.
请参考图15,在软件实施方式中,该通讯装置可以包括询问单元1501和设置单元1502。其中:Referring to FIG. 15, in a software implementation, the communication device can include an interrogation unit 1501 and a setup unit 1502. among them:
询问单元1501,当电子设备上运行的即时通讯应用的客户端检测到针对目标用户的通讯需求时,通过所述电子设备上装配的第一对讲模块发出针对所述目标用户的设备的 询问消息;The inquiring unit 1501, when the client of the instant messaging application running on the electronic device detects the communication requirement for the target user, sends the device for the target user through the first intercom module installed on the electronic device. Inquiry message
设置单元1502,当接收到所述目标用户的设备上装配的第二对讲模块返回的确认消息时,将所述客户端上的模式切换选项设置为可触发状态;其中,当所述模式切换选项被触发时,所述客户端在即时通讯模式与所述对讲模式之间实现模式切换。The setting unit 1502, when receiving the confirmation message returned by the second intercom module installed on the device of the target user, setting the mode switching option on the client to a triggerable state; wherein, when the mode is switched When the option is triggered, the client implements mode switching between the instant messaging mode and the intercom mode.
图16示出了根据本申请的一示例性实施例的电子设备的示意结构图。请参考图16,在硬件层面,该电子设备包括处理器1602、内部总线1604、网络接口1606、内存1608以及非易失性存储器1610,当然还可能包括其他业务所需要的硬件。处理器1602从非易失性存储器1610中读取对应的计算机程序到内存1602中然后运行,在逻辑层面上形成通讯装置。当然,除了软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。FIG. 16 shows a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application. Referring to FIG. 16, at the hardware level, the electronic device includes a processor 1602, an internal bus 1604, a network interface 1606, a memory 1608, and a non-volatile memory 1610, and of course may also include hardware required for other services. The processor 1602 reads the corresponding computer program from the non-volatile memory 1610 into the memory 1602 and then operates to form a communication device at a logical level. Of course, in addition to the software implementation, the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and may be Hardware or logic device.
请参考图17,在软件实施方式中,该通讯装置可以包括检测单元1701和配置单元1702。其中:Referring to FIG. 17, in a software implementation, the communication device may include a detecting unit 1701 and a configuration unit 1702. among them:
检测单元1701,通过第一电子设备上运行的即时通讯应用的第一客户端,检测所述电子设备上装配的第一对讲模块接收到的语音消息;The detecting unit 1701 detects a voice message received by the first intercom module installed on the electronic device by using a first client of the instant messaging application running on the first electronic device;
配置单元1702,当所述语音消息来自第二电子设备上运行的所述即时通讯应用的第二客户端,且所述语音消息由所述第二电子设备上装配的第二对讲模块发出时,将所述第一客户端配置为针对所述第二客户端的对讲模式。The configuration unit 1702, when the voice message is from a second client of the instant messaging application running on the second electronic device, and the voice message is sent by the second intercom module installed on the second electronic device And configuring the first client as an intercom mode for the second client.
图18是本申请一示例性实施例提供的又一种通讯方法的流程图。如图18所示,该方法应用于即时通讯应用的客户端,可以包括以下步骤:FIG. 18 is a flowchart of still another communication method according to an exemplary embodiment of the present application. As shown in FIG. 18, the method is applied to a client of an instant messaging application, and may include the following steps:
步骤1802,通过第一电子设备上运行的即时通讯应用的第一客户端,检测所述电子设备上装配的第一对讲模块接收到的通讯消息。Step 1802: The first client of the instant messaging application running on the first electronic device detects a communication message received by the first intercom module installed on the electronic device.
步骤1804,当所述通讯消息来自第二电子设备上运行的所述即时通讯应用的第二客户端,且所述通讯消息由所述第二电子设备上装配的第二对讲模块发出时,确定所述通讯消息的消息类型。 Step 1804, when the communication message is from a second client of the instant messaging application running on the second electronic device, and the communication message is sent by the second intercom module installed on the second electronic device, Determining the message type of the communication message.
步骤1806,当所述消息类型为语音类型时,播放所述通讯消息;当所述消息类型为文本类型时,对所述通讯消息进行语音转换为语音消息,并播放转换后的语音消息。Step 1806: When the message type is a voice type, the communication message is played; when the message type is a text type, the communication message is voice converted into a voice message, and the converted voice message is played.
在本实施例中,当第一电子设备与第二电子设备基于即时通讯应用进行通讯时,相应的通讯消息可以采用对讲模块(如上述的第一对讲模块与第二对讲模块)进行传输,从而利用了对讲模块采用的通讯频段,实现对通讯资源的合理利用。 In this embodiment, when the first electronic device communicates with the second electronic device based on the instant messaging application, the corresponding communication message may be performed by using an intercom module (such as the first intercom module and the second intercom module described above). Transmission, thereby utilizing the communication frequency band used by the intercom module to achieve rational use of communication resources.
在一实施例中,对讲模块可以对即时通讯应用产生的语音类型的通讯消息进行传输。例如,当第一对讲模块接收到的第二对讲模块发出的语音类型的通讯消息时,第一对讲模块可以直接播放该通讯消息,实现对讲功能。In an embodiment, the intercom module can transmit a voice type communication message generated by the instant messaging application. For example, when the first intercom module receives the voice type communication message sent by the second intercom module, the first intercom module can directly play the communication message to implement the intercom function.
在另一实施例中,对讲模块可以对即时通讯应用产生的文本类型的通讯消息进行传输。例如,当使用第二电子设备的用户不方便说话时,比如环境过于嘈杂而可能造成语音不清晰、担心影响周围用户等,则该用户可以通过第二客户端提供的输入框,采用文本形式进行输入操作,从而得到文本类型的通讯消息;那么,当第二电子设备通过第二对讲模块发出该文本类型的通讯消息时,第一客户端可以主动将该文本类型的通讯消息进行语音转换为语音消息,并播放转换后的语音消息,以便于使用第一电子设备的用户进行收听,从而相比于直接查看文本内容而言可以提升通讯效率。In another embodiment, the intercom module can transmit a text type communication message generated by the instant messaging application. For example, when the user who uses the second electronic device is inconvenient to talk, such as the environment is too noisy and may cause unclear voice, worry about affecting surrounding users, etc., the user may use text input form through the input box provided by the second client. Entering an operation to obtain a text type communication message; then, when the second electronic device sends the text type communication message through the second intercom module, the first client can actively convert the text type communication message into The voice message is played, and the converted voice message is played, so that the user who uses the first electronic device can listen, so that the communication efficiency can be improved compared to directly viewing the text content.
图19示出了根据本申请的一示例性实施例的电子设备的示意结构图。请参考图19,在硬件层面,该电子设备包括处理器1902、内部总线1904、网络接口1906、内存1908以及非易失性存储器1910,当然还可能包括其他业务所需要的硬件。处理器1902从非易失性存储器1910中读取对应的计算机程序到内存1902中然后运行,在逻辑层面上形成通讯装置。当然,除了软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。FIG. 19 shows a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application. Referring to FIG. 19, at the hardware level, the electronic device includes a processor 1902, an internal bus 1904, a network interface 1906, a memory 1908, and a non-volatile memory 1910, and of course may also include hardware required for other services. The processor 1902 reads the corresponding computer program from the non-volatile memory 1910 into the memory 1902 and then operates to form a communication device at a logical level. Of course, in addition to the software implementation, the present application does not exclude other implementation manners, such as a logic device or a combination of software and hardware, etc., that is, the execution body of the following processing flow is not limited to each logical unit, and may be Hardware or logic device.
请参考图20,在软件实施方式中,该通讯装置可以包括检测单元2001、确定单元2002和播放单元2003。其中:Referring to FIG. 20, in a software implementation, the communication device may include a detecting unit 2001, a determining unit 2002, and a playing unit 2003. among them:
检测单元2001,通过第一电子设备上运行的即时通讯应用的第一客户端,检测所述电子设备上装配的第一对讲模块接收到的通讯消息;The detecting unit 2001 detects a communication message received by the first intercom module installed on the electronic device by using a first client of the instant messaging application running on the first electronic device;
确定单元2002,当所述通讯消息来自第二电子设备上运行的所述即时通讯应用的第二客户端,且所述通讯消息由所述第二电子设备上装配的第二对讲模块发出时,确定所述通讯消息的消息类型;a determining unit 2002, when the communication message is from a second client of the instant messaging application running on the second electronic device, and the communication message is sent by the second intercom module assembled on the second electronic device Determining a message type of the communication message;
播放单元2003,当所述消息类型为语音类型时,播放所述通讯消息;当所述消息类型为文本类型时,对所述通讯消息进行语音转换为语音消息,并播放转换后的语音消息。The playing unit 2003 plays the communication message when the message type is a voice type, and converts the communication message into a voice message when the message type is a text type, and plays the converted voice message.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介 质的示例。The memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory. Memory is computer readable A qualitative example.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media includes both permanent and non-persistent, removable and non-removable media. Information storage can be implemented by any method or technology. The information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory. (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disk read only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, Magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary storage of computer readable media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It is also to be understood that the terms "comprises" or "comprising" or "comprising" or any other variations are intended to encompass a non-exclusive inclusion, such that a process, method, article, Other elements not explicitly listed, or elements that are inherent to such a process, method, commodity, or equipment. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device including the element.
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with aspects of the present application as detailed in the appended claims.
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in the present application is for the purpose of describing particular embodiments, and is not intended to be limiting. The singular forms "a", "the" and "the" It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used to describe various information in this application, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as the second information without departing from the scope of the present application. Similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "when" or "in response to a determination."
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。 The above is only the preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., which are made within the spirit and principles of the present application, should be included in the present application. Within the scope of protection.

Claims (16)

  1. 一种通讯方法,其特征在于,包括:A communication method, comprising:
    通过电子设备上运行的即时通讯应用的客户端,将获得的用户输入内容生成为相应的待发送通讯语音;The user input content obtained by the instant messaging application running on the electronic device is generated as a corresponding communication voice to be sent;
    当所述客户端被配置为即时通讯模式时,将所述待发送通讯语音生成为语音类型的即时通讯消息,并发出所述语音类型的即时通讯消息;When the client is configured to the instant messaging mode, the to-be-sent communication voice is generated as a voice type instant messaging message, and the voice type instant messaging message is sent;
    当所述客户端被配置为对讲模式时,通过所述电子设备上装配的第一对讲模块发出所述待发送通讯语音。When the client is configured to be in the intercom mode, the to-be-transmitted communication voice is sent by the first intercom module installed on the electronic device.
  2. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    确定所述第一对讲模块与目标用户的设备上装配的第二对讲模块之间的通讯状态;Determining a communication state between the first intercom module and a second intercom module installed on a target user's device;
    当所述通讯状态为可通讯状态时,将所述客户端配置为所述对讲模式。When the communication status is a communicable state, the client is configured to be the intercom mode.
  3. 根据权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    确定所述第一对讲模块与目标用户的设备上装配的第二对讲模块之间的通讯状态;Determining a communication state between the first intercom module and a second intercom module installed on a target user's device;
    当所述通讯状态为可通讯状态时,将所述客户端上的模式切换选项设置为可触发状态;其中,当所述模式切换选项被触发时,所述客户端在所述即时通讯模式与所述对讲模式之间实现模式切换。Setting the mode switching option on the client to a triggerable state when the communication state is a communicable state; wherein, when the mode switching option is triggered, the client is in the instant messaging mode Mode switching is implemented between the intercom modes.
  4. 根据权利要求2或3所述的方法,其特征在于,所述确定所述第一对讲模块与目标用户的设备上装配的第二对讲模块之间的通讯状态,包括:The method according to claim 2 or 3, wherein the determining the communication status between the first intercom module and the second intercom module installed on the device of the target user comprises:
    确定所述电子设备与目标用户的设备之间的间隔距离;Determining a separation distance between the electronic device and a device of the target user;
    当所述间隔距离不大于预设距离时,确定处于所述可通讯状态。When the separation distance is not greater than the preset distance, it is determined to be in the communicable state.
  5. 根据权利要求4所述的方法,其特征在于,所述确定所述电子设备与目标用户的设备之间的间隔距离,包括:The method according to claim 4, wherein the determining the separation distance between the electronic device and the device of the target user comprises:
    获取根据所述电子设备和所述目标用户的设备的定位信息计算出的所述间隔距离;Acquiring the separation distance calculated according to the positioning information of the electronic device and the device of the target user;
    或者,尝试与所述目标用户的设备建立预设近场无线连接,当所述近场无线连接建立成功时判定为所述间隔距离不大于所述预设距离;Or determining to establish a preset near field wireless connection with the device of the target user, and determining that the separation distance is not greater than the preset distance when the near field wireless connection is successfully established;
    或者,根据检测到的与所述目标用户的设备建立的预设近场无线连接的接收信号强度指示RSSI,确定所述间隔距离,其中所述间隔距离与所述接收信号强度指示呈反相关。Or determining, according to the detected received signal strength indication RSSI of the preset near field wireless connection established with the device of the target user, wherein the separation distance is inversely related to the received signal strength indication.
  6. 根据权利要求2或3所述的方法,其特征在于,所述确定所述第一对讲模块与目标用户的设备上装配的第二对讲模块之间的通讯状态,包括: The method according to claim 2 or 3, wherein the determining the communication status between the first intercom module and the second intercom module installed on the device of the target user comprises:
    通过所述第一对讲模块向所述第二对讲模块发送询问消息;Sending an inquiry message to the second intercom module by using the first intercom module;
    当接收到所述第二对讲模块返回的确认消息时,确定处于所述可通讯状态。When receiving the confirmation message returned by the second intercom module, it is determined that the communication state is in the communication state.
  7. 根据权利要求6所述的方法,其特征在于,The method of claim 6 wherein:
    所述确认消息由所述第二对讲模块在接收到所述询问消息后,自动返回至所述第一对讲模块;The confirmation message is automatically returned by the second intercom module to the first intercom module after receiving the inquiry message;
    或者,在所述目标用户的设备根据所述第二对讲模块接收到的所述确认消息向所述目标用户进行询问提示后,所述确认消息由所述第二对讲模块根据所述目标用户执行的确认操作而返回至所述第一对讲模块。Or after the device of the target user sends an inquiry prompt to the target user according to the confirmation message received by the second intercom module, the confirmation message is used by the second intercom module according to the target. The user performs a confirmation operation and returns to the first intercom module.
  8. 根据权利要求1所述的方法,其特征在于,还包括以下至少之一:The method of claim 1 further comprising at least one of the following:
    当通过所述第一对讲模块发出所述待发送通讯语音时,若所述待发送通讯语音未被成功发送,将所述待发送通讯语音生成为语音类型的即时通讯消息,并采用即时通讯方式发出所述待发送通讯语音;When the communication voice to be sent is sent by the first intercom module, if the to-be-sent communication voice is not successfully sent, the to-be-sent communication voice is generated as a voice type instant messaging message, and instant messaging is adopted. Sending the to-be-sent communication voice in a manner;
    当采用即时通讯方式发出所述待发送通讯语音时,若所述待发送通讯语音未被成功发送,通过所述第一对讲模块发出所述待发送通讯语音。When the to-be-sent communication voice is sent by means of instant messaging, if the to-be-sent communication voice is not successfully transmitted, the to-be-sent communication voice is sent by the first intercom module.
  9. 根据权利要求1所述的方法,其特征在于,所述将获得的用户输入内容生成为相应的待发送通讯语音,包括以下至少之一:The method according to claim 1, wherein the obtained user input content is generated as a corresponding communication voice to be transmitted, including at least one of the following:
    当所述用户输入内容包含语音数据时,将所述语音数据生成为所述待发送通讯语音;When the user input content includes voice data, the voice data is generated as the to-be-sent communication voice;
    当所述用户输入内容包含文本消息时,将所述文本消息进行语音转换为所述待发送通讯语音。When the user input content includes a text message, the text message is voice converted into the to-be-sent communication voice.
  10. 一种通讯方法,其特征在于,包括:A communication method, comprising:
    当电子设备上运行的即时通讯应用的客户端检测到针对目标用户的通讯需求时,通过所述电子设备上装配的第一对讲模块发出针对所述目标用户的设备的询问消息;When the client of the instant messaging application running on the electronic device detects the communication requirement for the target user, an inquiry message for the device of the target user is sent by the first intercom module installed on the electronic device;
    当接收到所述目标用户的设备上装配的第二对讲模块返回的确认消息时,将所述客户端上的模式切换选项设置为可触发状态;其中,当所述模式切换选项被触发时,所述客户端在即时通讯模式与所述对讲模式之间实现模式切换。Setting a mode switching option on the client to a triggerable state when receiving a confirmation message returned by the second intercom module installed on the target user's device; wherein, when the mode switching option is triggered The client implements mode switching between the instant messaging mode and the intercom mode.
  11. 一种通讯方法,其特征在于,包括:A communication method, comprising:
    通过第一电子设备上运行的即时通讯应用的第一客户端,检测所述电子设备上装配的第一对讲模块接收到的语音消息;Detecting, by the first client of the instant messaging application running on the first electronic device, a voice message received by the first intercom module mounted on the electronic device;
    当所述语音消息来自第二电子设备上运行的所述即时通讯应用的第二客户端,且所 述语音消息由所述第二电子设备上装配的第二对讲模块发出时,将所述第一客户端配置为针对所述第二客户端的对讲模式。When the voice message is from a second client of the instant messaging application running on the second electronic device, and When the voice message is sent by the second intercom module installed on the second electronic device, the first client is configured as an intercom mode for the second client.
  12. 一种通讯方法,其特征在于,包括:A communication method, comprising:
    通过第一电子设备上运行的即时通讯应用的第一客户端,检测所述电子设备上装配的第一对讲模块接收到的通讯消息;And detecting, by the first client of the instant messaging application running on the first electronic device, a communication message received by the first intercom module mounted on the electronic device;
    当所述通讯消息来自第二电子设备上运行的所述即时通讯应用的第二客户端,且所述通讯消息由所述第二电子设备上装配的第二对讲模块发出时,确定所述通讯消息的消息类型;Determining that the communication message is from a second client of the instant messaging application running on the second electronic device, and the communication message is sent by a second intercom module installed on the second electronic device The message type of the communication message;
    当所述消息类型为语音类型时,播放所述通讯消息;当所述消息类型为文本类型时,对所述通讯消息进行语音转换为语音消息,并播放转换后的语音消息。When the message type is a voice type, the communication message is played; when the message type is a text type, the communication message is voice converted into a voice message, and the converted voice message is played.
  13. 一种通讯装置,其特征在于,包括:A communication device, comprising:
    生成单元,通过电子设备上运行的即时通讯应用的客户端,将获得的用户输入内容生成为相应的待发送通讯语音;The generating unit generates, by using a client of the instant messaging application running on the electronic device, the obtained user input content as a corresponding communication voice to be sent;
    第一发送单元,当所述客户端被配置为即时通讯模式时,将所述待发送通讯语音生成为语音类型的即时通讯消息,并发出所述语音类型的即时通讯消息;a first sending unit, when the client is configured to be in an instant messaging mode, generating the to-be-sent communication voice as a voice type instant messaging message, and issuing the voice type instant messaging message;
    第二发送单元,当所述客户端被配置为对讲模式时,通过所述电子设备上装配的第一对讲模块发出所述待发送通讯语音。And a second sending unit, when the client is configured to be in an intercom mode, sending the to-be-sent communication voice by using a first intercom module installed on the electronic device.
  14. 一种通讯装置,其特征在于,包括:A communication device, comprising:
    询问单元,当电子设备上运行的即时通讯应用的客户端检测到针对目标用户的通讯需求时,通过所述电子设备上装配的第一对讲模块发出针对所述目标用户的设备的询问消息;The inquiry unit, when the client of the instant messaging application running on the electronic device detects the communication requirement for the target user, sends an inquiry message for the device of the target user through the first intercom module installed on the electronic device;
    设置单元,当接收到所述目标用户的设备上装配的第二对讲模块返回的确认消息时,将所述客户端上的模式切换选项设置为可触发状态;其中,当所述模式切换选项被触发时,所述客户端在即时通讯模式与所述对讲模式之间实现模式切换。a setting unit, when receiving a confirmation message returned by the second intercom module installed on the device of the target user, setting a mode switching option on the client to a triggerable state; wherein, when the mode switching option is When triggered, the client implements mode switching between the instant messaging mode and the intercom mode.
  15. 一种通讯装置,其特征在于,包括:A communication device, comprising:
    检测单元,通过第一电子设备上运行的即时通讯应用的第一客户端,检测所述电子设备上装配的第一对讲模块接收到的语音消息;The detecting unit detects, by the first client of the instant messaging application running on the first electronic device, the voice message received by the first intercom module installed on the electronic device;
    配置单元,当所述语音消息来自第二电子设备上运行的所述即时通讯应用的第二客户端,且所述语音消息由所述第二电子设备上装配的第二对讲模块发出时,将所述第一客户端配置为针对所述第二客户端的对讲模式。 a configuration unit, when the voice message is from a second client of the instant messaging application running on the second electronic device, and the voice message is sent by a second intercom module installed on the second electronic device, The first client is configured as an intercom mode for the second client.
  16. 一种通讯装置,其特征在于,包括:A communication device, comprising:
    检测单元,通过第一电子设备上运行的即时通讯应用的第一客户端,检测所述电子设备上装配的第一对讲模块接收到的通讯消息;The detecting unit detects, by the first client of the instant messaging application running on the first electronic device, the communication message received by the first intercom module installed on the electronic device;
    确定单元,当所述通讯消息来自第二电子设备上运行的所述即时通讯应用的第二客户端,且所述通讯消息由所述第二电子设备上装配的第二对讲模块发出时,确定所述通讯消息的消息类型;a determining unit, when the communication message is from a second client of the instant messaging application running on the second electronic device, and the communication message is sent by a second intercom module installed on the second electronic device, Determining a message type of the communication message;
    播放单元,当所述消息类型为语音类型时,播放所述通讯消息;当所述消息类型为文本类型时,对所述通讯消息进行语音转换为语音消息,并播放转换后的语音消息。 a playing unit, when the message type is a voice type, playing the communication message; when the message type is a text type, converting the communication message into a voice message, and playing the converted voice message.
PCT/CN2017/111802 2016-12-01 2017-11-20 Communication method and apparatus WO2018099284A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611093984.8 2016-12-01
CN201611093984.8A CN108134730A (en) 2016-12-01 2016-12-01 The means of communication and device

Publications (1)

Publication Number Publication Date
WO2018099284A1 true WO2018099284A1 (en) 2018-06-07

Family

ID=62241201

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/111802 WO2018099284A1 (en) 2016-12-01 2017-11-20 Communication method and apparatus

Country Status (2)

Country Link
CN (1) CN108134730A (en)
WO (1) WO2018099284A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933653A (en) * 2018-09-19 2020-03-27 Oppo广东移动通信有限公司 Message transmission method, device, terminal and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639901B (en) * 2019-01-17 2021-07-20 深圳市沃特沃德股份有限公司 Method and device for switching talkback mode, storage medium and computer equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2768320Y (en) * 2004-06-25 2006-03-29 康佳集团股份有限公司 Multifunctional mobile phone
CN1829205A (en) * 2005-03-05 2006-09-06 腾讯科技(深圳)有限公司 Communication method and apparatus for integrating multi network
CN101170745A (en) * 2007-11-22 2008-04-30 腾讯科技(深圳)有限公司 Bluetooth-based instant communication method, server, system and terminal
US20100217814A1 (en) * 2009-02-18 2010-08-26 Bert Strueber Apparatus and method for enabling network-compatible cameras to operate in instant messaging networks
CN103414500A (en) * 2013-07-22 2013-11-27 刘大可 Interactive method between Bluetooth earphone and instant messaging software of terminal and Bluetooth earphone
CN104244197A (en) * 2014-07-24 2014-12-24 曾海坚 Mobile terminal and mobile instant communication method and system used for group communication
CN105307227A (en) * 2014-06-10 2016-02-03 中兴通讯股份有限公司 Communication service processing method and device in circuit switching domain

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101860620A (en) * 2010-05-06 2010-10-13 中兴通讯股份有限公司 Mobile terminal and communication method thereof
CN103856603A (en) * 2012-11-28 2014-06-11 辽源环宇佳讯通讯技术有限公司 Method, device and system of controlling mobile phone talkback based on GPS position information

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2768320Y (en) * 2004-06-25 2006-03-29 康佳集团股份有限公司 Multifunctional mobile phone
CN1829205A (en) * 2005-03-05 2006-09-06 腾讯科技(深圳)有限公司 Communication method and apparatus for integrating multi network
CN101170745A (en) * 2007-11-22 2008-04-30 腾讯科技(深圳)有限公司 Bluetooth-based instant communication method, server, system and terminal
US20100217814A1 (en) * 2009-02-18 2010-08-26 Bert Strueber Apparatus and method for enabling network-compatible cameras to operate in instant messaging networks
CN103414500A (en) * 2013-07-22 2013-11-27 刘大可 Interactive method between Bluetooth earphone and instant messaging software of terminal and Bluetooth earphone
CN105307227A (en) * 2014-06-10 2016-02-03 中兴通讯股份有限公司 Communication service processing method and device in circuit switching domain
CN104244197A (en) * 2014-07-24 2014-12-24 曾海坚 Mobile terminal and mobile instant communication method and system used for group communication

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110933653A (en) * 2018-09-19 2020-03-27 Oppo广东移动通信有限公司 Message transmission method, device, terminal and storage medium
CN110933653B (en) * 2018-09-19 2023-07-18 Oppo广东移动通信有限公司 Message transmission method, device, terminal and storage medium

Also Published As

Publication number Publication date
CN108134730A (en) 2018-06-08

Similar Documents

Publication Publication Date Title
US11452153B2 (en) Pairing and gateway connection using sonic tones
US11012920B2 (en) Wireless network host in silent mode
CN110622123B (en) Display method and device
WO2018108035A1 (en) Information processing and virtual resource exchange method, apparatus, and device
CN110278550B (en) Portable device, portable apparatus, and computer-readable medium
US20070202856A1 (en) Automatic quality of service based resource allocation
KR101595762B1 (en) Method for controlling remote of portable terminal and system for the same
US20160295457A1 (en) Method and apparatus for transmitting data in network system, and data transmission system
KR101646379B1 (en) Communication device of vehicle
KR102333127B1 (en) Method for acquiring user information and an electronic device thereof
CN111416867A (en) Method for processing messages between different devices, server and computer storage medium
WO2013127163A1 (en) Call terminal enrollment method and device
WO2021169472A1 (en) Voice call transfer method and electronic device
TW201933832A (en) Communication method and apparatus, and electronic device
TW201419889A (en) Information sharing method and system using the same
WO2016065977A1 (en) Call processing method and device, communication terminal and server
CA3090990A1 (en) Pairing and gateway connection using sonic tones
US10609272B2 (en) Method, device and computer readable medium for communication using smart video cameras
WO2018099284A1 (en) Communication method and apparatus
CN109413120B (en) Communication method and device, electronic equipment and server
CN104092720A (en) Playlist sharing method and device
CN108337306A (en) Equipment finding method, device, system, terminal and storage medium
WO2016169441A1 (en) Message pushing method and apparatus
TWI778750B (en) System and method of dispatching an instant message in silent mode
WO2024109445A1 (en) Help-seeking system and method, electronic device, and computer-readable 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: 17875165

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17875165

Country of ref document: EP

Kind code of ref document: A1