Nothing Special   »   [go: up one dir, main page]

WO2017036365A1 - 一种语音通信处理方法、电子设备、系统及存储介质 - Google Patents

一种语音通信处理方法、电子设备、系统及存储介质 Download PDF

Info

Publication number
WO2017036365A1
WO2017036365A1 PCT/CN2016/097033 CN2016097033W WO2017036365A1 WO 2017036365 A1 WO2017036365 A1 WO 2017036365A1 CN 2016097033 W CN2016097033 W CN 2016097033W WO 2017036365 A1 WO2017036365 A1 WO 2017036365A1
Authority
WO
WIPO (PCT)
Prior art keywords
account
voice communication
application
voice
server side
Prior art date
Application number
PCT/CN2016/097033
Other languages
English (en)
French (fr)
Inventor
陈晓波
李斌
文孝木
奚驰
王俊山
罗程
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Priority to MYPI2017704195A priority Critical patent/MY195810A/en
Priority to KR1020177033642A priority patent/KR102040755B1/ko
Priority to JP2017558965A priority patent/JP6522159B2/ja
Publication of WO2017036365A1 publication Critical patent/WO2017036365A1/zh
Priority to US15/806,544 priority patent/US10412227B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/56Arrangements for connecting several subscribers to a common circuit, i.e. affording conference facilities
    • H04M3/568Arrangements for connecting several subscribers to a common circuit, i.e. affording conference facilities audio processing specific to telephonic conferencing, e.g. spatial distribution, mixing of participants
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0861Network architectures or network communication protocols for network security for authentication of entities using biometrical features, e.g. fingerprint, retina-scan
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0892Network architectures or network communication protocols for network security for authentication of entities by using authentication-authorization-accounting [AAA] servers or protocols
    • 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/1073Registration or de-registration
    • 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/40Support for services or applications
    • H04L65/403Arrangements for multi-party communication, e.g. for conferences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • H04M3/56Arrangements for connecting several subscribers to a common circuit, i.e. affording conference facilities
    • H04M3/563User guidance or feature selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2203/00Aspects of automatic or semi-automatic exchanges
    • H04M2203/50Aspects of automatic or semi-automatic exchanges related to audio conference
    • H04M2203/5009Adding a party to an existing conference
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2203/00Aspects of automatic or semi-automatic exchanges
    • H04M2203/60Aspects of automatic or semi-automatic exchanges related to security aspects in telephonic communication systems
    • H04M2203/6009Personal information, e.g. profiles or personal directories being only provided to authorised persons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2203/00Aspects of automatic or semi-automatic exchanges
    • H04M2203/60Aspects of automatic or semi-automatic exchanges related to security aspects in telephonic communication systems
    • H04M2203/6054Biometric subscriber identification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2203/00Aspects of automatic or semi-automatic exchanges
    • H04M2203/60Aspects of automatic or semi-automatic exchanges related to security aspects in telephonic communication systems
    • H04M2203/6072Authentication using challenger response
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2203/00Aspects of automatic or semi-automatic exchanges
    • H04M2203/60Aspects of automatic or semi-automatic exchanges related to security aspects in telephonic communication systems
    • H04M2203/6081Service authorization mechanisms

