CN107911386B - Method and device for acquiring service authorization information - Google Patents

Method and device for acquiring service authorization information Download PDF

Info

Publication number
CN107911386B
CN107911386B CN201711273101.6A CN201711273101A CN107911386B CN 107911386 B CN107911386 B CN 107911386B CN 201711273101 A CN201711273101 A CN 201711273101A CN 107911386 B CN107911386 B CN 107911386B
Authority
CN
China
Prior art keywords
service
authorization
server
information
authorization information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711273101.6A
Other languages
Chinese (zh)
Other versions
CN107911386A (en
Inventor
曹丁鹏
郭宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711273101.6A priority Critical patent/CN107911386B/en
Publication of CN107911386A publication Critical patent/CN107911386A/en
Application granted granted Critical
Publication of CN107911386B publication Critical patent/CN107911386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/0853Network architectures or network communication protocols for network security for authentication of entities using an additional device, e.g. smartcard, SIM or a different communication terminal
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • 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/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/108Network architectures or network communication protocols for network security for controlling access to devices or network resources when the policy decisions are valid for a limited amount of time
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure relates to a method and a device for acquiring service authorization information, and belongs to the field of intelligent household appliances. The method comprises the following steps: the sound acquisition equipment receives a voice instruction; determining a service to be executed according to the voice instruction; and when the sound acquisition equipment is determined not to be authorized by the service, acquiring the authorization information of the service through interaction with the terminal bound with the sound acquisition equipment. The method and the device make full use of the input convenience of the terminal to assist the sound acquisition equipment to acquire the authorization information of the service, so that the authorization process is simpler and more efficient.

Description

Method and device for acquiring service authorization information
Technical Field
The present disclosure relates to the field of intelligent home appliance technologies, and in particular, to a method and an apparatus for acquiring service authorization information.
Background
With the progress of the technology level, many devices can not only realize the traditional functions of themselves, but also extend the functions of themselves by acquiring services, so as to provide richer information to users. But when the device does not obtain service authorization, the functionality that can be implemented is limited.
At present, for the problem of how to obtain authorization when a device accesses a service, a method of directly and permanently storing authorization information in the device is adopted in the related art, but this method may cause any user to access the service through the device at any time, and the security of the information cannot be guaranteed. Therefore, short-term authorization information should be kept in the device to ensure that the service is authorized when the user wishes to use it.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for obtaining service authorization information.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for acquiring service authorization information, the method being applied to a sound collection device, the method including:
receiving a voice instruction;
determining a service to be executed according to the voice instruction;
and when the sound acquisition equipment is determined not to be authorized by the service, acquiring the authorization information of the service through interaction with a terminal bound with the sound acquisition equipment.
In a first implementation manner of the first aspect, the determining, according to the voice instruction, a service to be executed includes:
carrying out voice recognition on the voice instruction to obtain the voice content of the voice instruction;
and acquiring a service corresponding to the voice content from a preset corresponding relation between the voice content and the service as a service to be executed.
In a second implementation manner of the first aspect, after the determining the service to be executed, the method further includes:
sending a first access request to a server, wherein the server is a server corresponding to the service;
receiving a request feedback message returned by the server;
when the request feedback message carries specified indication information, determining that the sound collection equipment is not authorized by the service, wherein the specified indication information is used for indicating that the sound collection equipment does not have the authorization information or the authorization information is expired.
In a third implementation manner of the first aspect, after the determining the service to be executed, the method further includes:
when the sound collection equipment stores the authorization information of the service, detecting whether the authorization information is expired, and when the authorization information is expired, determining that the sound collection equipment is not authorized by the service;
when the sound collection device does not store the authorization information of the service, determining that the sound collection device is not authorized by the service.
In a fourth implementation manner of the first aspect, the acquiring, through interaction with the terminal bound to the sound collection device, the authorization information of the service includes:
playing a prompt audio file, wherein the prompt audio file is used for indicating a user to authorize the sound acquisition equipment on the client, and/or sending a push notification to a client corresponding to the service on the terminal, and the push notification is used for indicating an authorization page of the service to be displayed on the client;
and receiving the authorization information sent by the terminal.
In a fifth implementation manner of the first aspect, after the obtaining, by interaction with the terminal to which the sound collection device is bound, authorization information of the service when it is determined that the sound collection device is not authorized by the service, the method further includes:
storing authorization information for the service;
sending a second access request to the server according to the voice command, wherein the second access request carries authorization information of the service;
and receiving the service data returned by the server, and converting the service data into an audio file for playing.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the method provided by the embodiment of the disclosure, when the sound collection device receives the voice instruction and finds that the sound collection device is not authorized by the corresponding service, the sound collection device cannot complete complex operation, the sound collection device can operate on the terminal bound with the sound collection device, the sound collection device is assisted to complete service authorization by utilizing interaction of the terminal and the sound collection device, the input convenience of the terminal is fully utilized to obtain the authorization information of the service, and therefore the authorization process is simpler and more efficient.
According to a second aspect of the embodiments of the present disclosure, there is provided a method for acquiring service authorization information, the method being applied to a terminal, the method including:
displaying an authorization interface of a client, wherein the authorization interface is used for performing service authorization on sound acquisition equipment;
when the authorization operation on the authorization interface is detected, the login information of the service to be authorized is sent to a server;
receiving authorization information of the service returned by the server;
and sending the authorization information to the sound collection equipment.
In a first implementation manner of the second aspect, before the displaying the authorization interface of the client, the method further includes:
receiving a push notification sent by the sound collection device, wherein the push notification is used for indicating that an authorization page of the service is displayed on the client;
and responding to the push notification, and executing the step of displaying the authorization interface of the client.
In a second implementation manner of the second aspect, the sending, when the authorization operation on the authorization interface is detected, login information of a service to be authorized to a server includes:
when the authorization operation on the authorization interface is detected, the login information stored by the client is obtained, and the login information of the service to be authorized is sent to a server; or the like, or, alternatively,
and when the authorization operation on the authorization interface is detected, providing a login information input page, and sending the login information acquired through the login information input page to a server.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the method provided by the embodiment of the disclosure, the authorization interface is displayed on the terminal, and the user can assist the sound acquisition equipment to complete service authorization only by operating on the authorization interface of the terminal, so that the input convenience of the terminal is fully utilized, and the authorization process is simpler and more efficient.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for acquiring service authorization information, the apparatus being applied to a sound collection device, the apparatus including:
the instruction receiving module is used for receiving a voice instruction;
the determining module is used for determining the service to be executed according to the voice instruction;
and the acquisition module is used for acquiring the authorization information of the service through the interaction with the terminal bound with the sound acquisition equipment when the sound acquisition equipment is determined not to be authorized by the service.
In a first implementation manner of the third aspect, the determining module includes:
the recognition submodule is used for carrying out voice recognition on the voice instruction to obtain the voice content of the voice instruction;
and the obtaining sub-module is used for obtaining the service corresponding to the voice content from the preset corresponding relation between the voice content and the service as the service to be executed.
In a second implementation manner of the third aspect, the apparatus further includes:
the first sending module is used for sending a first access request to a server, and the server is a server corresponding to the service;
a feedback receiving module, configured to receive a request feedback message returned by the server;
a determining module, configured to determine that the sound collecting device is not authorized by the service when the request feedback message carries specified indication information, where the specified indication information is used to indicate that the sound collecting device does not have the authorization information or that the authorization information is expired.
In a third implementation manner of the third aspect, the apparatus further includes:
the detection module is used for detecting whether the authorization information is overdue or not when the authorization information of the service is stored in the sound acquisition equipment, and determining that the sound acquisition equipment is not authorized by the service when the authorization information is overdue;
the detection module is used for determining that the sound collection equipment is not authorized by the service when the sound collection equipment does not store the authorization information of the service.
In a fourth implementation manner of the third aspect, the obtaining module includes:
the system comprises a playing submodule and a push notification submodule, wherein the playing submodule is used for playing a prompt audio file, the prompt audio file is used for indicating a user to authorize the sound acquisition equipment on the client, and/or the push notification submodule is used for sending a push notification to a client corresponding to the service on the terminal, and the push notification is used for indicating an authorization page of the service to be displayed on the client;
and the receiving submodule is used for receiving the authorization information sent by the terminal.
In a fifth implementation manner of the third aspect, the apparatus further includes:
the storage module is used for storing the authorization information of the service;
a second sending module, configured to send a second access request to a server according to the voice instruction, where the second access request carries authorization information of the service;
and the service playing module is used for receiving the service data returned by the server and converting the service data into an audio file for playing.
According to the device provided by the embodiment of the disclosure, when the sound collection equipment receives a voice instruction and finds that the sound collection equipment is not authorized by corresponding services, the sound collection equipment cannot complete complex operation, the sound collection equipment can operate on the terminal bound with the sound collection equipment, the sound collection equipment is assisted to complete service authorization by utilizing interaction of the terminal and the sound collection equipment, the input convenience of the terminal is fully utilized to obtain authorization information of the services, and therefore the authorization process is simpler and more efficient.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an apparatus for acquiring service authorization information, the apparatus being applied to a terminal, the apparatus including:
the display module is used for displaying an authorization interface of the client, and the authorization interface is used for performing service authorization on the sound acquisition equipment;
the first sending module is used for sending the login information of the service to be authorized to the server when the authorization operation on the authorization interface is detected;
the receiving module is used for receiving the authorization information of the service returned by the server;
and the second sending module is used for sending the authorization information to the sound collection equipment.
In a first implementation form of the fourth aspect, the apparatus further comprises:
a notification receiving module, configured to receive a push notification sent by the sound collection device, where the push notification is used to instruct a client to display an authorization page of the service;
and the response module responds to the push notification and executes the step of displaying the authorization interface of the client.
In a second implementation manner of the fourth aspect, the first sending module includes:
the obtaining submodule is used for obtaining the login information stored by the client when the authorization operation on the authorization interface is detected, and sending the login information of the service to be authorized to a server; or the like, or, alternatively,
and the input sub-module is used for providing a login information input page when the authorization operation on the authorization interface is detected, and sending the login information acquired through the login information input page to a server.
According to the device provided by the embodiment of the disclosure, the authorization interface is displayed on the terminal, and a user can assist the sound collection equipment to complete service authorization only by operating on the authorization interface of the terminal, so that the input convenience of the terminal is fully utilized, and the authorization process is simpler and more efficient.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a sound collection apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a voice instruction;
determining a service to be executed according to the voice instruction;
and when the sound acquisition equipment is determined not to be authorized by the service, acquiring the authorization information of the service through interaction with a terminal bound with the sound acquisition equipment.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a terminal, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
displaying an authorization interface of a client, wherein the authorization interface is used for performing service authorization on sound acquisition equipment;
when the authorization operation on the authorization interface is detected, the login information of the service to be authorized is sent to a server;
receiving authorization information of the service returned by the server;
and sending the authorization information to the sound collection equipment.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, performs the method steps of the first aspect.
According to an eighth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, performs the method steps of the second aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a method of obtaining service authorization information according to an example embodiment.
Fig. 2 is a flowchart illustrating a method of obtaining service authorization information according to an example embodiment.
Fig. 3 is a flowchart illustrating a method of obtaining service authorization information according to an example embodiment.
Fig. 4 is a block diagram illustrating an apparatus for acquiring service authorization information according to an example embodiment.
FIG. 5 is a block diagram illustrating a determination module according to the embodiment shown in FIG. 4.
Fig. 6 is a block diagram of an acquisition module according to the embodiment shown in fig. 4.
Fig. 7 is a block diagram illustrating an apparatus for acquiring service authorization information according to an example embodiment.
Fig. 8 is a block diagram of a first sending module according to the embodiment shown in fig. 5.
Fig. 9 is a block diagram illustrating a terminal according to an example embodiment.
FIG. 10 is a block diagram illustrating a server in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for obtaining service authorization information according to an exemplary embodiment, where the method for obtaining service authorization information is used in a sound collection device, as shown in fig. 1, and includes the following steps:
in step S101, a voice instruction is received.
In step S102, a service to be executed is determined according to the voice instruction.
In step S103, when it is determined that the sound collection device is not authorized by the service, the authorization information of the service is acquired through interaction with the terminal to which the sound collection device is bound.
According to the method provided by the embodiment of the disclosure, when the sound collection device receives the voice instruction and finds that the sound collection device is not authorized by the corresponding service, the sound collection device cannot complete complex operation, and can operate on the terminal bound with the sound collection device to assist the sound collection device to complete service authorization, so that the input convenience of the terminal is fully utilized to obtain the authorization information of the service, and the authorization process is simpler and more efficient.
In one possible implementation, determining a service to be performed according to the voice instruction includes:
carrying out voice recognition on the voice instruction to obtain the voice content of the voice instruction;
and acquiring the service corresponding to the voice content from the preset corresponding relation between the voice content and the service as the service to be executed.
The method provided by the embodiment of the disclosure adopts the recognized voice to determine the service which is expected to be executed, and is more convenient and faster
In one possible implementation, after determining the service to be executed, the method further includes:
sending a first access request to a server, wherein the server is a server corresponding to the service;
receiving a request feedback message returned by the server;
when the request feedback message carries the designated indication information, it is determined that the sound collection device is not authorized by the service, and the designated indication information is used for indicating that no authorization information exists on the sound collection device or the authorization information is expired.
According to the method provided by the embodiment of the disclosure, whether the sound collection equipment is authorized by the service is judged by adopting a method of sending the access request to the server and receiving the request feedback message, and the judgment result is more accurate and real-time.
In one possible implementation, after determining the service to be executed, the method further includes:
when the sound collection equipment stores the authorization information of the service, detecting whether the authorization information is overdue, and when the authorization information is overdue, determining that the sound collection equipment is not authorized by the service;
and when the sound collection device does not store the authorization information of the service, determining that the sound collection device is not authorized by the service.
The method provided by the embodiment of the disclosure judges whether the sound collection device is authorized by the service by detecting the condition that the sound collection device stores the authorization information, thereby improving the efficiency of the judging process.
In one possible implementation manner, the obtaining of the authorization information of the service through interaction with the terminal bound to the sound collection device includes:
playing a prompt audio file, wherein the prompt audio file is used for indicating a user to authorize the sound acquisition equipment on the client, and/or sending a push notification to a client corresponding to the service on the terminal, and the push notification is used for indicating an authorization page of the service displayed on the client;
and receiving the authorization information sent by the terminal.
The method provided by the embodiment of the disclosure reminds the user of service authorization by adopting a mode of combining playing of the prompt audio file and sending of the push notification, and reminds in multiple modes simultaneously, so that the reminding is more effective and more humanized.
In a possible implementation manner, when it is determined that the sound collection device is not authorized by the service, after obtaining the authorization information of the service through interaction with the terminal bound to the sound collection device, the method further includes:
storing authorization information for the service;
sending a second access request to the server according to the voice command, wherein the second access request carries the authorization information of the service;
and after receiving the service data returned by the server, converting the service data into an audio file and playing the audio file.
According to the method provided by the embodiment of the disclosure, after the service authorization information is acquired, the second access request carrying the authorization information is directly sent to the server according to the once acquired voice instruction, and the voice instruction does not need to be acquired again, so that the process of acquiring the service data is simpler and more efficient.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Fig. 2 is a flowchart illustrating a method for obtaining service authorization information according to an exemplary embodiment, where the method for obtaining service authorization information is used in a terminal, as shown in fig. 2, and includes the following steps:
in step S201, an authorization interface of the client is displayed, where the authorization interface is used to authorize a service to the sound collection device.
In step S202, when an authorization operation at the authorization interface is detected, login information of a service to be authorized is transmitted to the server.
In step S203, authorization information of the service returned by the server is received.
In step S204, the authorization information is transmitted to the sound collection apparatus.
According to the method provided by the embodiment of the disclosure, the authorization interface is displayed on the terminal, and the user can assist the sound acquisition equipment to complete service authorization only by operating on the authorization interface of the terminal, so that the input convenience of the terminal is fully utilized, and the authorization process is simpler and more efficient.
In one possible implementation, before displaying the authorization interface of the client, the method further includes:
receiving a push notification sent by a sound acquisition device, wherein the push notification is used for indicating an authorization page of a service displayed on a client;
and responding to the push notification, and executing the step of displaying the authorization interface of the client.
According to the method provided by the embodiment of the disclosure, the terminal directly responds to the push notification and displays the authorization interface, so that the operation is avoided, and the authorization process is simpler and more efficient.
In one possible implementation manner, when the authorization operation on the authorization interface is detected, the sending the login information of the service to be authorized to the server includes:
when the authorization operation on an authorization interface is detected, login information stored by a client is acquired, and the login information of the service to be authorized is sent to a server; or the like, or, alternatively,
and when the authorization operation on the authorization interface is detected, providing a login information input page, and sending the login information acquired through the login information input page to the server.
The method provided by the embodiment of the disclosure sends the stored login information or inputs the login information to the server, so that the acquisition mode of the login information is more flexible and diversified.
All the above-mentioned optional technical solutions of the terminal may be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
Fig. 3 is a flowchart illustrating a method for obtaining service authorization information according to an exemplary embodiment, where, as shown in fig. 3, the embodiment is described by taking an interaction process among a sound collection device, a terminal, and a server as an example; the terminal is bound with the sound acquisition equipment, the terminal and the sound acquisition equipment can be pre-paired by using Bluetooth or wifi, and the terminal can control the sound acquisition equipment through the installed client; the server may provide the service data to the sound collection device and the terminal according to the service authorization information of the sound collection device and the terminal. The method for acquiring the service authorization information comprises the following steps:
in step S301, the sound collection apparatus receives a voice instruction.
The sound collection device may be an intelligent sound box, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, or a personal digital assistant, and mainly has functions of collecting voice and playing audio. The sound collection device is provided with a microphone, and the microphone can collect voice signals in the environment and recognize voice instructions sent by a user.
Furthermore, when the microphone receives the voice command, the sound collection device can also identify the voiceprint of the received voice command, and judge whether the voiceprint is matched with the stored voiceprint in the sound collection device, wherein the stored voiceprint can be the voiceprint of the user of the sound collection device; and if the voiceprints are not matched, the voice command is not continuously received or ignored. Furthermore, the sound collection equipment can also authenticate the user through the terminal and provide service for the user when the authentication is passed. The pertinence and the safety of the voice instruction control can be improved through the process of voiceprint matching, and unauthorized use by other users is avoided.
In step S302, the sound collection apparatus determines a service to be executed according to the voice instruction.
In a possible embodiment, the determining, by the sound collection device, the service to be executed according to the voice instruction includes the following steps (1) to (2):
(1) and the sound acquisition equipment carries out voice recognition on the voice command to obtain the voice content of the voice command.
Specifically, the speech recognition method may adopt an algorithm based on Dynamic Time Warping (DTW), a Hidden Markov Model (HMM) based on a parametric Model, or a Vector Quantization (VQ) based on a non-parametric Model.
Further, the voice content and the service type are in a corresponding relationship, and the service type that the user wants to acquire can be determined through the voice content, the corresponding relationship can be set in the sound collection device by default, or can be set according to a function set by the user on the sound collection device, for example, when the user sets a route query function on the sound collection device through a terminal, the voice content and the service type corresponding to the route query function can be correspondingly set on the sound collection device.
(2) The sound collection device acquires a service corresponding to the voice content from a preset corresponding relationship between the voice content and the service as a service to be executed.
In the embodiment of the present disclosure, the preset correspondence between the voice content and the service may be embodied in two forms:
the preset corresponding relation between the voice content and the service can be embodied in a keyword-service form. Generally, the voice content may include keywords indicating services that the user wants to obtain. When the sound collection apparatus determines that the voice content includes any keyword, a service corresponding to the keyword may be determined as a service to be executed. For example, when a user wants to take notes with a sound collection device, the recognized speech content in the speech instruction may be "please take notes: and when the sound collection device determines that the voice content includes a keyword of "note taking", determining a recorded note service corresponding to the keyword of "note taking" as a service to be executed. When a user wants to query a route by using the sound collection device, the recognized voice content in the voice instruction may be "query a route from the a place to the B place", and when the sound collection device determines that the voice content includes a keyword of "query route", a route query service corresponding to the keyword of "query route" is determined as a service to be executed.
Further, in this implementation, the content other than the keyword in the voice content is the specific content of the service that the user wants to obtain. The sound collection device identifies the contents other than the keywords in the voice contents and determines them as the specific contents of the service. For example, "please note: in the voice content of a + B ═ C, "note taking" is a keyword, and it is determined that the service to be executed is the note taking service, and in addition, "a + B ═ C" is the specific content of the service, and it is determined that the note specifically required to be recorded is a + B ═ C; for another example, in the speech content of "query a route from a place to B place", the "query route" is a keyword, it is determined that the service to be executed is a query route service, and the "route from a place to B place" is specific content of the service, and it is determined that a route specifically required to be queried is from a place to B place.
The preset corresponding relation between the voice content and the service can be embodied in a sentence template-service form. When the sound collection device determines that the voice content conforms to any statement template, the service corresponding to the statement template may be determined as a service to be executed. For example, when a user wants to query a route by using a sound collection device, the voice content identified in the voice instruction may be "how to sit on a bus to B" or "how to ride a bicycle from a to B", at this time, a sentence template in the voice content is two adjacent specific position points in a sentence, and when the sentence template is identified, the service of the query route corresponding to the sentence template is determined as the service to be executed.
Further, in this implementation manner, when the sentence template-service form is adopted to represent the preset correspondence between the voice content and the service, if the specific content of the service is desired to be obtained, the sound collection device may identify the entire voice content, and determine the specific content of the service according to the identification.
After the sound collection equipment determines the service to be executed, the sound collection equipment also generates a service identifier corresponding to the service to be executed.
In step S303, the sound collection device sends a first access request to a server, where the server is a server corresponding to the service.
In step S302, the sound collection device has determined that a service is to be executed, and generates a service identification.
As an optional embodiment, after determining the service to be executed, the sound collection device further determines a corresponding server according to the service identifier. The following two ways can be used for determining the corresponding server according to the service identifier:
the sound collection equipment determines a service to be executed and generates a service identifier, and then determines the corresponding default server according to the service identifier. For example, the default server corresponding to the route query service may be an a map server, the default server corresponding to the note taking service may be an a note server, a correspondence between each service identifier and the default server is pre-stored in the sound collection device, and the correspondence may be modified by using a terminal bound to the sound collection device;
secondly, each service identification corresponds to a plurality of servers, the sound collection equipment determines the service to be executed and generates the service identification, and then the audio files inquiring the user are played according to the plurality of servers corresponding to the service identification, and the servers are determined according to the selected voice of the user. For example, the servers corresponding to the route query service are a map server A, a map server B and a map server C, after the sound collection device determines that the service to be executed is the route query service, the sound collection device plays an audio file inquiring about the user according to the service identifier, namely 'please select a map service needed by the user from the map service A, the map service B and the map service C', and determines the corresponding server according to the selection voice of the user. The corresponding relation between each service identification and the plurality of servers is pre-stored in the sound collection equipment, and the corresponding relation can be modified and added by using the terminal bound with the sound collection equipment.
Further, after the corresponding server is determined, the sound collection device may obtain the corresponding server address from a server address library stored in the sound collection device itself, or obtain the corresponding server address by using interaction with the terminal.
After the server address is obtained, optionally, the sound collection device may send a first access request to a corresponding server through the ethernet according to the obtained server address;
the first access request comprises a service identifier of a service to be executed and specific content of the service, and in addition, when authorization information of the service is stored in the sound collection device, the first access request also comprises the authorization information of the service, the authorization information also carries a timestamp, and the timestamp is generation time of the authorization information.
In step S304, after receiving the first access request, the server identifies authorization information carried in the first access request, and generates a request feedback message corresponding to the first access request, where the request feedback message carries the designation indication information.
After receiving the first access request, the server determines whether the first access request carries authorization information, wherein the specific determination method may be to identify whether a code string of the first access request includes a code corresponding to the authorization information, and when the first access request code string does not include a code corresponding to the authorization information, it is determined that the first access request does not carry the authorization information of the service, that is, the sound collection device that sent the first access request is not authorized by the service; when the first access request is judged to carry service authorization information, whether the authorization information is expired or not is further judged, specifically, the judgment method includes extracting a timestamp in the authorization information, adding the time in the timestamp to a default authorization effective period stored in a server, comparing an obtained result with the current time, if the time is greater than the current time, judging that the authorization information is not expired, and if the time is less than the current time, judging that the authorization information is expired.
Further, the server generates corresponding request feedback information according to a judgment result of the authorization information in the first access request, where the request feedback information carries indication information corresponding to the judgment result, and the indication information may be a segment of indication code. And when judging that the authorization information of the service is not carried in the first access request, generating corresponding first indication information, and when judging that the authorization information in the first access request is expired, generating corresponding second indication information.
In step S305, the server transmits a request feedback message to the sound collection apparatus.
Alternatively, the server may send a request feedback message of the first access request to the sound collection apparatus via the ethernet.
In step S306, the sound collection device receives a request feedback message returned by the server, and when the request feedback message carries specified indication information, it is determined that the sound collection device is not authorized by the service, and the specified indication information is used to indicate that no authorization information exists on the sound collection device or that the authorization information is expired.
After receiving the request feedback message, the sound collection equipment extracts the indication information in the request feedback message, and when the extracted indication information is the first indication information, the sound collection equipment is determined not to be authorized by the service, and the sound collection equipment does not have authorization information; and when the extracted indication information is the second indication information, determining that the sound acquisition equipment is not authorized by the service and the authorization information on the sound acquisition equipment is expired.
The process provided by the steps from S303 to S306 is adopted to determine whether the sound collection device is not authorized by the service, and the determination result is more real-time and accurate due to the determination by the server.
In a possible implementation manner, it may also be determined whether the sound collection device is authorized in another manner, specifically including:
when the sound acquisition equipment does not store the authorization information of the service, determining that the sound acquisition equipment is not authorized by the service; when the sound collection equipment stores the authorization information of the service, whether the authorization information is expired is detected, and when the authorization information is expired, the sound collection equipment is determined not to be authorized by the service. By adopting the mode to judge whether the sound acquisition equipment is not authorized by the service, the judgment process is simpler and quicker because the judgment of the server is not carried out.
When the sound collection equipment is determined not to be authorized by the service, acquiring the authorization information of the service through the interaction of the terminal bound with the sound collection equipment, wherein the interaction comprises the following steps:
in step S307, the sound collection device plays a prompt audio file, where the prompt audio file is used to instruct the user to authorize the sound collection device on the client, and sends a push notification to the client corresponding to the service on the terminal, where the push notification is used to instruct to display an authorization page of the service on the client.
The push notification sent to the terminal by the sound collection device is also provided with a client identifier and a service identifier, the client identifier is used for indicating a specific client which is opened after the terminal receives the push notification, and the service identifier is used for indicating an authorization interface of the terminal for displaying service in the client. The client is a client for managing the sound collection device, and the authorization interface is an interface for authorizing a service according to an operation of a user.
Specifically, when it is determined that no authorization information is stored in the sound collection device, playing a prompt audio file for prompting a user that the sound collection device does not store the authorization information; when it is determined that there is authorization information for the service in the sound collection device but the authorization information has expired, a prompt audio file for prompting the user that the authorization for the service has expired is played.
Optionally, in the step S307, the sound collection device plays the prompt audio file, and also prompts the user to perform an authorization operation on the client by pushing the notification, so as to achieve an efficient prompt effect, and during actual use, the sound collection device may only play the prompt audio file, and instruct the user to perform specific operations of opening the client and opening the authorization interface by prompting the audio file, so that the user may perform service authorization according to the instruction of the audio file, thereby avoiding interruption of normal operation of the terminal; the sound collection device can also only send a push notification, namely, the push notification which indicates the terminal to open the client and display the authorization interface is directly sent to the bound terminal, so that the terminal can automatically display the authorization interface, and the prompt efficiency is improved.
In step S308, when the terminal receives the push notification, an authorization interface of the client is displayed in response to the push notification, where the authorization interface is used to authorize a service to the sound collection device.
The push notification carries a client identifier to control a terminal bound with the sound acquisition equipment to display a client authorization interface.
In step S309, when the terminal detects an authorization operation on the authorization interface, the login information of the service to be authorized is sent to the server.
According to the difference of the authorization interfaces, a specific touch operation performed by the user on different authorization interfaces can be regarded as an authorization operation, for example, a dialog box appears in the authorization interface, and the user is asked to: and when the operation is identified, the stored login information corresponding to the service is sent to the server, so that the server generates the corresponding authorization information according to the login information.
As an optional embodiment, when an authorization operation on an authorization interface is detected, login information of a service to be authorized is sent to a server, there are two implementation manners:
the first mode is as follows: and when the authorization operation on the authorization interface is detected, the login information stored by the client is acquired, and the login information of the service to be authorized is sent to the server. In this way, a dialog box appears in the authorization interface asking the user: if the user clicks the 'yes' button, the user is indicated to perform authorization operation, at the moment, login information of the service A stored by the client is obtained, and the login information is sent to a server of the corresponding service A;
the second mode is as follows: and when the authorization operation on the authorization interface is detected, providing a login information input page, and sending the login information acquired through the login information input page to the server. In this way, an input box appears in the authorization interface to alert the user: the user inputs the login information, which indicates that the user performs the authorization operation, and at the moment, the login information input by the user is sent to the server of the corresponding service A. Specifically, the login information contains a username and password for the service.
In step S310, when the server receives the login information of the service to be authorized, the server generates the authorization information of the service according to the login information of the service to be authorized.
When the server receives the login information, the authority of the user is identified, and if the user has the authority of accessing the service, the authorization information of the service is generated.
Specifically, the authorization information of the service includes a temporary token, the token includes a user-defined arbitrary character string, the character string is generated by the server, and after the server generates the character string, the character string is stored, so that after receiving an access request of the terminal or the sound collection device, the character string is compared, and whether the terminal or the sound collection device has an access right is determined.
In step S311, the server transmits authorization information of the service to the terminal.
Alternatively, the server may send the authorization information to the terminal via ethernet.
In step S312, when the terminal receives the authorization information, the authorization information is transmitted to the sound collection apparatus.
Specifically, after receiving the authorization information from the server, the terminal directly forwards the authorization information to the sound collection device without any modification, so as to accelerate the authorization speed.
In step S313, when the sound collection apparatus receives the authorization information transmitted by the terminal, the authorization information is stored.
Specifically, the authorization information includes a temporary token.
In step S314, the sound collection device sends a second access request to the server according to the voice instruction, where the second access request carries authorization information of the service.
Specifically, the second access request carries the service identifier determined in step S302, the specific content of the service, the server address obtained in step S303, and the authorization information obtained in step S313.
In step S315, after the server receives the second access request, the server queries corresponding service data according to the second access request.
And the token carried by the second access request is provided with any character string generated by the server, when the server receives the second access request, the second access request is compared with the character string stored by the server, if the second access request is the same as the character string stored by the server, the terminal sending the access request is determined to have the authority of accessing the server data, namely, the authorization is obtained, and the corresponding service data is inquired according to the service identification and the specific content of the service.
For example, when the service to be executed corresponding to the service identifier in the second access request is a route query service, and the specific content of the service is how to travel from the place a to the place B, the server performs query according to the second access request to obtain a bus route to be taken from the place a to the place B, an upper station and a lower station of each route, and uses the bus route, the upper station and the lower station as corresponding service data.
In step S316, the server transmits the queried service data to the sound collection device.
Alternatively, the server may send the queried service data to the sound collection device via the ethernet.
In step S317, the sound collection device receives the service data returned by the server, and converts the service data into an audio file for playing.
Specifically, when the sound collection device receives the service data, the service data is converted into an audio file, and the service data is played through a speaker of the sound collection device, so that a user can more intuitively acquire information to be obtained.
Alternatively, there is also a possible implementation manner of the method shown in steps S315 to S317:
and when the service to be executed corresponding to the service identifier in the second access request is the service of the recorded data type, the server stores the specific content of the service.
Specifically, for example, when the service to be executed corresponding to the service identifier in the second access request is a note taking service, and the specific content of the service is a + B ═ C, after receiving the second access request, the server directly stores the specific content of the service that the user needs to store in the server, generates a corresponding unique tag for tagging the specific content of the service stored in the server, and sends the unique tag to the sound collection device, so that the server can find the specific content that the user wants according to the tag data when the user wants to extract the specific content next time. By adopting the two implementation modes, the service types available to the user are richer and more diverse.
According to the method provided by the embodiment of the disclosure, when the sound collection equipment receives the voice instruction and finds that the sound collection equipment is not authorized by the corresponding service, the sound collection equipment can operate on the terminal bound with the sound collection equipment, send the login information to the server, receive the authorization information and forward the login information to the sound collection equipment, so that the input convenience of the terminal is fully utilized to assist the sound collection equipment which cannot complete complex operation to complete the authorization of the service, and the authorization process is simpler and more efficient.
Fig. 4 is a block diagram illustrating an apparatus for obtaining service authorization information according to an example embodiment. Referring to fig. 4, the apparatus is used in a sound collection device, and includes an instruction receiving module 401, a determining module 402, and an obtaining module 403.
An instruction receiving module 401 configured to receive a voice instruction.
A determining module 402 configured to determine a service to be executed according to the voice instruction.
An obtaining module 403 configured to obtain authorization information of the service through interaction with the terminal bound to the sound collection device when it is determined that the sound collection device is not authorized by the service.
In one possible implementation, referring to fig. 5, the determining module 402 includes:
the recognition sub-module 4021 is configured to perform voice recognition on the voice instruction to obtain the voice content of the voice instruction.
The obtaining sub-module 4022 is configured to obtain a service corresponding to the voice content as a service to be executed, from the correspondence between the voice content and the service set in advance.
In one possible implementation, the apparatus further includes:
the first sending module 404 is configured to send the first access request to a server, where the server is a server corresponding to the service.
And a feedback receiving module 405 configured to receive a request feedback message returned by the server.
The determining module 406 is configured to determine that the sound collecting device is not authorized by the service when the request feedback message carries the specified indication information, where the specified indication information is configured to indicate that there is no authorization information on the sound collecting device or that the authorization information has expired.
In one possible implementation, the apparatus further includes:
the detecting module 407 is configured to detect whether the authorization information of the service is expired when the authorization information of the service is stored on the sound collecting apparatus, and determine that the sound collecting apparatus is not authorized by the service when the authorization information is expired.
A detection module 407 configured to determine that the sound collection device is not authorized by the service when authorization information of the service is not stored on the sound collection device.
In one possible implementation, referring to fig. 6, the obtaining module 403 includes:
a playing sub-module 4031 configured to play a prompt audio file configured to instruct a user to authorize the sound collection device on the client, and/or a push notification sub-module configured to send a push notification to a client corresponding to the service on the terminal, the push notification configured to instruct to display an authorization page of the service on the client.
And a receiving sub-module 4032 configured to receive authorization information sent by the terminal.
In one possible implementation, the apparatus further includes:
a storage module 408 configured to store authorization information for the service.
The second sending module 409 is configured to send a second access request to the server according to the voice instruction, where the second access request carries authorization information of the service.
And the service playing module 410 is configured to receive the service data returned by the server and convert the service data into an audio file for playing.
According to the device provided by the embodiment of the disclosure, when the sound collection equipment receives a voice instruction and finds that the sound collection equipment is not authorized by corresponding services, the sound collection equipment can operate on the terminal bound with the sound collection equipment, sends login information to the server, receives authorization information, and forwards the login information to the sound collection equipment, so that the input convenience of the terminal is fully utilized, the sound collection equipment which cannot complete complex operations is assisted to complete authorization of the services, and the authorization process is simpler and more efficient.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating an apparatus for obtaining service authorization information according to an example embodiment. Referring to fig. 7, the apparatus is configured as a terminal and includes a display module 501, a first transmitting module 502, a receiving module 503, and a second transmitting module 504.
A display module 501 configured to display an authorization interface of the client, where the authorization interface is configured to authorize a service to the sound collection device.
A first sending module 502 configured to send login information of a service to be authorized to the server when an authorization operation at the authorization interface is detected.
A receiving module 503 configured to receive authorization information of the service returned by the server.
A second sending module 504 configured to send the authorization information to the sound collection device.
In one possible implementation, the apparatus further includes:
a notification receiving module 505 configured to receive a push notification sent by the sound collecting apparatus, the push notification being configured to instruct an authorization page of the service to be displayed on the client.
The response module 506, in response to the push notification, performs the step of displaying the authorization interface of the client.
In one possible implementation, referring to fig. 8, the first sending module 502 includes:
the obtaining submodule 5021 is configured to obtain login information stored by a client and send the login information of a service to be authorized to a server when an authorization operation on an authorization interface is detected; or the like, or, alternatively,
the input sub-module 5022 is configured to provide a login information input page when an authorization operation on the authorization interface is detected, and send the login information acquired through the login information input page to the server.
According to the device provided by the embodiment of the disclosure, when the sound collection equipment receives a voice instruction and finds that the sound collection equipment is not authorized by corresponding services, the sound collection equipment can operate on the terminal bound with the sound collection equipment, sends login information to the server, receives authorization information, and forwards the login information to the sound collection equipment, so that the input convenience of the terminal is fully utilized, the sound collection equipment which cannot complete complex operations is assisted to complete authorization of the services, and the authorization process is simpler and more efficient.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 9 is a block diagram illustrating a terminal 900 according to an exemplary embodiment, which may be used to execute the method for obtaining service authorization information provided in the foregoing embodiments. For example, terminal 900 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.
Referring to fig. 9, terminal 900 can include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
Processing component 902 generally controls overall operation of terminal 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
Memory 904 is configured to store various types of data to support operation at terminal 900. Examples of such data include instructions for any application or method operating on terminal 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power components 906 provide power to the various components of the terminal 900. The power components 906 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal 900.
The multimedia component 908 comprises a screen providing an output interface between the terminal 900 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the terminal 900 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when terminal 900 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing various aspects of state assessment for the terminal 900. For example, sensor assembly 914 can detect an open/closed state of terminal 900, relative positioning of components, such as a display and keypad of terminal 900, change in position of terminal 900 or a component of terminal 900, presence or absence of user contact with terminal 900, orientation or acceleration/deceleration of terminal 900, and temperature change of terminal 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communication component 916 is configured to facilitate communications between terminal 900 and other devices in a wired or wireless manner. Terminal 900 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described method of acquiring service authorization information.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as memory 904 comprising instructions, executable by processor 920 of terminal 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 10 is a block diagram illustrating an apparatus 1000 for obtaining service authorization information according to an example embodiment. For example, the apparatus 1000 may be provided as a server. Referring to fig. 10, the apparatus 1000 includes a processing component 1022 that further includes one or more processors and memory resources, represented by memory 1032, for storing instructions, such as application programs, that are executable by the processing component 1022. The application programs stored in memory 1032 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1022 is configured to execute instructions to perform the above-described method of obtaining service authorization information.
The device 1000 may also include a power supply component 1026 configured to perform power management for the device 1000, a wired or wireless network interface 1050 configured to connect the device 1000 to a network, and an input/output (I/O) interface 1058. The apparatus 1000 may operate based on an operating system stored in memory 1032, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a computer-readable storage medium is also provided, for example a memory having stored thereon a computer program which, when executed by a processor, implements the method in the above-described embodiments. For example, the computer readable storage medium may be a read-only memory (ROM), a random-access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (19)

1. A method for obtaining service authorization information, wherein the method is applied to a sound collection device, and the method comprises:
receiving a voice instruction;
determining a service to be executed according to the voice instruction, and sending a first access request to a server, wherein the server is a server corresponding to the service; receiving a request feedback message returned by the server; when the request feedback message carries designated indication information, determining that the sound acquisition equipment is not authorized by the service, wherein the designated indication information is used for indicating that the sound acquisition equipment does not have the authorization information or the authorization information is expired;
and when the sound acquisition equipment is determined not to be authorized by the service, acquiring the authorization information of the service through interaction with a terminal bound with the sound acquisition equipment.
2. The method of claim 1, wherein the determining the service to be executed according to the voice instruction comprises:
carrying out voice recognition on the voice instruction to obtain the voice content of the voice instruction;
and acquiring a service corresponding to the voice content from a preset corresponding relation between the voice content and the service as a service to be executed.
3. The method of claim 1, wherein after determining the service to be performed, the method further comprises:
when the sound collection equipment stores the authorization information of the service, detecting whether the authorization information is expired, and when the authorization information is expired, determining that the sound collection equipment is not authorized by the service;
when the sound collection device does not store the authorization information of the service, determining that the sound collection device is not authorized by the service.
4. The method of claim 1, wherein the obtaining authorization information of the service through interaction with the terminal bound to the sound collection device comprises:
playing a prompt audio file, wherein the prompt audio file is used for indicating a user to authorize the sound acquisition equipment on a client, and/or sending a push notification to a client corresponding to the service on the terminal, and the push notification is used for indicating an authorization page of the service to be displayed on the client;
and receiving the authorization information sent by the terminal.
5. The method of claim 1, wherein after obtaining the authorization information of the service through interaction with the terminal bound to the sound collection device when it is determined that the sound collection device is not authorized by the service, the method further comprises:
storing authorization information for the service;
sending a second access request to the server according to the voice command, wherein the second access request carries authorization information of the service;
and receiving the service data returned by the server, and converting the service data into an audio file for playing.
6. A method for obtaining service authorization information is applied to a terminal, and the method comprises the following steps:
displaying an authorization interface of a client, wherein the authorization interface is used for performing service authorization on sound acquisition equipment;
when the authorization operation on the authorization interface is detected, the login information of the service to be authorized is sent to a server;
receiving authorization information of the service returned by the server;
and sending the authorization information to the sound collection equipment.
7. The method of claim 6, wherein before displaying the authorization interface of the client, the method further comprises:
receiving a push notification sent by the sound collection device, wherein the push notification is used for indicating that an authorization page of the service is displayed on the client;
and responding to the push notification, and executing the step of displaying the authorization interface of the client.
8. The method of claim 6, wherein sending login information of a service to be authorized to a server when the authorization operation on the authorization interface is detected comprises:
when the authorization operation on the authorization interface is detected, the login information stored by the client is obtained, and the login information of the service to be authorized is sent to a server; or the like, or, alternatively,
and when the authorization operation on the authorization interface is detected, providing a login information input page, and sending the login information acquired through the login information input page to a server.
9. An apparatus for obtaining service authorization information, wherein the apparatus is applied to a sound collection device, and the apparatus comprises:
the instruction receiving module is used for receiving a voice instruction;
the determining module is used for determining a service to be executed according to the voice instruction and sending a first access request to a server, wherein the server is a server corresponding to the service; receiving a request feedback message returned by the server; when the request feedback message carries designated indication information, determining that the sound acquisition equipment is not authorized by the service, wherein the designated indication information is used for indicating that the sound acquisition equipment does not have the authorization information or the authorization information is expired;
and the acquisition module is used for acquiring the authorization information of the service through the interaction with the terminal bound with the sound acquisition equipment when the sound acquisition equipment is determined not to be authorized by the service.
10. The apparatus of claim 9, wherein the determining module comprises:
the recognition submodule is used for carrying out voice recognition on the voice instruction to obtain the voice content of the voice instruction;
and the obtaining sub-module is used for obtaining the service corresponding to the voice content from the preset corresponding relation between the voice content and the service as the service to be executed.
11. The apparatus of claim 9, further comprising:
the detection module is used for detecting whether the authorization information is overdue or not when the authorization information of the service is stored in the sound acquisition equipment, and determining that the sound acquisition equipment is not authorized by the service when the authorization information is overdue;
the detection module is used for determining that the sound collection equipment is not authorized by the service when the sound collection equipment does not store the authorization information of the service.
12. The apparatus of claim 9, wherein the obtaining module comprises:
the system comprises a playing submodule and a push notification submodule, wherein the playing submodule is used for playing a prompt audio file, the prompt audio file is used for indicating a user to authorize the sound acquisition equipment on a client, and/or the push notification submodule is used for sending a push notification to a client corresponding to the service on the terminal, and the push notification is used for indicating an authorization page of the service to be displayed on the client;
and the receiving submodule is used for receiving the authorization information sent by the terminal.
13. The apparatus of claim 9, further comprising:
the storage module is used for storing the authorization information of the service;
a second sending module, configured to send a second access request to a server according to the voice instruction, where the second access request carries authorization information of the service;
and the service playing module is used for receiving the service data returned by the server and converting the service data into an audio file for playing.
14. An apparatus for obtaining service authorization information, the apparatus being applied to a terminal, the apparatus comprising:
the display module is used for displaying an authorization interface of the client, and the authorization interface is used for performing service authorization on the sound acquisition equipment;
the first sending module is used for sending the login information of the service to be authorized to the server when the authorization operation on the authorization interface is detected;
the receiving module is used for receiving the authorization information of the service returned by the server;
and the second sending module is used for sending the authorization information to the sound collection equipment.
15. The apparatus of claim 14, further comprising:
a notification receiving module, configured to receive a push notification sent by the sound collection device, where the push notification is used to instruct a client to display an authorization page of the service;
and the response module responds to the push notification and executes the step of displaying the authorization interface of the client.
16. The apparatus of claim 14, wherein the first sending module comprises:
the obtaining submodule is used for obtaining the login information stored by the client when the authorization operation on the authorization interface is detected, and sending the login information of the service to be authorized to a server; or the like, or, alternatively,
and the input sub-module is used for providing a login information input page when the authorization operation on the authorization interface is detected, and sending the login information acquired through the login information input page to a server.
17. A sound collection apparatus characterized by comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
receiving a voice instruction;
determining a service to be executed according to the voice instruction, and sending a first access request to a server, wherein the server is a server corresponding to the service; receiving a request feedback message returned by the server; when the request feedback message carries designated indication information, determining that the sound acquisition equipment is not authorized by the service, wherein the designated indication information is used for indicating that the sound acquisition equipment does not have the authorization information or the authorization information is expired;
and when the sound acquisition equipment is determined not to be authorized by the service, acquiring the authorization information of the service through interaction with a terminal bound with the sound acquisition equipment.
18. A terminal, characterized in that the terminal comprises:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
displaying an authorization interface of a client, wherein the authorization interface is used for performing service authorization on sound acquisition equipment;
when the authorization operation on the authorization interface is detected, the login information of the service to be authorized is sent to a server;
receiving authorization information of the service returned by the server;
and sending the authorization information to the sound collection equipment.
19. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 8.
CN201711273101.6A 2017-12-06 2017-12-06 Method and device for acquiring service authorization information Active CN107911386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711273101.6A CN107911386B (en) 2017-12-06 2017-12-06 Method and device for acquiring service authorization information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711273101.6A CN107911386B (en) 2017-12-06 2017-12-06 Method and device for acquiring service authorization information

Publications (2)

Publication Number Publication Date
CN107911386A CN107911386A (en) 2018-04-13
CN107911386B true CN107911386B (en) 2020-12-04

Family

ID=61854591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711273101.6A Active CN107911386B (en) 2017-12-06 2017-12-06 Method and device for acquiring service authorization information

Country Status (1)

Country Link
CN (1) CN107911386B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108694946A (en) * 2018-05-09 2018-10-23 四川斐讯信息技术有限公司 A kind of speaker control method and system
CN109117235B (en) * 2018-08-24 2019-11-05 腾讯科技(深圳)有限公司 A kind of business data processing method, device and relevant device
CN109491792B (en) * 2018-11-13 2020-12-25 北京车和家信息技术有限公司 Page rollback method, device and gateway
CN109583180A (en) * 2018-11-29 2019-04-05 北京小米移动软件有限公司 Management method, device, equipment and the storage medium of intelligent sound box
CN109582872B (en) * 2018-12-04 2021-11-16 北京羽扇智信息科技有限公司 Information pushing method and device, electronic equipment and storage medium
CN110334500B (en) * 2019-06-28 2022-04-12 百度在线网络技术(北京)有限公司 Authority control method and device of intelligent sound box, intelligent sound box and storage medium
CN110971617A (en) * 2019-12-24 2020-04-07 苏州思必驰信息科技有限公司 Voice equipment authorization method, authentication method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618780A (en) * 2014-10-23 2015-05-13 腾讯科技(深圳)有限公司 Method and system for controlling electrical apparatus
CN104778946A (en) * 2014-01-10 2015-07-15 中国电信股份有限公司 Voice control method and system

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130133629A (en) * 2012-05-29 2013-12-09 삼성전자주식회사 Method and apparatus for executing voice command in electronic device
CN103338193B (en) * 2013-06-14 2015-07-01 腾讯科技(深圳)有限公司 Method, system and device for initial media equipment
CN104168270B (en) * 2014-07-31 2016-01-13 腾讯科技(深圳)有限公司 Auth method, server, client and system
CN104519207B (en) * 2014-12-08 2018-01-19 广东欧珀移动通信有限公司 A kind of control method and device of intelligent terminal
CN106297780A (en) * 2015-06-03 2017-01-04 深圳市轻生活科技有限公司 A kind of voice interactive method and system and Intelligent voice broadcasting terminal
CN106683677B (en) * 2015-11-06 2021-11-12 阿里巴巴集团控股有限公司 Voice recognition method and device
CN107277153B (en) * 2017-06-30 2020-05-26 百度在线网络技术(北京)有限公司 Method, device and server for providing voice service

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104778946A (en) * 2014-01-10 2015-07-15 中国电信股份有限公司 Voice control method and system
CN104618780A (en) * 2014-10-23 2015-05-13 腾讯科技(深圳)有限公司 Method and system for controlling electrical apparatus

Also Published As

Publication number Publication date
CN107911386A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
CN107911386B (en) Method and device for acquiring service authorization information
US20170155958A1 (en) Method, Apparatus and System for Playing Multimedia Data, and Storage Medium
US11405659B2 (en) Method and terminal device for video recording
CN105847243B (en) Method and device for accessing intelligent camera
US10764934B2 (en) Method, apparatus for terminal device to access wireless network
CN106375782B (en) Video playing method and device
US10242678B2 (en) Friend addition using voiceprint analysis method, device and medium
KR101735755B1 (en) Method and apparatus for prompting device connection
EP3933570A1 (en) Method and apparatus for controlling a voice assistant, and computer-readable storage medium
CN106097494A (en) The method for unlocking of smart lock and device
CN107769881A (en) Information synchronization method, apparatus and system, storage medium
CN107666536B (en) Method and device for searching terminal
US20210326429A1 (en) Access control method and device, electronic device and storage medium
WO2016155304A1 (en) Wireless access point control method and device
CN111696553A (en) Voice processing method and device and readable medium
CN106331328B (en) Information prompting method and device
CN107205198B (en) Microphone unlocking method and device
US10764418B2 (en) Method, device and medium for application switching
EP3113051A1 (en) Method and apparatus for acquiring search results, computer program and recording medium
US20170034347A1 (en) Method and device for state notification and computer-readable storage medium
CN111061452A (en) Voice control method and device of user interface
CN110213062B (en) Method and device for processing message
US20160142885A1 (en) Voice call prompting method and device
CN114464186A (en) Keyword determination method and device
CN112863511B (en) Signal processing method, device and storage medium

Legal Events

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