Definitions

  • the present invention relates to communication management technologies in the field of information processing, and in particular, to a voice communication processing method, an electronic device, a system, and a storage medium.
  • an object of the embodiments of the present invention is to provide a voice communication processing method, an electronic device, a system, and a storage medium, which can solve at least the above problems in the prior art.
  • the embodiment of the invention provides a voice communication processing method, which is applied to an electronic device, and the method includes:
  • Controlling by using the first application of the first account, a voice activation request to the server side, so that the server side determines that the first account is a legal account according to the voice activation request, and assigns a corresponding verification code to the first account.
  • the operation of the service interface invoking the voice communication is controlled based on the authentication result fed back by the server side.
  • An embodiment of the present invention provides an electronic device, including:
  • An application management unit configured to control a first application that uses the first account to initiate a voice activation request to the server side, receive a verification code corresponding to the first account returned by the server side, and send an authorization interface that invokes voice communication by using the first application.
  • An authentication request including the verification code to the server side;
  • the voice communication management unit is configured to send a sound request including the verification code to the server side by using an authorization interface of the voice communication, and control the operation of the service interface that invokes the voice communication based on the authentication result fed back by the server side .
  • the embodiment of the invention further provides a voice communication processing system, the system comprising:
  • the electronic device is configured to control the first application that uses the first account to initiate a voice activation request to the server side, and receive the verification code corresponding to the first account returned by the server side;
  • the authentication request of the verification code is sent to the server side, and the operation of calling the service interface of the voice communication is controlled based on the authentication result fed back by the server side;
  • a server configured to determine, according to the voice activation request, that the first account is a legal account, and allocate a corresponding verification code to the first account; and use the first account based on the verification code included in the authentication request Whether the first application can invoke the service interface of the voice communication for authentication, and obtain an authentication result.
  • Embodiments of the present invention also provide a storage medium including a set of instructions that, when executed, cause at least one processor to perform operations including:
  • Controlling by using the first application of the first account, a voice activation request to the server side, so that the server side determines that the first account is a legal account according to the voice activation request, and assigns a corresponding verification code to the first account.
  • the operation of the service interface invoking the voice communication is controlled based on the authentication result fed back by the server side.
  • the voice communication processing method, the electronic device, the system, and the storage medium provided by the embodiment of the present invention can control the first application that uses the first account to initiate a voice activation request to the server side, so that the server side activates according to the voice. Determining that the first account is a legal account, and receiving a verification code corresponding to the first account returned by the server side; sending an authentication request including the verification code to the server side by using an authorization interface of the first application to invoke the voice communication And controlling, according to the authentication result fed back by the server side, an operation of calling the service interface of the voice communication.
  • FIG. 1 is a schematic flowchart 1 of a voice communication processing method according to an embodiment of the present invention.
  • FIG. 2 is a second schematic flowchart of a voice communication processing method according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart 3 of a voice communication processing method according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an operation scenario according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart 4 of a voice communication processing method according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart 5 of a voice communication processing method according to an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart 6 of a voice communication processing method according to an embodiment of the present invention.
  • FIG. 8 is a first schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 9 is a second schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 10 is a third schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a system structure according to an embodiment of the present invention.
  • the embodiment of the invention provides a voice communication processing method, which is applied to an electronic device, as shown in FIG. 1 , and includes:
  • Step 11 Control the first application that uses the first account to initiate a voice activation request to the server side, so that the server side determines that the first account is a legal account according to the voice activation request, and assigns a corresponding account to the first account. Verification code;
  • Step 12 Receive a verification code corresponding to the first account returned by the server side;
  • Step 13 Send an authentication request including the verification code to the server side by using an authorization interface of the first application to invoke the voice communication, so that the server side performs verification on the first account based on the verification code included in the authentication request. Whether the first application invokes the service interface of the voice communication to perform authentication, and obtains an authentication result;
  • Step 14 Control the operation of the service interface that invokes the voice communication based on the authentication result fed back by the server side.
  • the electronic device may be a smart phone, a tablet computer, a desktop computer, or the like.
  • At least one third-party application ie, the first application
  • the third-party application can be an application having a multi-party voice communication requirement such as a game.
  • the first application may be any one of at least one third party application installed in the electronic device.
  • the user installed Application A, Application B, and Application C, which is currently enabled.
  • Application A, application A can be used as the first application described in this embodiment.
  • the first account may be an account used by the user to log in to the first application; the manner of obtaining the first account may be the registration of the server of the first application corresponding to the server by the first application.
  • the first account may include information such as an account name, an account password, and the like of the user logging in to the first application.
  • the initiating the voice activation request may be: after the user logs in the third-party application, the first account is used to send the voice activation request, and the voice activation request includes at least the first application. Identification information, first account.
  • the identification information of the first application may be information such as the name and/or number of the first application.
  • the determining, by the server side, that the first account is a legal account according to the voice activation request may be: obtaining, according to the identifier information of the first application, a corresponding legal account list, if the first account is in the office In the list of legal accounts, it is determined that the first account is a legitimate account.
  • the server side is not necessarily a server, but may be a server cluster composed of multiple servers. The operation of verifying the validity of the account may be performed by the server corresponding to the first application on the server side.
  • assigning a corresponding verification code to the first account may be an operation performed by a voice communication authentication platform on the server side, and the voice communication authentication platform may be an SDK open platform.
  • the method for obtaining the verification code may notify the voice communication authorization server of the first application to perform verification code allocation.
  • the present invention can bind the first application to the service interface of the corresponding voice communication by using the verification code, and the specific operation is to send an authentication request including the verification code by using the authorization interface of the first application to invoke the voice communication.
  • the server side authenticates based on the authentication request and obtains the authentication result.
  • the authentication result may include at least a first account and an authorized account.
  • the authentication result based on the server side feedback is used to invoke the language.
  • the operation of the service interface of the audio communication is controlled, including:
  • the first application that uses the first account is used to invoke the service interface of the voice communication to perform voice communication processing. That is to say, when the authentication result indicates that the authentication is passed, the first application, that is, the third-party application, obtains the right to use the voice communication server interface.
  • the authorization interface of the voice communication and the service interface of the voice communication in the embodiment are based on the same software development kit, for example, may be a software development kit (SDK), and a specific interface is implemented.
  • SDK software development kit
  • Table 1-3 it can be seen that since the same software development kit is used for all third-party applications in the electronic device, the interface complexity of the third-party application for multi-party voice communication is greatly reduced, and the interface implementation is simple and reduced. The difficulty of adapting third-party applications.
  • Step 21 When the third-party application is used for the first time, it needs to request a verification code (Code) from its own background for authentication activation;
  • Step 22 The third-party application performs validity verification of the account on the terminal that requests the verification code (Code);
  • Step 23 The third-party application background sends a code request to the background of the SDK open platform (the WeChat phone book background) through the https request, and the https request will bring the ClientID information;
  • Step 24 The SDK open platform background allocation code is returned to the third-party application background, and the Code and ClientID are temporarily associated;
  • Step 25 The third-party application returns a code to the third-party application terminal in the background;
  • Step 26 The third-party application invokes the reqAuth interface of the SDK, and passes the Code and the ClientID, and the request is sent to the background of the SDK open platform for authentication verification;
  • Step 27 The SDK open platform background verifies whether the received Code and ClientID match.
  • Step 28 The SDK open platform background verification code matches the ClientID, and assigns an authorized account associated with the ClientID to the third-party application, and returns it to the SDK;
  • Step 29 The SDK maintains the received authorized account, and the callback informs the third party that the application authentication is successful. After the authentication is successfully activated, a multi-person voice call can be initiated.
  • the first application that uses the first account can be controlled to initiate a voice activation request to the server side, so that the server side determines that the first account is a legal account according to the voice activation request, and receives the Determining a verification code corresponding to the first account returned by the server side; sending an authentication request including the verification code to the server side by using the authorization interface of the first application to invoke the voice communication, and calling the authentication result based on the feedback from the server side
  • the operation of the service interface of the voice communication is controlled.
  • the embodiment of the invention provides a voice communication processing method, which is applied to an electronic device, as shown in FIG. 1 , and includes:
  • Step 11 Control the first application that uses the first account to initiate a voice activation request to the server side, so that the server side determines that the first account is a legal account according to the voice activation request, and assigns a corresponding account to the first account. Verification code;
  • Step 12 Receive a verification code corresponding to the first account returned by the server side;
  • Step 13 Send an authentication request including the verification code to the server side by using an authorization interface of the first application to invoke the voice communication, so that the server side performs verification on the first account based on the verification code included in the authentication request. Whether the first application invokes the service interface of the voice communication to perform authentication, and obtains an authentication result;
  • Step 14 Control the operation of the service interface that invokes the voice communication based on the authentication result fed back by the server side.
  • the electronic device may be a smart phone, a tablet computer, a desktop computer, or the like.
  • At least one third-party application (corresponding to the aforementioned first application) can be installed and run in the electronic device, and the third-party application can be an application having a multi-party voice communication requirement such as a game.
  • the first application may be any one of at least one third party application installed in the electronic device.
  • the user A, the application B, and the application C are installed. If the application A is currently enabled, the application A can be used as the first application in the embodiment.
  • the first account may be an account used by the user to log in to the first application; the manner of obtaining the first account may be the registration of the server of the first application corresponding to the server by the first application.
  • the first account may include information such as an account name, an account password, and the like of the user logging in to the first application.
  • the initiating the voice activation request may be: after the user logs in the third-party application, the first account is used to send the voice activation request, and the voice activation request includes at least the first application. Identification information, first account.
  • the identification information of the first application may be information such as the name and/or number of the first application.
  • the determining, by the server side, that the first account is a legal account according to the voice activation request may be: obtaining, according to the identifier information of the first application, a corresponding legal account list, if the first account is in the office In the list of legal accounts, it is determined that the first account is a legitimate account.
  • the server side is not necessarily a server, but may be a server cluster composed of multiple servers. The operation of verifying the validity of the account may be performed by the server corresponding to the first application on the server side.
  • assigning a corresponding verification code to the first account may be an operation performed by a voice communication authentication platform on the server side, and the voice communication authentication platform may be an SDK open platform.
  • the method for obtaining the verification code may notify the voice communication authorization server of the first application to perform verification code allocation.
  • the present invention can bind the first application to the service interface of the corresponding voice communication by using the verification code, and the specific operation is to send an authentication request including the verification code by using the authorization interface of the first application to invoke the voice communication.
  • the server side authenticates based on the authentication request and obtains the authentication result.
  • the authentication result may include at least a first account and an authorized account.
  • the server-side feedback-based authentication result controls the operation of the service interface that invokes the voice communication, and includes: when the authentication result fed back by the server side represents the authentication pass And controlling, by using the first application of the first account, to invoke a service interface of the voice communication to perform voice communication processing. That is to say, when the authentication result indicates that the authentication is passed, the first application, that is, the third-party application, obtains the right to use the voice communication server interface.
  • the authorization interface of the voice communication and the service interface of the voice communication in the embodiment are based on the same software development kit, for example, may be a software development kit (SDK).
  • SDK software development kit
  • control uses the first application of the first account to invoke the service interface of the voice communication to perform voice communication processing, including:
  • the first account controlling the first application obtains the authorization of the voice communication interface based on the authorization identifier, and performs voice data interaction through the service interface of the voice communication.
  • the method for establishing a voice communication group in the operation of the voice communication in the embodiment is described below with reference to FIG. 3, where the first account that controls the first application obtains the voice based on the authorization identifier.
  • Authorization of the communication interface, and interaction of voice data through the service interface of the voice communication including:
  • Step 31 Control an operation of initiating the first voice communication by using the first application of the first account.
  • Step 32 Generate a first voice communication request according to the first voice communication operation, where the first voice communication request includes an authorization identifier of the first account and a communication identifier of the first voice communication;
  • Step 33 Send the first voice communication request to the server side, so that the server side generates a first according to the authorization identifier of the first account and the communication identifier of the first voice communication in the first voice communication request. a voice communication group, and notifying the first application in the electronic device that uses the first account to join the first voice communication group.
  • the method for initiating the first voice communication operation may be a button for making a call by clicking through the operation interface, and detecting that the button is clicked to determine the operation of initiating the first voice communication operation, as shown in FIG. 4, assuming the current first application.
  • the display interface 41 in which the button 42 for voice communication is displayed, the user can click the button 42 as the first voice communication operation.
  • the generating the first voice communication request according to the first voice communication operation may be: generating identifier information including at least the first application, a name of the first account, an authorization identifier of the first account, and a communication identifier of the first voice communication.
  • the communication identifier of the first voice communication may be a unique identifier (UniqueID).
  • the first voice communication operation is to characterize a voice communication operation currently initiated by the user.
  • the sending the first voice communication request to the server side may be: sending the first voice communication request to the server side by using a service interface of voice communication.
  • the generating, by the server side, the first voice communication group based on the first voice communication request may be: determining, according to the identifier information of the first application in the first voice communication request, the name of the first account, the first account The authorization identifier and the communication identifier of the first voice communication, generate a first voice communication group for the first voice communication request, and generate identification information for the voice communication group; it can be understood that the first voice The identification information of the communication group corresponds to the unique identifier of the communication identifier of the first voice communication.
  • the embodiment may further provide an operation method for performing a call based on the established first voice communication group.
  • the method further includes:
  • Step 51 Receive a notification that the first application that uses the second account sent by the server side joins the first voice communication group, where the second account is different from the electronic device.
  • Step 52 Control the voice data to be collected based on the notification, and send the collected voice data to the first application using the second account in the first voice communication group by using the server side;
  • Step 53 Acquire voice data shared by the first application in the first voice communication group and use the second account from the server side, and output the voice data.
  • Step 52 may be performed before step 53; or step 53 may be performed first.
  • the first application that uses the second account may log in to the first application by using an electronic account by using a second account by other users than the electronic device described in this embodiment.
  • the above-mentioned voice data collection may be performed to enable voice collection of the microphone of the electronic device. Additionally, the data of the voice data may be played through a speaker of the electronic device.
  • the embodiment may further provide a process for ending the call, as shown in FIG. 6, the method further includes:
  • Step 61 Control an operation of ending the first voice communication by using the first application of the first account.
  • Step 62 Generate, according to the operation of ending the first voice communication, a first voice communication end request including an authorization identifier of the first account and a communication identifier of the first voice communication;
  • Step 63 Send the first voice communication end request to the server side, so that the server side will use according to the authorization identifier of the first account and the communication identifier of the first voice communication in the first voice communication request.
  • the first application of the first account is deleted from the corresponding first voice communication group.
  • the first voice communication end request includes at least the communication identifier of the first voice communication and the authorization identifier of the first account.
  • the identifier information of the first application and the name of the first account may be included.
  • the electronic device side may control itself to turn off the voice collection device, such as turning off the microphone.
  • the following provides a description of the voice communication scenario provided by the embodiment in conjunction with FIG. 7 , and shows an interface call form of joining, exiting, speaking, and changing members of a multi-person call, and an interaction process with the SDK and the multi-person voice server, and the specific steps are as follows: :
  • Step 701 The user A1 ⁇ An of the third-party application initiates the operation of the first voice communication, and invokes the enterMultiTalk interface according to the initiated operation of the first voice communication, and transmits the same unique unique ID;
  • Step 702 The service interface of the SDK voice communication sends a first voice communication request to the multi-person voice server, and the multi-person voice server allocates a unique group ID for the modified call (the server maintains the mapping relationship between the uniqueID and the groupID);
  • Step 703 The service interface of the SDK voice communication receives the enterMultiTalkResp response, generates the first voice communication group, and caches the group ID brought by the server, and the value is transparent to the third-party application;
  • Step 704 The service interface of the SDK voice communication is notified by the onEnterMultiTalk interface to notify the third-party application that the multi-person call is successful.
  • Step 705 The multi-person voice server notifies all the people who have successfully joined the multi-person call when receiving the new Enter request to join the first voice communication group.
  • Step 706 The SDK notifies the third-party application that the member change notification is notified by using the onMemberChange interface callback.
  • Step 707 The SDK checks that the number of members of the current multi-person call exceeds two, and the audio device is started to start collecting and playing voice data.
  • Step 708 The SDK notifies the third-party application through the onMultiTalkReady interface callback to start talking with other members for voice communication;
  • Step 709 The third-party application prepares to exit the multi-person call by calling the exitMutiTalk interface.
  • Step 710 The SDK sends an end first voice communication request (exitMultiTalkReq request) to the multi-person voice server;
  • Step 711 The multi-person voice server notifies all the people who have successfully joined the multi-person call when the exit request is made;
  • Step 712 The SDK receives an exitMultiTalkResp response result.
  • Step 713 The SDK notifies the third-party application to exit the multi-person call successfully through the onExitMultiTalk interface callback;
  • Step 714 Other members who have joined the multi-person call will receive a callback for onMemberChange Notice.
  • the first application that uses the first account can be controlled to initiate a voice activation request to the server side, so that the server side determines that the first account is a legal account according to the voice activation request, and receives the Determining a verification code corresponding to the first account returned by the server side; sending an authentication request including the verification code to the server side by using the authorization interface of the first application to invoke the voice communication, and calling the authentication result based on the feedback from the server side
  • the operation of the service interface of the voice communication is controlled.
  • An embodiment of the present invention provides an electronic device, as shown in FIG. 8, including:
  • the application management unit 81 is configured to control a first application that uses the first account to initiate a voice activation request to the server side, receive a verification code corresponding to the first account returned by the server side, and invoke an authorization interface of the voice communication by using the first application. Sending an authentication request including the verification code to the server side;
  • the voice communication management unit 82 is configured to send a sound request including the verification code to the server side by using an authorization interface of the voice communication, and perform an operation of calling the service interface of the voice communication based on the authentication result fed back by the server side. control.
  • the electronic device may be a smart phone, a tablet computer, a desktop computer, or the like.
  • At least one third-party application (corresponding to the aforementioned first application) can be installed and run in the electronic device, and the third-party application can be an application having a multi-party voice communication requirement such as a game.
  • the first application may be any one of at least one third party application installed in the electronic device.
  • the user installed Application A, Application B, and Application C, which is currently enabled.
  • Application A, application A can be used as the first application described in this embodiment.
  • the first account may be an account used by the user to log in to the first application; the manner of obtaining the first account may be the registration of the server of the first application corresponding to the server by the first application.
  • the first account may include information such as an account name, an account password, and the like of the user logging in to the first application.
  • the initiating the voice activation request may be: after the user logs in the third-party application, the first account is used to send the voice activation request, and the voice activation request includes at least the first application. Identification information, first account.
  • the identification information of the first application may be information such as the name and/or number of the first application.
  • the determining, by the server side, that the first account is a legal account according to the voice activation request may be: obtaining, according to the identifier information of the first application, a corresponding legal account list, if the first account is in the office In the list of legal accounts, it is determined that the first account is a legitimate account.
  • the server side in this embodiment is not necessarily implemented by only one server, and may be a server cluster composed of multiple servers. The operation of verifying the validity of the account may be performed by the server corresponding to the first application on the server side.
  • assigning a corresponding verification code to the first account may be an operation performed by a voice communication authentication platform on the server side, and the voice communication authentication platform may be an SDK open platform.
  • the method for obtaining the verification code may notify the voice communication authorization server of the first application to perform verification code allocation.
  • the present invention can bind the first application to the service interface of the corresponding voice communication by using the verification code, and the specific operation is to send an authentication request including the verification code by using the authorization interface of the first application to invoke the voice communication.
  • the server side authenticates based on the authentication request and obtains the authentication result.
  • the authentication result may include at least a first account and an authorized account.
  • the voice communication management unit is configured to perform the authentication when the server side feeds back As a result, when the authentication is passed, the first application that uses the first account is used to invoke the service interface of the voice communication to perform voice communication processing.
  • the first application that is, the third-party application, obtains the right to use the voice communication server interface.
  • the authorization interface of the voice communication and the service interface of the voice communication in the embodiment are based on the same software development kit, for example, may be a software development kit (SDK), and related technologies. Compared, the complexity of the voice communication interface is reduced, the interface is simple to implement, and the adaptation difficulty of the third-party application is reduced.
  • SDK software development kit
  • the first application that uses the first account can be controlled to initiate a voice activation request to the server side, so that the server side determines that the first account is a legal account according to the voice activation request, and receives the Determining a verification code corresponding to the first account returned by the server side; sending an authentication request including the verification code to the server side by using the authorization interface of the first application to invoke the voice communication, and calling the authentication result based on the feedback from the server side
  • the operation of the service interface of the voice communication is controlled.
  • An embodiment of the present invention provides an electronic device, as shown in FIG. 9, including:
  • the application management unit 91 is configured to control a first application that uses the first account to initiate a voice activation request to the server side, receive a verification code corresponding to the first account returned by the server side, and invoke an authorization interface of the voice communication by using the first application. Sending an authentication request including the verification code to the server side;
  • the voice communication management unit 92 is configured to send a sound request including the verification code to the server side by using an authorization interface of the voice communication, and call the server based on the authentication result fed back by the server side.
  • the operation of the service interface of the voice communication is controlled.
  • the electronic device may be a smart phone, a tablet computer, a desktop computer, or the like.
  • At least one third-party application (corresponding to the aforementioned first application) can be installed and run in the electronic device, and the third-party application can be an application having a multi-party voice communication requirement such as a game.
  • the first application may be any one of at least one third party application installed in the electronic device.
  • the user A, the application B, and the application C are installed. If the application A is currently enabled, the application A can be used as the first application in the embodiment.
  • the first account may be an account used by the user to log in to the first application; the manner of obtaining the first account may be the registration of the server of the first application corresponding to the server by the first application.
  • the first account may include information such as an account name, an account password, and the like of the user logging in to the first application.
  • the initiating the voice activation request may be: after the user logs in the third-party application, the first account is used to send the voice activation request, and the voice activation request includes at least the first application. Identification information, first account.
  • the identification information of the first application may be information such as the name and/or number of the first application.
  • the determining, by the server side, that the first account is a legal account according to the voice activation request may be: obtaining, according to the identifier information of the first application, a corresponding legal account list, if the first account is in the office In the list of legal accounts, it is determined that the first account is a legitimate account.
  • the server side is not necessarily a server, but may be a server cluster composed of multiple servers. The operation of verifying the validity of the account may be performed by the server corresponding to the first application on the server side.
  • assigning a corresponding verification code to the first account may be an operation performed by a voice communication authentication platform on the server side, and the voice communication authentication platform may be an SDK open platform.
  • the method for obtaining the verification code may be a server connection corresponding to the first application.
  • the voice communication authorization server is known to perform verification code allocation.
  • the present invention can bind the first application to the service interface of the corresponding voice communication by using the verification code, and the specific operation is to send an authentication request including the verification code by using the authorization interface of the first application to invoke the voice communication.
  • the server side authenticates based on the authentication request and obtains the authentication result.
  • the authentication result may include at least a first account and an authorized account.
  • the voice communication management unit in the embodiment is configured to control, when the authentication result of the server side feedback, passes the first application that invokes the voice communication,
  • the service interface performs voice communication processing. That is to say, when the authentication result indicates that the authentication is passed, the first application, that is, the third-party application, obtains the right to use the voice communication server interface.
  • the authorization interface of the voice communication and the service interface of the voice communication in the embodiment are based on the same software development kit, for example, may be a software development kit (SDK).
  • SDK software development kit
  • the voice communication management unit is configured to obtain an authorization identifier for the first account from the authentication result; and the first account that controls the first application obtains the voice based on the authorization identifier.
  • the voice communication management unit is configured to control the first application that uses the first account to initiate the first An operation of voice communication; generating a first voice communication request according to the first voice communication operation, where the first voice communication request includes an authorization identifier of the first account and a communication identifier of the first voice communication; A voice communication request is sent to the server side, and the notification that the first application using the first account fed back by the server side joins the first voice communication group is received.
  • the method for initiating the first voice communication operation may be a button for making a call by clicking through the operation interface, and detecting that the button is clicked to determine the operation of initiating the first voice communication operation, as shown in FIG. 4, assuming the current first application.
  • the display interface 41 in which the button 42 for voice communication is displayed, the user can click the button 42 as the first voice communication operation.
  • the generating the first voice communication request according to the first voice communication operation may be: generating identifier information including at least the first application, a name of the first account, an authorization identifier of the first account, and a communication identifier of the first voice communication.
  • the communication identifier of the first voice communication may be a unique identifier (UniqueID).
  • the first voice communication operation is to characterize a voice communication operation currently initiated by the user.
  • the sending the first voice communication request to the server side may be: sending the first voice communication request to the server side by using a service interface of voice communication.
  • the generating, by the server side, the first voice communication group based on the first voice communication request may be: determining, according to the identifier information of the first application in the first voice communication request, the name of the first account, the first account The authorization identifier and the communication identifier of the first voice communication, generate a first voice communication group for the first voice communication request, and generate identification information for the voice communication group; it can be understood that the first voice The identification information of the communication group corresponds to the unique identifier of the communication identifier of the first voice communication.
  • the embodiment further provides an electronic device that performs a call based on the established first voice communication group.
  • the electronic device further includes:
  • the audio collection unit 93 is configured to collect voice data according to the control of the voice communication management unit;
  • the audio output unit 94 is configured to output voice data according to the control of the voice communication management unit
  • the voice communication management unit 92 is further configured to receive, by the server, a notification that the first application that uses the second account joins the first voice communication group;
  • the second account is an account used for logging in to the first application by using another electronic device different from the electronic device; based on the notification, controlling to collect voice data, and sending the collected voice data through the server side Using the first application of the second account in the first voice communication group; acquiring, from the server side, the first application using the second account in the first voice communication group Share voice data and output.
  • the first application that uses the second account may log in to the first application by using an electronic account by using a second account by other users than the electronic device described in this embodiment.
  • the above-mentioned voice data collection may be performed to enable voice collection of the microphone of the electronic device. Additionally, the data of the voice data may be played through a speaker of the electronic device.
  • the voice communication management unit 92 is further configured to control an operation of ending the first voice communication by using the first application of the first account; and generating, according to the operation of ending the first voice communication a first voice communication end request including an authorization identifier of the first account and a communication identifier of the first voice communication; sending the first voice communication end request to the server side, so that the server side is configured according to the The authorization identifier of the first account and the communication identifier of the first voice communication in a voice communication request are deleted from the corresponding first voice communication group by using the first application of the first account.
  • the first voice communication end request includes at least the communication identifier of the first voice communication and the authorization identifier of the first account.
  • the identifier information of the first application and the name of the first account may be included.
  • the electronic device side may control itself to turn off the voice collection device, such as turning off the microphone.
  • the first application that uses the first account can be controlled to initiate a voice activation request to the server side, so that the server side determines that the first account is a legal account according to the voice activation request, and receives the Determining a verification code corresponding to the first account returned by the server side; sending an authentication including the verification code by using an authorization interface of the first application to invoke voice communication
  • the request is sent to the server side, and based on the authentication result fed back by the server side, the operation of the service interface that invokes the voice communication is controlled.
  • the embodiment of the invention provides a voice communication processing system. As shown in FIG. 11, the system includes:
  • the electronic device 1101 is configured to control a first application that uses the first account to initiate a voice activation request to the server side, receive a verification code corresponding to the first account returned by the server side, and send an authorization interface that invokes the voice communication by using the first application.
  • An authentication request including the verification code is sent to the server side, and the operation of calling the service interface of the voice communication is controlled based on the authentication result fed back by the server side;
  • the server 1102 is configured to determine, according to the voice activation request, that the first account is a legal account, and allocate a corresponding verification code to the first account; and use the verification code included in the authentication request to use the first Whether the first application of the account can invoke the service interface of the voice communication to perform authentication, and obtain an authentication result.
  • the components and functions of the electronic device in this embodiment are the same as those of the electronic device in the third embodiment and the fourth embodiment, and are not described herein.
  • the server may be a server or a server cluster composed of multiple servers.
  • the first application that uses the first account can be controlled to initiate a voice activation request to the server side, so that the server side determines that the first account is a legal account according to the voice activation request, and receives the Determining a verification code corresponding to the first account returned by the server side; sending an authentication including the verification code by using an authorization interface of the first application to invoke voice communication
  • the request is sent to the server side, and based on the authentication result fed back by the server side, the operation of the service interface that invokes the voice communication is controlled.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the above integration
  • the unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the steps of the foregoing method embodiments are included; and the foregoing storage medium includes: a mobile storage device, a read only memory (ROM, Read-Only Memory), random access memory (RAM), disk or optical disk, and other media that can store program code.
  • the storage medium includes a set of instructions that, when executed, cause at least one processor to perform operations including:
  • Controlling by using the first application of the first account, a voice activation request to the server side, so that the server side determines that the first account is a legal account according to the voice activation request, and assigns a corresponding verification code to the first account.
  • the operation of the service interface invoking the voice communication is controlled based on the authentication result fed back by the server side.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Accounting & Taxation (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Power Engineering (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

本发明公开了一种语音通信处理方法、电子设备、系统及存储介质,所述方法包括:控制使用第一账户的第一应用向服务器侧发起语音激活请求,使得所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户,并为所述第一账户分配对应的验证码;接收到所述服务器侧返回的第一账户对应的验证码;通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,使得所述服务器侧基于所述鉴权请求包括的验证码对所述使用第一账户的第一应用是否调用语音通信的服务接口进行鉴权,得到鉴权结果;基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。

Description

一种语音通信处理方法、电子设备、系统及存储介质 技术领域
本发明涉及信息处理领域的通信管理技术,尤其涉及一种语音通信处理方法、电子设备、系统及存储介质。
背景技术
现有通过第三方应用进行多个用户之间的语音通信,会通过第三方应用提供的接口完成多用户之间的语音数据的交互。但是,上述方案中,通常会出现无法提供用户进行语音通信时的安全保障,以及音频集中的游戏类应用,还有可能会存在音频冲突问题。
发明内容
有鉴于此,本发明实施例的目的在于提供一种语音通信处理方法、电子设备、系统及存储介质,能至少解决现有技术存在的上述问题。
本发明实施例提供了一种语音通信处理方法,应用于电子设备,所述方法包括:
控制使用第一账户的第一应用向服务器侧发起语音激活请求,使得所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户,并为所述第一账户分配对应的验证码;
接收到所述服务器侧返回的第一账户对应的验证码;
通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,使得所述服务器侧基于所述鉴权请求包括的验证码对所述使用第一账户的所述第一应用是否能够调用语音通信的服务接口进行鉴权,得到鉴权结果;
基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。
本发明实施例提供了一种电子设备,包括:
应用管理单元,配置为控制使用第一账户的第一应用向服务器侧发起语音激活请求,接收到所述服务器侧返回的第一账户对应的验证码;通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧;
语音通信管理单元,配置为利用语音通信的授权接口发送包含有验证码的健全请求至服务器侧,并基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。
本发明实施例还提供了一种语音通信处理系统,所述系统包括:
电子设备,配置为控制使用第一账户的第一应用向服务器侧发起语音激活请求,接收到所述服务器侧返回的第一账户对应的验证码;通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制;
服务器,配置为根据所述语音激活请求确定所述第一账户为合法账户,并为所述第一账户分配对应的验证码;基于所述鉴权请求包括的验证码对所述使用第一账户的所述第一应用是否能够调用语音通信的服务接口进行鉴权,得到鉴权结果。
本发明实施例还提供了一种存储介质,该存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行包括以下的操作:
控制使用第一账户的第一应用向服务器侧发起语音激活请求,使得所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户,并为所述第一账户分配对应的验证码;
接收到所述服务器侧返回的第一账户对应的验证码;
通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,使得所述服务器侧基于所述鉴权请求包括的验证码对所述使用第一账户的所述第一应用是否能够调用语音通信的服务接口进行鉴权,得到鉴权结果;
基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。
本发明实施例所提供的一种语音通信处理方法、电子设备、系统及存储介质,能够控制使用第一账户的第一应用向服务器侧发起语音激活请求,使得所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户,接收到所述服务器侧返回的第一账户对应的验证码;通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。如此,就能够为第三方应用提供安全的语音通信的服务器接口,提升用户在使用第三方应用是的安全性;另外,由于不使用第三方应用中提供的音频功能,避免了在第三方应用中产生音频冲突问题;并且能够避免不同第三方应用的兼容性问题。
附图说明
图1为本发明实施例语音通信处理方法流程示意图一;
图2为本发明实施例语音通信处理方法流程示意图二;
图3为本发明实施例语音通信处理方法流程示意图三;
图4为本发明实施例操作场景示意图;
图5为本发明实施例语音通信处理方法流程示意图四;
图6为本发明实施例语音通信处理方法流程示意图五;
图7为本发明实施例语音通信处理方法流程示意图六;
图8为本发明实施例电子设备组成结构示意图一;
图9为本发明实施例电子设备组成结构示意图二;
图10为本发明实施例电子设备组成结构示意图三;
图11为本发明实施例系统组成结构示意图。
具体实施方式
下面结合附图及具体实施例对本发明实施例再作进一步详细的说明。
实施例一、
本发明实施例提供了一种语音通信处理方法,应用于电子设备,如图1所示,包括:
步骤11:控制使用第一账户的第一应用向服务器侧发起语音激活请求,使得所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户,并为所述第一账户分配对应的验证码;
步骤12:接收到所述服务器侧返回的第一账户对应的验证码;
步骤13:通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,使得所述服务器侧基于所述鉴权请求包括的验证码对所述使用第一账户的第一应用是否调用语音通信的服务接口进行鉴权,得到鉴权结果;
步骤14:基于服务器侧反馈的鉴权结果,对调用所述语音通信的服务接口的操作进行控制。
本实施例中,所述电子设备可以为智能手机、平板电脑、台式机等设备。所述电子设备中能够安装并运行至少一个第三方应用(即第一应用),所述第三方应用可以为游戏等具有多方语音通信需求的应用。
所述第一应用可以为所述电子设备中安装的至少一个第三方应用中的任意一个。比如,用户安装了应用A、应用B和应用C,当前开启了 应用A则应用A可以作为本实施例中所述第一应用。
所述第一账户可以为用户登录所述第一应用所使用的账户;获取所述第一账户的方式可以为通过第一应用在服务器侧对应的第一应用的服务器进行注册。所述第一账户中具体可以包括有所述用户登录所述第一应用的账户名、账户密码等信息。
所述发起语音激活请求可以为用户通过开启第三方应用,基于第一账户登录第三方应用之后,使用第一账户发送语音激活请求;其中,所述语音激活请求中至少包括有:第一应用的标识信息、第一账户。
第一应用的标识信息可以为第一应用的名称和/或编号等信息。
相应的,所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户可以为:基于所述第一应用的标识信息获取到对应的合法账户列表,若所述第一账户在所述合法账户列表中,则确定所述第一账户为合法账户。可以理解的是,本实施例中所述服务器侧不一定是仅由一台服务器,可以为多台服务器共同组成的服务器集群。上述进行账户合法性验证的操作可以为服务器侧第一应用对应的服务器执行的操作。
另外,为所述第一账户分配对应的验证码可以为由服务器侧的语音通信鉴权平台执行的操作,语音通信鉴权平台可以为SDK开放平台。
优选地,获取到所述验证码的方法可以为第一应用对应的服务器通知语音通信授权服务器进行验证码分配。
本发明能够通过验证码的分配将所述第一应用与对应的语音通信的服务接口进行绑定,具体的操作为通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,由服务器侧基于鉴权请求进行鉴权并获取鉴权结果。其中,所述鉴权结果中可以至少包括有第一账户以及授权账号。
另外,本实施例中所述基于服务器侧反馈的鉴权结果,对调用所述语 音通信的服务接口的操作进行控制,包括:
当所述服务器侧反馈的所述鉴权结果表征鉴权通过时,控制使用所述第一账号的第一应用调用所述语音通信的服务接口进行语音通信处理。也就是说,当鉴权结果表征鉴权通过的时候,第一应用即第三方应用就获取到使用语音通信服务器接口的权限。
可以理解的是,本实施例中所述语音通信的授权接口与所述语音通信的服务接口基于同一软件开发套件,比如,可以为软件开发工具包(SDK,Software Development Kit),具体的接口实现参见表1-3,可以看出,由于使用同一软件开发套件面向电子设备中的所有第三方应用,这就大大降低了第三方应用实现多方语音通信时的接口复杂度,接口实现简单,降低了第三方应用的适配难度。
假设本实施例中使用的为SDK进行处理,对应的SDK接口可以如表1-表2所示:
Figure PCTCN2016097033-appb-000001
Figure PCTCN2016097033-appb-000002
表1
2)回调接口(WXCMultiTalkApiDelegate):
Figure PCTCN2016097033-appb-000003
Figure PCTCN2016097033-appb-000004
表2
另外,SDK中定义的错误码类型及其定义如表3所示:
Figure PCTCN2016097033-appb-000005
表3
出于安全的考虑,比如避免各种游戏外挂的恶意使用多人语音功能,所有接入SDK的第三方应用在首次使用时都需要进行鉴权激活,才能开始后续语音通话,下面结合图2对本实施例中提供的鉴权的操作进行详细说 明:
步骤21:第三方应用首次使用时,需要向其自己后台请求验证码(Code),用于鉴权激活;
步骤22:第三方应用对请求验证码(Code)的终端进行账号的合法性验证;
步骤23:第三方应用后台通过https请求到SDK开放平台的后台(微信电话本后台)进行Code申请,https请求会带上ClientID信息;
步骤24:SDK开放平台后台分配Code返回给第三方应用后台,并临时关联Code与ClientID;
步骤25:第三方应用后台返回Code给第三方应用终端;
步骤26:第三方应用调用SDK的reqAuth接口,传入Code和ClientID,该请求会发送给SDK开放平台的后台进行鉴权验证;
步骤27:SDK开放平台后台验证收到的Code和ClientID是否匹配
步骤28:SDK开放平台后台验证Code和ClientID匹配,就分配一个与ClientID关联的授权账号给第三方应用,并返回给SDK;
步骤29:SDK会维护收到的授权账号,并回调通知第三方应用鉴权激活成功。鉴权激活成功后,就可以发起多人语音通话了。
可见,通过采用上述方案,就能够控制使用第一账户的第一应用向服务器侧发起语音激活请求,使得所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户,接收到所述服务器侧返回的第一账户对应的验证码;通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。如此,就能够为第三方应用提供安全的语音通信的服务器接口,提升用户在使用第三方应用是的安全性;另外,由于不使用第三方应用中提供的音频功能,避免了在第三方应用中产生音频 冲突问题;并且能够避免不同第三方应用的兼容性问题。
实施例二、
本发明实施例提供了一种语音通信处理方法,应用于电子设备,如图1所示,包括:
步骤11:控制使用第一账户的第一应用向服务器侧发起语音激活请求,使得所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户,并为所述第一账户分配对应的验证码;
步骤12:接收到所述服务器侧返回的第一账户对应的验证码;
步骤13:通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,使得所述服务器侧基于所述鉴权请求包括的验证码对所述使用第一账户的第一应用是否调用语音通信的服务接口进行鉴权,得到鉴权结果;
步骤14:基于服务器侧反馈的鉴权结果,对调用所述语音通信的服务接口的操作进行控制。
本实施例中,所述电子设备可以为智能手机、平板电脑、台式机等设备。所述电子设备中能够安装并运行至少一个第三方应用(对应前述的第一应用),所述第三方应用可以为游戏等具有多方语音通信需求的应用。
所述第一应用可以为所述电子设备中安装的至少一个第三方应用中的任意一个。比如,用户安装了应用A、应用B和应用C,当前开启了应用A则应用A可以作为本实施例中所述第一应用。
所述第一账户可以为用户登录所述第一应用所使用的账户;获取所述第一账户的方式可以为通过第一应用在服务器侧对应的第一应用的服务器进行注册。所述第一账户中具体可以包括有所述用户登录所述第一应用的账户名、账户密码等信息。
所述发起语音激活请求可以为用户通过开启第三方应用,基于第一账户登录第三方应用之后,使用第一账户发送语音激活请求;其中,所述语音激活请求中至少包括有:第一应用的标识信息、第一账户。
第一应用的标识信息可以为第一应用的名称和/或编号等信息。
相应的,所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户可以为:基于所述第一应用的标识信息获取到对应的合法账户列表,若所述第一账户在所述合法账户列表中,则确定所述第一账户为合法账户。可以理解的是,本实施例中所述服务器侧不一定是仅由一台服务器,可以为多台服务器共同组成的服务器集群。上述进行账户合法性验证的操作可以为服务器侧第一应用对应的服务器执行的操作。
另外,为所述第一账户分配对应的验证码可以为由服务器侧的语音通信鉴权平台执行的操作,语音通信鉴权平台可以为SDK开放平台。
优选地,获取到所述验证码的方法可以为第一应用对应的服务器通知语音通信授权服务器进行验证码分配。
本发明能够通过验证码的分配将所述第一应用与对应的语音通信的服务接口进行绑定,具体的操作为通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,由服务器侧基于鉴权请求进行鉴权并获取鉴权结果。其中,所述鉴权结果中可以至少包括有第一账户以及授权账号。
另外,本实施例中所述基于服务器侧反馈的鉴权结果,对调用所述语音通信的服务接口的操作进行控制,包括:当所述服务器侧反馈的所述鉴权结果表征鉴权通过时,控制使用所述第一账号的第一应用调用所述语音通信的服务接口进行语音通信处理。也就是说,当鉴权结果表征鉴权通过的时候,第一应用即第三方应用就获取到使用语音通信服务器接口的权限。
可以理解的是,本实施例中所述语音通信的授权接口与所述语音通信的服务接口基于同一软件开发套件,比如,可以为软件开发工具包(SDK,Software Development Kit)。
另外,上述控制使用所述第一账号的第一应用调用所述语音通信的服务接口进行语音通信处理,包括:
从所述鉴权结果中获取到针对所述第一账户的授权标识;
控制所述第一应用的第一账户基于所述授权标识获得所述语音通信接口的授权,并通过所述语音通信的服务接口进行语音数据的交互。
下面结合图3对本实施例中进行语音通信的操作时,进行语音通信组的建立的方法进行说明,具体的:所述控制所述第一应用的第一账户基于所述授权标识获得所述语音通信接口的授权,并通过所述语音通信的服务接口进行语音数据的交互,包括:
步骤31:控制使用所述第一账号的所述第一应用发起第一语音通信的操作;
步骤32:根据所述第一语音通信操作生成第一语音通信请求,所述第一语音通信请求包含有所述第一账户的授权标识以及第一语音通信的通信标识;
步骤33:发送所述第一语音通信请求至所述服务器侧,使得所述服务器侧根据所述第一语音通信请求中的第一账户的授权标识以及第一语音通信的通信标识,生成第一语音通信组,并通知所述电子设备中使用所述第一账户的第一应用加入所述第一语音通信组。
其中,所述发起第一语音通信操作的方法可以为通过操作界面点击进行通话的按钮,检测到点击所述按钮确定发起第一语音通信操作的操作,如图4所示,假设当前第一应用的显示界面41,其中显示有进行语音通信的按钮42,用户可以点击按钮42作为发起第一语音通信操作。
上述根据所述第一语音通信操作生成第一语音通信请求可以为:生成至少包括有第一应用的标识信息、第一账户的名称、第一账户的授权标识以及第一语音通信的通信标识的第一语音通信请求。其中所述第一语音通信的通信标识可以为一个唯一标识码(UniqueID)。
另外,所述第一语音通信操作为表征用户当前发起的语音通信操作。
上述发送所述第一语音通信请求至所述服务器侧可以为:通过语音通信的服务接口发送所述第一语音通信请求至所述服务器侧。相应的,所述服务器侧基于所述第一语音通信请求生成第一语音通信组可以为:基于所述第一语音通信请求中的第一应用的标识信息、第一账户的名称、第一账户的授权标识以及第一语音通信的通信标识,生成针对本次第一语音通信请求的第一语音通信组,并且生成针对所述语音通信组的标识信息;可以理解的是,所述第一语音通信组的标识信息与所述第一语音通信的通信标识唯一映射对应。
优选地,基于以上的操作,本实施例还可以提供基于建立的第一语音通信组进行通话的操作方法,如图5所示,所述方法还包括:
步骤51:接收到所述服务器侧发来的使用第二账户的所述第一应用加入所述第一语音通信组的通知;其中,所述第二账户为通过与所述电子设备不同的其他电子设备登录第一应用所使用的账户;
步骤52:基于所述通知,控制进行语音数据的采集,将采集到的语音数据通过所述服务器侧发送至所述第一语音通信组中的使用所述第二账户的所述第一应用;
步骤53:从所述服务器侧获取到所述第一语音通信组中的使用所述第二账户的所述第一应用分享的语音数据并输出。
上述步骤52以及步骤53的操作不分先后顺序,可以先执行步骤52再执行步骤53;也可以先执行步骤53再执行步骤52。
其中,使用所述第二账户的所述第一应用可以为由除本实施例中所述的电子设备之外的其他用户使用第二账户通过电子设备登录第一应用。
上述进行语音数据的采集可以为开启所述电子设备的麦克风进行语音采集。另外,语音数据的数据可以为通过所述电子设备的喇叭播放。
进一步地,本实施例还可以提供结束上述通话的流程如图6所示,所述方法还包括:
步骤61:控制使用所述第一账号的所述第一应用发起结束所述第一语音通信的操作;
步骤62:根据所述结束第一语音通信的操作,生成包含有所述第一账户的授权标识以及第一语音通信的通信标识的第一语音通信结束请求;
步骤63:发送所述第一语音通信结束请求至所述服务器侧,使得所述服务器侧根据所述第一语音通信请求中的第一账户的授权标识以及第一语音通信的通信标识,将使用所述第一账户的所述第一应用从对应的第一语音通信组中删除。
其中,所述第一语音通信结束请求中至少包括有第一语音通信的通信标识以及第一账户的授权标识;此外,还可以包括有第一应用的标识信息以及第一账户的名称等信息。
将使用所述第一账户的所述第一应用从对应的第一语音通信组中删除之后,所述电子设备侧可以控制自身关闭语音采集装置,比如关闭麦克风。
下面结合图7为本实施例提供的语音通信场景提供说明,展示了多人通话加入、退出、说话、成员变化的接口调用形式,已经与SDK、多人语音服务器的交互流程,具体步骤说明如下:
步骤701:第三方应用的用户A1~An发起第一语音通信的操作,根据所述第一语音通信的发起操作调用enterMultiTalk接口,传入相同的唯一uniqueID;
步骤702:SDK语音通信的服务接口发送第一语音通信请求给多人语音服务器,多人语音服务器会为改次通话分配一个唯一的groupID(服务端会维护uniqueID与groupID的映射关系);
步骤703:SDK语音通信的服务接口收到enterMultiTalkResp响应,生成第一语音通信组,并会缓存服务端带下来的groupID,这个值对第三方应用是透明;
步骤704:SDK语音通信的服务接口通过onEnterMultiTalk接口回调通知第三方应用加入多人通话成功;
步骤705:多人语音服务器在收到新的加入第一语音通信组的Enter请求时,通知当前已加入多人通话成功的所有人;
步骤706:SDK通过onMemberChange接口回调通知第三方应用有成员变化通知;
步骤707:SDK检查到当前多人通话的成员数目超过2人,就会启动音频设备,开始语音数据的采集和播放;
步骤708:SDK通过onMultiTalkReady接口回调通知第三方应用可以开始与其他成员说话了进行语音通信;
步骤709:第三方应用通过调用exitMutiTalk接口,准备退出多人通话;
步骤710:SDK发送结束第一语音通信请求(exitMultiTalkReq请求)给多人语音服务器;
步骤711:多人语音服务器在exit请求时,通知当前已加入多人通话成功的所有人;
步骤712:SDK收到exitMultiTalkResp响应结果;
步骤713:SDK通过onExitMultiTalk接口回调通知第三方应用退出多人通话成功;
步骤714:其他已加入多人通话的成员会收到onMemberChange的回调 通知。
可见,通过采用上述方案,就能够控制使用第一账户的第一应用向服务器侧发起语音激活请求,使得所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户,接收到所述服务器侧返回的第一账户对应的验证码;通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。如此,就能够为第三方应用提供安全的语音通信的服务器接口,提升用户在使用第三方应用是的安全性;另外,由于不使用第三方应用中提供的音频功能,避免了在第三方应用中产生音频冲突问题;并且能够避免不同第三方应用的兼容性问题。
实施例三、
本发明实施例提供了一种电子设备,如图8所示,包括:
应用管理单元81,用于控制使用第一账户的第一应用向服务器侧发起语音激活请求,接收到所述服务器侧返回的第一账户对应的验证码;通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧;
语音通信管理单元82,用于利用语音通信的授权接口发送包含有验证码的健全请求至服务器侧,并基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。
本实施例中,所述电子设备可以为智能手机、平板电脑、台式机等设备。所述电子设备中能够安装并运行至少一个第三方应用(对应前述的第一应用),所述第三方应用可以为游戏等具有多方语音通信需求的应用。
所述第一应用可以为所述电子设备中安装的至少一个第三方应用中的任意一个。比如,用户安装了应用A、应用B和应用C,当前开启了 应用A则应用A可以作为本实施例中所述第一应用。
所述第一账户可以为用户登录所述第一应用所使用的账户;获取所述第一账户的方式可以为通过第一应用在服务器侧对应的第一应用的服务器进行注册。所述第一账户中具体可以包括有所述用户登录所述第一应用的账户名、账户密码等信息。
所述发起语音激活请求可以为用户通过开启第三方应用,基于第一账户登录第三方应用之后,使用第一账户发送语音激活请求;其中,所述语音激活请求中至少包括有:第一应用的标识信息、第一账户。
第一应用的标识信息可以为第一应用的名称和/或编号等信息。
相应的,所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户可以为:基于所述第一应用的标识信息获取到对应的合法账户列表,若所述第一账户在所述合法账户列表中,则确定所述第一账户为合法账户。可以理解的是,本实施例中所述服务器侧不一定是仅由一台服务器实现,可以为多台服务器共同组成的服务器集群。上述进行账户合法性验证的操作可以为服务器侧第一应用对应的服务器执行的操作。
另外,为所述第一账户分配对应的验证码可以为由服务器侧的语音通信鉴权平台执行的操作,语音通信鉴权平台可以为SDK开放平台。
优选地,获取到所述验证码的方法可以为第一应用对应的服务器通知语音通信授权服务器进行验证码分配。
本发明能够通过验证码的分配将所述第一应用与对应的语音通信的服务接口进行绑定,具体的操作为通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,由服务器侧基于鉴权请求进行鉴权并获取鉴权结果。其中,所述鉴权结果中可以至少包括有第一账户以及授权账号。
另外,所述语音通信管理单元,用于当所述服务器侧反馈的所述鉴权 结果表征鉴权通过时,控制使用所述第一账号的第一应用调用所述语音通信的服务接口进行语音通信处理。
也就是说,当鉴权结果表征鉴权通过的时候,第一应用即第三方应用就获取到使用语音通信服务器接口的权限。
可以理解的是,本实施例中所述语音通信的授权接口与所述语音通信的服务接口基于同一软件开发套件,比如,可以为软件开发工具包(SDK,Software Development Kit),与相关技术相比,减少了语音通信接口的复杂度,接口实现简单,降低了第三方应用的适配难度。
可见,通过采用上述方案,就能够控制使用第一账户的第一应用向服务器侧发起语音激活请求,使得所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户,接收到所述服务器侧返回的第一账户对应的验证码;通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。如此,就能够为第三方应用提供安全的语音通信的服务器接口,提升用户在使用第三方应用是的安全性;另外,由于不使用第三方应用中提供的音频功能,避免了在第三方应用中产生音频冲突问题;并且能够避免不同第三方应用的兼容性问题。
实施例四、
本发明实施例提供了一种电子设备,如图9所示,包括:
应用管理单元91,用于控制使用第一账户的第一应用向服务器侧发起语音激活请求,接收到所述服务器侧返回的第一账户对应的验证码;通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧;
语音通信管理单元92,用于利用语音通信的授权接口发送包含有验证码的健全请求至服务器侧,并基于服务器侧反馈的所述鉴权结果,对调用 所述语音通信的服务接口的操作进行控制。
本实施例中,所述电子设备可以为智能手机、平板电脑、台式机等设备。所述电子设备中能够安装并运行至少一个第三方应用(对应前述的第一应用),所述第三方应用可以为游戏等具有多方语音通信需求的应用。
所述第一应用可以为所述电子设备中安装的至少一个第三方应用中的任意一个。比如,用户安装了应用A、应用B和应用C,当前开启了应用A则应用A可以作为本实施例中所述第一应用。
所述第一账户可以为用户登录所述第一应用所使用的账户;获取所述第一账户的方式可以为通过第一应用在服务器侧对应的第一应用的服务器进行注册。所述第一账户中具体可以包括有所述用户登录所述第一应用的账户名、账户密码等信息。
所述发起语音激活请求可以为用户通过开启第三方应用,基于第一账户登录第三方应用之后,使用第一账户发送语音激活请求;其中,所述语音激活请求中至少包括有:第一应用的标识信息、第一账户。
第一应用的标识信息可以为第一应用的名称和/或编号等信息。
相应的,所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户可以为:基于所述第一应用的标识信息获取到对应的合法账户列表,若所述第一账户在所述合法账户列表中,则确定所述第一账户为合法账户。可以理解的是,本实施例中所述服务器侧不一定是仅由一台服务器,可以为多台服务器共同组成的服务器集群。上述进行账户合法性验证的操作可以为服务器侧第一应用对应的服务器执行的操作。
另外,为所述第一账户分配对应的验证码可以为由服务器侧的语音通信鉴权平台执行的操作,语音通信鉴权平台可以为SDK开放平台。
优选地,获取到所述验证码的方法可以为第一应用对应的服务器通 知语音通信授权服务器进行验证码分配。
本发明能够通过验证码的分配将所述第一应用与对应的语音通信的服务接口进行绑定,具体的操作为通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,由服务器侧基于鉴权请求进行鉴权并获取鉴权结果。其中,所述鉴权结果中可以至少包括有第一账户以及授权账号。
另外,本实施例中所述语音通信管理单元,用于当所述服务器侧反馈的所述鉴权结果表征鉴权通过时,控制使用所述第一账号的第一应用调用所述语音通信的服务接口进行语音通信处理。也就是说,当鉴权结果表征鉴权通过的时候,第一应用即第三方应用就获取到使用语音通信服务器接口的权限。
可以理解的是,本实施例中所述语音通信的授权接口与所述语音通信的服务接口基于同一软件开发套件,比如,可以为软件开发工具包(SDK,Software Development Kit)。
另外,上述所述语音通信管理单元,用于从所述鉴权结果中获取到针对所述第一账户的授权标识;控制所述第一应用的第一账户基于所述授权标识获得所述语音通信接口的授权,并通过所述语音通信的服务接口进行语音数据的交互。
对本实施例中进行语音通信的操作时,进行语音通信组的建立的方法进行说明,具体的:所述语音通信管理单元,用于控制使用所述第一账号的所述第一应用发起第一语音通信的操作;根据所述第一语音通信操作生成第一语音通信请求,所述第一语音通信请求包含有所述第一账户的授权标识以及第一语音通信的通信标识;发送所述第一语音通信请求至所述服务器侧,接收服务器侧反馈的使用所述第一账户的第一应用加入所述第一语音通信组的通知。
其中,所述发起第一语音通信操作的方法可以为通过操作界面点击进行通话的按钮,检测到点击所述按钮确定发起第一语音通信操作的操作,如图4所示,假设当前第一应用的显示界面41,其中显示有进行语音通信的按钮42,用户可以点击按钮42作为发起第一语音通信操作。
上述根据所述第一语音通信操作生成第一语音通信请求可以为:生成至少包括有第一应用的标识信息、第一账户的名称、第一账户的授权标识以及第一语音通信的通信标识的第一语音通信请求。其中所述第一语音通信的通信标识可以为一个唯一标识码(UniqueID)。
另外,所述第一语音通信操作为表征用户当前发起的语音通信操作。
上述发送所述第一语音通信请求至所述服务器侧可以为:通过语音通信的服务接口发送所述第一语音通信请求至所述服务器侧。相应的,所述服务器侧基于所述第一语音通信请求生成第一语音通信组可以为:基于所述第一语音通信请求中的第一应用的标识信息、第一账户的名称、第一账户的授权标识以及第一语音通信的通信标识,生成针对本次第一语音通信请求的第一语音通信组,并且生成针对所述语音通信组的标识信息;可以理解的是,所述第一语音通信组的标识信息与所述第一语音通信的通信标识唯一映射对应。
优选地,基于以上的操作,本实施例还可以提供基于建立的第一语音通信组进行通话的电子设备,参见图10,基于图9示出的电子设备,所述电子设备还包括:
音频采集单元93,用于根据语音通信管理单元的控制采集语音数据;
音频输出单元94,用于根据所述语音通信管理单元的控制输出语音数据;
相应的,所述语音通信管理单元92,还用于接收到所述服务器侧发来的使用第二账户的所述第一应用加入所述第一语音通信组的通知;其中, 所述第二账户为通过与所述电子设备不同的其他电子设备登录第一应用所使用的账户;基于所述通知,控制进行语音数据的采集,将采集到的语音数据通过所述服务器侧发送至所述第一语音通信组中使用所述第二账户的所述第一应用;从所述服务器侧获取到所述第一语音通信组中的使用所述第二账户的所述第一应用分享的语音数据并输出。
其中,使用所述第二账户的所述第一应用可以为由除本实施例中所述的电子设备之外的其他用户使用第二账户通过电子设备登录第一应用。
上述进行语音数据的采集可以为开启所述电子设备的麦克风进行语音采集。另外,语音数据的数据可以为通过所述电子设备的喇叭播放。
进一步地,所述语音通信管理单元92,还用于控制使用所述第一账号的所述第一应用发起结束所述第一语音通信的操作;根据所述结束第一语音通信的操作,生成包含有所述第一账户的授权标识以及第一语音通信的通信标识的第一语音通信结束请求;发送所述第一语音通信结束请求至所述服务器侧,使得所述服务器侧根据所述第一语音通信请求中的第一账户的授权标识以及第一语音通信的通信标识,将使用所述第一账户的所述第一应用从对应的第一语音通信组中删除。
其中,所述第一语音通信结束请求中至少包括有第一语音通信的通信标识以及第一账户的授权标识;此外,还可以包括有第一应用的标识信息以及第一账户的名称等信息。
将使用所述第一账户的所述第一应用从对应的第一语音通信组中删除之后,所述电子设备侧可以控制自身关闭语音采集装置,比如关闭麦克风。
可见,通过采用上述方案,就能够控制使用第一账户的第一应用向服务器侧发起语音激活请求,使得所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户,接收到所述服务器侧返回的第一账户对应的验证码;通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权 请求至服务器侧,基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。如此,就能够为第三方应用提供安全的语音通信的服务器接口,提升用户在使用第三方应用是的安全性;另外,由于不使用第三方应用中提供的音频功能,避免了在第三方应用中产生音频冲突问题;并且能够避免不同第三方应用的兼容性问题。
实施例五、
本发明实施例提供了一种语音通信处理系统,如图11所示,所述系统包括:
电子设备1101,用于控制使用第一账户的第一应用向服务器侧发起语音激活请求,接收到所述服务器侧返回的第一账户对应的验证码;通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制;
服务器1102,用于根据所述语音激活请求确定所述第一账户为合法账户,并为所述第一账户分配对应的验证码;基于所述鉴权请求包括的验证码对所述使用第一账户的所述第一应用是否能够调用语音通信的服务接口进行鉴权,得到鉴权结果。
本实施例中电子设备的组成结构以及功能与实施例三以及实施例四所述的电子设备相同,这里不做赘述。
另外,本实施例中所述服务器可以为一个服务器也可以为多个服务器组成的服务器集群。
可见,通过采用上述方案,就能够控制使用第一账户的第一应用向服务器侧发起语音激活请求,使得所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户,接收到所述服务器侧返回的第一账户对应的验证码;通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权 请求至服务器侧,基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。如此,就能够为第三方应用提供安全的语音通信的服务器接口,提升用户在使用第三方应用是的安全性;另外,由于不使用第三方应用中提供的音频功能,避免了在第三方应用中产生音频冲突问题;并且能够避免不同第三方应用的兼容性问题。
在本发明所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM, Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。该存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行包括以下的操作:
控制使用第一账户的第一应用向服务器侧发起语音激活请求,使得所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户,并为所述第一账户分配对应的验证码;
接收到所述服务器侧返回的第一账户对应的验证码;
通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,使得所述服务器侧基于所述鉴权请求包括的验证码对所述使用第一账户的所述第一应用是否能够调用语音通信的服务接口进行鉴权,得到鉴权结果;
基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (14)

  1. 一种语音通信处理方法,应用于电子设备,所述方法包括:
    控制使用第一账户的第一应用向服务器侧发起语音激活请求,使得所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户,并为所述第一账户分配对应的验证码;
    接收到所述服务器侧返回的第一账户对应的验证码;
    通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,使得所述服务器侧基于所述鉴权请求包括的验证码对所述使用第一账户的所述第一应用是否能够调用语音通信的服务接口进行鉴权,得到鉴权结果;
    基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。
  2. 根据权利要求1所述的方法,其中,所述基于服务器侧反馈的鉴权结果,对调用所述语音通信的服务接口的操作进行控制,包括:
    当所述服务器侧反馈的所述鉴权结果表征鉴权通过时,控制使用所述第一账号的所述第一应用调用所述语音通信的服务接口进行语音通信处理。
  3. 根据权利要求2所述的方法,其中,所述控制使用所述第一账号的第一应用调用所述语音通信的服务接口进行语音通信处理,包括:
    从所述鉴权结果中获取到针对所述第一账户的授权标识;
    控制使用所述账户的所述第一应用基于所述授权标识获得所述语音通信接口的授权,并通过所述语音通信的服务接口进行语音数据的交互。
  4. 根据权利要求3所述的方法,其中,所述控制使用所述第一账户的所述第一应用基于所述授权标识获得所述语音通信接口的授权,并通过所 述语音通信的服务接口进行语音数据的交互,包括:
    控制使用所述第一账号的所述第一应用发起第一语音通信的操作;
    根据所述第一语音通信操作生成第一语音通信请求,所述第一语音通信请求包含有所述第一账户的授权标识以及所述第一语音通信的通信标识;
    发送所述第一语音通信请求至所述服务器侧,使得所述服务器侧根据所述第一语音通信请求中的第一账户的授权标识以及所述第一语音通信的通信标识,生成第一语音通信组,并通知所述电子设备中使用所述第一账户的第一应用加入所述第一语音通信组。
  5. 根据权利要求4所述的方法,其中,所述方法还包括:
    接收到所述服务器侧发来的使用第二账户的所述第一应用加入所述第一语音通信组的通知;其中,所述第二账户为与所述电子设备不同的电子设备登录所述第一应用所使用的账户;
    基于所述通知,控制进行语音数据的采集,将采集到的语音数据通过所述服务器侧发送至所述第一语音通信组中使用所述第二账户的所述第一应用;
    从所述服务器侧获取到所述第一语音通信组中的使用所述第二账户的所述第一应用分享的语音数据并输出。
  6. 根据权利要求4或5所述的方法,其中,所述方法还包括:
    控制使用所述第一账号的所述第一应用发起结束所述第一语音通信的操作;
    根据所述结束第一语音通信的操作,生成包含有所述第一账户的授权标识以及所述第一语音通信的通信标识的第一语音通信结束请求;
    发送所述第一语音通信结束请求至所述服务器侧,使得所述服务器侧根据所述第一语音通信请求中的第一账户的授权标识以及所述第一语音通 信的通信标识,将使用所述第一账户的所述第一应用从对应的第一语音通信组中删除。
  7. 一种电子设备,包括:
    应用管理单元,配置为控制使用第一账户的第一应用向服务器侧发起语音激活请求,接收到所述服务器侧返回的第一账户对应的验证码;通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧;
    语音通信管理单元,配置为利用语音通信的授权接口发送包含有验证码的健全请求至服务器侧,并基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。
  8. 根据权利要求7所述的电子设备,其中,
    所述语音通信管理单元,配置为当所述服务器侧反馈的所述鉴权结果表征鉴权通过时,控制使用所述第一账号的第一应用调用所述语音通信的服务接口进行语音通信处理。
  9. 根据权利要求8所述的电子设备,其中,
    所述语音通信管理单元,配置为从所述鉴权结果中获取到针对所述第一账户的授权标识;控制使用所述第一账户的所述第一应用基于所述授权标识获得所述语音通信接口的授权,并通过所述语音通信的服务接口进行语音数据的交互。
  10. 根据权利要求9所述的电子设备,其中,
    所述语音通信管理单元,配置为控制使用所述第一账号的所述第一应用发起第一语音通信的操作;根据所述第一语音通信操作生成第一语音通信请求,所述第一语音通信请求包含有所述第一账户的授权标识以及所述第一语音通信的通信标识;发送所述第一语音通信请求至所述服务器侧,接收服务器侧反馈的使用所述第一账户的所述第一应用加入所述第一语音 通信组的通知。
  11. 根据权利要求10所述的电子设备,其中,所述电子设备还包括:
    音频采集单元,配置为根据语音通信管理单元的控制采集语音数据;
    音频输出单元,配置为根据所述语音通信管理单元的控制输出语音数据;
    相应的,所述语音通信管理单元,配置为接收到所述服务器侧发来的使用第二账户的所述第一应用加入所述第一语音通信组的通知;其中,所述第二账户为与所述电子设备不同的电子设备登录所述第一应用所使用的账户;基于所述通知,控制进行语音数据的采集,将采集到的语音数据通过所述服务器侧发送至所述第一语音通信组中使用所述第二账户的所述第一应用;从所述服务器侧获取到所述第一语音通信组中的使用所述第二账户的所述第一应用分享的语音数据并输出。
  12. 根据权利要求10或11所述的电子设备,其中,
    所述语音通信管理单元,配置为控制使用所述第一账号的所述第一应用发起结束所述第一语音通信的操作;根据所述结束第一语音通信的操作,生成包含有所述第一账户的授权标识以及第一语音通信的通信标识的第一语音通信结束请求;发送所述第一语音通信结束请求至所述服务器侧。
  13. 一种语音通信处理系统,所述系统包括:
    电子设备,配置为控制使用第一账户的第一应用向服务器侧发起语音激活请求,接收到所述服务器侧返回的第一账户对应的验证码;通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制;
    服务器,配置为根据所述语音激活请求确定所述第一账户为合法账户,并为所述第一账户分配对应的验证码;基于所述鉴权请求包括的验证码对 所述使用第一账户的所述第一应用是否能够调用语音通信的服务接口进行鉴权,得到鉴权结果。
  14. 一种存储介质,该存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行包括以下的操作:
    控制使用第一账户的第一应用向服务器侧发起语音激活请求,使得所述服务器侧根据所述语音激活请求确定所述第一账户为合法账户,并为所述第一账户分配对应的验证码;
    接收到所述服务器侧返回的第一账户对应的验证码;
    通过第一应用调用语音通信的授权接口发送包含所述验证码的鉴权请求至服务器侧,使得所述服务器侧基于所述鉴权请求包括的验证码对所述使用第一账户的所述第一应用是否能够调用语音通信的服务接口进行鉴权,得到鉴权结果;
    基于服务器侧反馈的所述鉴权结果,对调用所述语音通信的服务接口的操作进行控制。
PCT/CN2016/097033 2015-08-31 2016-08-26 一种语音通信处理方法、电子设备、系统及存储介质 WO2017036365A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
MYPI2017704195A MY195810A (en) 2015-08-31 2016-08-26 Voice Communication Processing Method and System, Electronic Device, and Storage Medium
KR1020177033642A KR102040755B1 (ko) 2015-08-31 2016-08-26 음성 통신 처리 방법 및 시스템, 전자 장치 및 저장 매체
JP2017558965A JP6522159B2 (ja) 2015-08-31 2016-08-26 音声通信処理方法及びシステム、電子装置、並びに記憶媒体
US15/806,544 US10412227B2 (en) 2015-08-31 2017-11-08 Voice communication processing method and system, electronic device, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510548888.7A CN105208014B (zh) 2015-08-31 2015-08-31 一种语音通信处理方法、电子设备及系统
CN201510548888.7 2015-08-31

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/806,544 Continuation US10412227B2 (en) 2015-08-31 2017-11-08 Voice communication processing method and system, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
WO2017036365A1 true WO2017036365A1 (zh) 2017-03-09

Family

ID=54955448

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097033 WO2017036365A1 (zh) 2015-08-31 2016-08-26 一种语音通信处理方法、电子设备、系统及存储介质

Country Status (6)

Country Link
US (1) US10412227B2 (zh)
JP (1) JP6522159B2 (zh)
KR (1) KR102040755B1 (zh)
CN (1) CN105208014B (zh)
MY (1) MY195810A (zh)
WO (1) WO2017036365A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835807A (zh) * 2021-09-23 2021-12-24 维沃移动通信有限公司 一种提醒方法、装置及电子设备

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10541997B2 (en) 2016-12-30 2020-01-21 Google Llc Authentication of packetized audio signals
US11064250B2 (en) 2013-03-15 2021-07-13 Google Llc Presence and authentication for media measurement
US10719591B1 (en) 2013-03-15 2020-07-21 Google Llc Authentication of audio-based input signals
CN105208014B (zh) 2015-08-31 2018-09-25 腾讯科技(深圳)有限公司 一种语音通信处理方法、电子设备及系统
CN105487668B (zh) * 2015-12-09 2020-06-16 腾讯科技(深圳)有限公司 终端设备的展示方法和装置
CN107302545A (zh) * 2017-08-16 2017-10-27 广东海翔教育科技有限公司 一种语音通信管理方法
US10491697B2 (en) * 2018-02-15 2019-11-26 Cognant Llc System and method for bot detection
CN110300393B (zh) * 2018-03-23 2022-08-16 阿尔卑斯通信器件技术(上海)有限公司 蓝牙通信装置、蓝牙通信系统以及蓝牙通信方法
CN109087639B (zh) * 2018-08-02 2021-01-15 泰康保险集团股份有限公司 用于语音识别的方法、装置、电子设备及计算机可读介质
US10911601B2 (en) * 2018-12-05 2021-02-02 Microsoft Technology Licensing, Llc Object oriented call management
CN111464540A (zh) * 2020-03-31 2020-07-28 广东奥园奥买家电子商务有限公司 一种电商平台页面的用户行为与数据真实性校验方法和装置

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894424A (zh) * 2009-05-21 2010-11-24 北京西阁万投资咨询有限公司 提升安全性的交易卡处理系统和方法
CN102811228A (zh) * 2012-08-31 2012-12-05 中国联合网络通信集团有限公司 网络业务登录方法、设备和系统
CN105208014A (zh) * 2015-08-31 2015-12-30 腾讯科技(深圳)有限公司 一种语音通信处理方法、电子设备及系统

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9294629B2 (en) * 1998-04-16 2016-03-22 At&T Intellectual Property I, L.P. Home gateway system with telephony functions and method
US7305550B2 (en) * 2000-12-29 2007-12-04 Intel Corporation System and method for providing authentication and verification services in an enhanced media gateway
US20030144846A1 (en) * 2002-01-31 2003-07-31 Denenberg Lawrence A. Method and system for modifying the behavior of an application based upon the application's grammar
JP2005056126A (ja) * 2003-08-04 2005-03-03 Sekisui Chem Co Ltd コミュニケーションサービスシステム
US9282188B2 (en) * 2005-01-28 2016-03-08 Value-Added Communications, Inc. Voice message exchange
US8416766B2 (en) * 2008-06-27 2013-04-09 Hewlett-Packard Development Company, L.P. Method for implementing distributed voice functions into software applications
US8725880B2 (en) * 2010-04-07 2014-05-13 Apple, Inc. Establishing online communication sessions between client computing devices
CN102571833A (zh) * 2010-12-15 2012-07-11 盛乐信息技术(上海)有限公司 基于服务器集群的分布式语音识别系统及方法
CN102438086A (zh) * 2011-09-19 2012-05-02 东南大学 一种融合通信中智能语音系统及实现方法
CN102496115A (zh) * 2011-11-24 2012-06-13 上海拉手信息技术有限公司 团购券信息离线验证方法、验证终端及验证系统
CN102833753A (zh) * 2012-08-07 2012-12-19 杭州米普科技有限公司 一种语音输入验证的装置及方法
TWI509907B (zh) * 2013-07-26 2015-11-21 Sheng Hsin Liao 具有保護套的組合式連接裝置
CN103179026B (zh) * 2013-04-11 2015-10-07 腾讯科技(深圳)有限公司 用户交互式系统中的通信方法、系统及服务器和客户端
US9392456B2 (en) * 2013-09-24 2016-07-12 Telesign Corporation Call center SMS verification system and method
CN104661191A (zh) * 2013-11-15 2015-05-27 深圳市快播科技有限公司 局域网通信方法、系统、终端及信息分享装置
JP6330916B2 (ja) * 2013-12-19 2018-05-30 日本電気株式会社 webRTCのためのシステム及び方法
CN104618315B (zh) * 2013-12-30 2019-02-15 腾讯科技(深圳)有限公司 一种验证信息推送和信息验证的方法、装置及系统
US9699161B2 (en) * 2014-04-29 2017-07-04 Twitter, Inc. Authentication mechanism
CN104104514A (zh) * 2014-07-25 2014-10-15 小米科技有限责任公司 使用验证码进行验证的方法及装置
CN104168294B (zh) * 2014-09-05 2017-10-20 陈勇 跨开放平台用户间的即时通讯方法、系统及装置
US20160232588A1 (en) * 2015-02-05 2016-08-11 Robert C. Harmer Consumer verification
CN104734946A (zh) * 2015-04-09 2015-06-24 北京易掌云峰科技有限公司 一种多租户高并发的即时通讯云平台

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101894424A (zh) * 2009-05-21 2010-11-24 北京西阁万投资咨询有限公司 提升安全性的交易卡处理系统和方法
CN102811228A (zh) * 2012-08-31 2012-12-05 中国联合网络通信集团有限公司 网络业务登录方法、设备和系统
CN105208014A (zh) * 2015-08-31 2015-12-30 腾讯科技(深圳)有限公司 一种语音通信处理方法、电子设备及系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113835807A (zh) * 2021-09-23 2021-12-24 维沃移动通信有限公司 一种提醒方法、装置及电子设备

Also Published As

Publication number Publication date
JP2018522323A (ja) 2018-08-09
MY195810A (en) 2023-02-22
US10412227B2 (en) 2019-09-10
CN105208014B (zh) 2018-09-25
KR20170139128A (ko) 2017-12-18
JP6522159B2 (ja) 2019-05-29
US20180069963A1 (en) 2018-03-08
KR102040755B1 (ko) 2019-11-27
CN105208014A (zh) 2015-12-30

Similar Documents

Publication Publication Date Title
WO2017036365A1 (zh) 一种语音通信处理方法、电子设备、系统及存储介质
US10515638B1 (en) System, method, and computer-readable medium that facilitate voice biometrics user authentication
US11978455B2 (en) Information handling systems and methods for accurately identifying an active speaker in a communication session
AU2015382365B2 (en) Toggling biometric authentication
JP6093040B2 (ja) サービスを提供するための装置、方法、コンピュータプログラム及び記憶媒体
US11196739B2 (en) Authorization activation
EP2156306B1 (en) Method and system for pre-authenticated calling for voice applications
US8838459B2 (en) Virtual participant-based real-time translation and transcription system for audio and video teleconferences
US20160371475A1 (en) Enhanced alternative multifactor authentication
CN110351269A (zh) 通过第三方服务器登录开放平台的方法
US9621561B2 (en) Enabling trusted conferencing services
US20170288942A1 (en) Portal for Provisioning Autonomous Software Agents
US20170289070A1 (en) Making a Dialogue Available To an Autonomous Software Agent
US20170289069A1 (en) Selecting an Autonomous Software Agent
WO2015196817A1 (zh) 账号登录方法、装置及系统
US11516211B2 (en) System for providing a service based upon authorization token and virtual assistant and related methods
US11757870B1 (en) Bi-directional voice authentication
US20170288943A1 (en) Supplying Context Data to a Servicing Entity
US11153307B1 (en) Audio tokens for multi-factor authentication
CN105656850B (zh) 一种数据处理方法、相关装置及系统
US11349988B1 (en) Establishing a voice authentication credential
US8848889B2 (en) System and method for biometric identification of a call originator
US20090300741A1 (en) Granting server/workstation access using a telephone system
JP2017527891A (ja) パスワードの照合のための記号入力のタイミングの使用
WO2013067701A1 (zh) 一种会议控制的方法及装置

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: 16840794

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2017558965

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20177033642

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

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

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 20.07.2018 DATED 20.07.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16840794

Country of ref document: EP

Kind code of ref document: A1