CN112634887B - Voice mode control method, device and system - Google Patents

Voice mode control method, device and system Download PDF

Info

Publication number
CN112634887B
CN112634887B CN202011443084.8A CN202011443084A CN112634887B CN 112634887 B CN112634887 B CN 112634887B CN 202011443084 A CN202011443084 A CN 202011443084A CN 112634887 B CN112634887 B CN 112634887B
Authority
CN
China
Prior art keywords
voice
client
mode
target
interaction value
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
CN202011443084.8A
Other languages
Chinese (zh)
Other versions
CN112634887A (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 Wutong Chelian Technology Co Ltd
Original Assignee
Beijing Wutong Chelian Technology 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 Wutong Chelian Technology Co Ltd filed Critical Beijing Wutong Chelian Technology Co Ltd
Priority to CN202011443084.8A priority Critical patent/CN112634887B/en
Publication of CN112634887A publication Critical patent/CN112634887A/en
Application granted granted Critical
Publication of CN112634887B publication Critical patent/CN112634887B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a voice mode control method, device and system, and belongs to the field of voice processing. If the voice client determines that the idle resource amount of the terminal is greater than the resource amount threshold and the working mode of the voice client is a simplex mode, the working mode of the voice client can be switched to a duplex mode. The voice client can dynamically adjust the working mode according to the idle resource quantity of the terminal and the current working mode, so that the flexibility of voice mode control of the voice client is improved.

Description

Voice mode control method, device and system
Technical Field
The present disclosure relates to the field of speech processing, and in particular, to a method, apparatus, and system for controlling a speech mode.
Background
Currently, a voice client may be installed in a terminal. If the voice client is in simplex mode, the voice client can only respond to one voice command at the same time. For example, if the voice client receives the voice instructions of "open music" and "open map" at the same time, the voice client can only start the music client or the map client, but cannot start the music client and the map client at the same time.
In the related art, in order to improve the efficiency of man-machine interaction, a switching button may be displayed in an application interface of the voice client. After detecting the selection instruction for the switching button, the voice client can switch the working mode into the duplex mode. At this time, the voice client may respond to a plurality of voice instructions at the same time.
However, the efficiency of voice mode control for voice clients is low due to the need for the user to manually switch the voice mode of the voice client.
Disclosure of Invention
The embodiment of the disclosure provides a voice mode control method, device and system, which can solve the problem of low efficiency of voice mode control of a voice client caused by the fact that a user is required to manually switch the voice mode of the voice client in the related art. The technical scheme is as follows:
in one aspect, a voice mode control method is provided, applied to a voice client in a terminal, and the method includes:
receiving a voice starting instruction aiming at a controlled client;
determining the idle resource amount of the terminal in response to the voice start instruction;
if the idle resource amount is larger than a resource amount threshold and the working mode of the voice client is a simplex mode, switching the working mode of the voice client into a duplex mode;
the voice client can respond to a voice command at the same moment in the simplex mode; the voice client can respond to a plurality of voice instructions at the same time in the duplex mode.
Optionally, the method further comprises:
and if the idle resource quantity is smaller than or equal to the resource quantity threshold value and the working mode of the voice client is a duplex mode, switching the working mode of the voice client into a simplex mode.
Optionally, if the amount of idle resources is less than or equal to the threshold of the amount of resources and the working mode of the voice client is a duplex mode, switching the working mode of the voice client to a simplex mode includes:
if the idle resource quantity is smaller than or equal to a resource quantity threshold value, determining a target interaction value;
if the target interaction value is smaller than or equal to the interaction value threshold and the working mode of the voice client is a duplex mode, switching the working mode of the voice client into a simplex mode;
the target interaction value is used for indicating the times of the voice client responding to the voice control instruction aiming at the target client in a target time period, and the target client comprises the controlled client.
Optionally, the method further comprises:
if the idle resource quantity is smaller than or equal to a resource quantity threshold value, determining a target interaction value;
if the target interaction value is larger than the interaction value threshold and the working mode of the voice client is a simplex mode, switching the working mode of the voice client into the duplex mode;
the target interaction value is used for indicating the times of the voice client responding to the voice control instruction aiming at the target client in a target time period, and the target client comprises the controlled client.
Optionally, the target client further includes: and the client belongs to the same type as the controlled client.
Optionally, the determining the target interaction value includes:
sending an interaction value acquisition request to a server, wherein the interaction value acquisition request carries an identifier of the controlled client;
and receiving the target interaction value sent by the server.
In another aspect, a voice mode control apparatus is provided, which is applied to a voice client in a terminal, and the apparatus includes:
the receiving module is used for receiving a voice starting instruction aiming at the controlled client;
the first determining module is used for responding to the voice starting instruction and determining the idle resource quantity of the terminal;
the first switching module is used for switching the working mode of the voice client into a duplex mode if the idle resource amount is larger than a resource amount threshold and the working mode of the voice client is a simplex mode;
the voice client can respond to a voice command at the same moment in the simplex mode; the voice client can respond to a plurality of voice instructions at the same time in the duplex mode.
In yet another aspect, a voice mode control system is provided, the system comprising: a voice client and a server, the voice client comprising the voice mode control apparatus as described in the above aspect;
the server establishes communication connection with the voice client, and is used for receiving the voice instruction sent by the voice client, analyzing the voice instruction to obtain a control instruction, and sending the control instruction to the voice client.
Optionally, the server is further configured to:
receiving an interaction value acquisition request sent by the voice client, wherein the interaction value acquisition request carries an identifier of a controlled client;
determining a target interaction value;
and sending the target interaction value to the voice client.
In yet another aspect, a computer-readable storage medium having instructions stored therein that are loaded and executed by a processor to implement the voice mode control method of the above aspect is provided.
In yet another aspect, a terminal is provided, including: the voice mode control system comprises a memory, a processor and a computer program stored on the memory, wherein the processor realizes the voice mode control method according to the aspect when executing the computer program.
In yet another aspect, a computer program product is provided comprising instructions which, when run on the computer, cause the computer to perform the speech mode control method of the above aspect.
The technical scheme provided by the embodiment of the disclosure has the beneficial effects that at least:
the embodiment of the disclosure provides a voice mode control method, device and system, and a voice client can switch the working mode of the voice client into a duplex mode if the voice client determines that the idle resource amount of a terminal is greater than a resource amount threshold and the working mode of the voice client is a simplex mode. The voice client can dynamically adjust the working mode according to the idle resource quantity of the terminal and the current working mode, so that the flexibility of voice mode control of the voice client is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings may be obtained according to these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is a schematic diagram of an implementation environment involved in a voice mode control method provided by an embodiment of the present disclosure;
FIG. 2 is a flow chart of a method for voice mode control provided by an embodiment of the present disclosure;
FIG. 3 is a flow chart of another voice mode control method provided by an embodiment of the present disclosure;
FIG. 4 is a block diagram of a voice mode control apparatus provided by an embodiment of the present disclosure;
FIG. 5 is a block diagram of another speech mode control apparatus provided by an embodiment of the present disclosure;
fig. 6 is a block diagram of yet another voice mode control apparatus provided by an embodiment of the present disclosure.
Detailed Description
For the purposes of clarity, technical solutions and advantages of the present disclosure, the following further details the embodiments of the present disclosure with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of an implementation environment related to a voice mode control method according to an embodiment of the disclosure. As shown in fig. 1, the implementation environment may include: a terminal 10 and a server 20. The terminal 10 may be a device with a voice client installed, such as a vehicle, a personal computer, a notebook computer, a tablet computer, or a mobile phone. The server 20 may be a server, a server cluster comprising a plurality of servers, or a cloud computing service center. And, the server 20 may be a background server of the voice client. The voice client in the terminal 10 may establish a communication connection with the server 20.
Fig. 2 is a flowchart of a voice mode control method according to an embodiment of the present disclosure. The method may be applied to a voice client in the terminal 10 shown in fig. 1. As shown in fig. 2, the method may include:
step 201, a voice start instruction for a controlled client is received.
The controlled client may be any one of a plurality of clients installed in the terminal. For example, if the controlled client is map client a, the voice start instruction may be "open map a".
Step 202, determining the idle resource amount of the terminal in response to the voice start instruction.
After receiving the voice starting instruction aiming at the controlled client, the voice client can respond to the voice starting instruction to determine the idle resource quantity of the terminal. Alternatively, the amount of free resources may include at least one of an amount of free resources of a central processing unit (central processing unit, CPU) of the terminal and an amount of free resources of a memory of the terminal.
Step 203, if the idle resource amount is greater than the resource amount threshold and the working mode of the voice client is simplex mode, switching the working mode of the voice client to duplex mode.
The voice client can respond to a voice command at the same time under a simplex mode. The voice client can respond to a plurality of voice instructions at the same time in a duplex mode.
After determining the amount of free resources of the terminal, the voice client may detect whether the amount of free resources is greater than a resource amount threshold. If the idle resource amount is determined to be larger than the resource amount threshold and the working mode of the voice client is a simplex mode, the voice client can switch the working mode of the voice client to a duplex mode, so that the voice client can respond to a plurality of voice instructions at the same time, and the efficiency of man-machine interaction is improved. The resource amount threshold may be a fixed value stored in advance in the voice client.
In summary, the embodiment of the present disclosure provides a voice mode control method, where if a voice client determines that the idle resource amount of a terminal is greater than a resource amount threshold, and the working mode of the voice client is a simplex mode, the working mode of the voice client may be switched to a duplex mode. The voice client can dynamically adjust the working mode according to the idle resource quantity of the terminal and the current working mode, so that the flexibility of voice mode control of the voice client is improved.
Fig. 3 is a flowchart of another voice mode control method provided by an embodiment of the present disclosure. The method may be applied to voice clients and servers 20 in the terminal 10 shown in fig. 1. As shown in fig. 3, the method may include:
step 301, a voice start instruction for a controlled client is received.
The controlled client may be any one of a plurality of clients installed in the terminal. For example, if the controlled client is map client a, the voice start instruction may be "open map a".
Step 302, determining the idle resource amount of the terminal in response to the voice start instruction.
After receiving the voice starting instruction aiming at the controlled client, the voice client can respond to the voice starting instruction to determine the idle resource quantity of the terminal. Alternatively, the amount of idle resources may include at least one of an amount of idle resources of a CPU in the terminal and an amount of idle resources of a memory in the terminal.
Optionally, after receiving the voice start instruction, the voice client may send the voice start instruction to the server. After receiving the voice start instruction, the server can analyze the voice start instruction to obtain a start control instruction. The server then sends the start control command to the voice client. After receiving the start control instruction, the voice client can respond to the start control instruction to determine the idle resource amount of the terminal.
Step 303, detecting whether the amount of idle resources is greater than a resource amount threshold.
In the disclosed embodiments, the operating modes of the voice client may include a simplex mode and a duplex mode. The voice client can respond to a voice command at the same time in a simplex mode, and the consumption of the voice client on the resource amount in the terminal is low. The voice client can respond to a plurality of voice instructions at the same time in a duplex mode, and the consumption of the voice client on the resource amount in the terminal is high.
After determining the amount of free resources of the terminal, the voice client may detect whether the amount of free resources is greater than a resource amount threshold. If the detected idle resource amount of the terminal is larger than the resource amount threshold, the voice client can determine that the current idle resource amount of the terminal is more, and the voice client can respond to a plurality of voice instructions at the same time without causing the terminal to be blocked. The resource amount threshold may be a fixed value stored in advance in the voice client.
After determining that the amount of idle resources to the terminal is greater than the resource amount threshold, if the voice client is detected to be in simplex mode, step 306 may be performed. If it is detected that the operation mode of the voice client is duplex mode, step 307 may be performed.
If the detected free resource amount of the terminal is smaller than or equal to the resource amount threshold, the voice client can determine that the current free resource amount of the terminal is smaller. If the voice client responds to multiple voices at the same time, the voice client may cause the terminal to be jammed, then the voice client may execute step 304.
Step 304, determining the target interaction value.
And if the voice client detects that the idle resource quantity is smaller than or equal to the resource quantity threshold, the voice client can determine the target interaction value. The target interaction value is used for indicating the number of times that the voice client responds to the voice control instruction aiming at the target client in a target time period, and the target client can comprise the controlled client. For example, the duration of the target time period may be one week or one month.
Optionally, the target client may further include a client that is of the same type as the controlled client, i.e. a client that implements the same function as the controlled client. For example, the controlled client and the client belonging to the same type as the controlled client are both used for navigation, or the controlled client and the client belonging to the same type as the controlled client are both used for playing music.
In the process of determining the target value, in an optional implementation manner of the embodiment of the present disclosure, if the voice client determines that the idle resource amount is less than or equal to the resource amount threshold, the voice client may send an interaction value acquisition request to the server, where the interaction value acquisition request carries an identifier of the controlled client. After receiving the interaction value acquisition request, the server may determine a target interaction value and send the target interaction value to the voice client. Accordingly, the voice client may receive the target interaction value sent by the server.
Optionally, before receiving the interaction value acquisition request, the server may count a total number n of times the voice client responds to the voice command for the target client in the target period and an interaction number m of times the voice client responds to the voice control command for the target client in the target period, and determine a ratio of the interaction number m and the total number n as the interaction value s, whereThe voice command comprises a voice starting command and a voice control command. And then the server can store the identification of the target client (namely the identification of the controlled client included in the identification of the target client and the identification of the client belonging to the same type as the controlled client) in correspondence with the interaction value s, so as to obtain the correspondence between the client and the interaction value. After receiving the request for obtaining the interaction value, the server can determine the target interaction value corresponding to the controlled client from the corresponding relation between the client and the interaction value.
Optionally, if the target client includes a controlled client and a client that is of the same type as the controlled client. The server may count the total number of times the voice client responds to the voice command for the target client n during the target time period. Meanwhile, for any client included in the target client, the server may count the number m of times the voice client responds to the voice control instruction for any client after the voice client responds to the voice start instruction for the any client and before the voice client does not respond to the voice start instruction for other clients. The other clients are clients except the target client among the plurality of clients installed in the terminal.
For example, assume that the target client includes a controlled client and a client belonging to the same type as the controlled client, and the total number of times n of voice commands for the target client and the number of interactions m of voice control commands for the target client are both 0. The voice client may send the voice start instruction and the first voice identification to the server after receiving the voice start instruction "open map a" for the controlled client within the target period. After receiving the voice start instruction, the server analyzes the voice start instruction 'map A is opened', determines that the voice start instruction belongs to the navigation type, and determines the total number of times n of the voice instruction aiming at the target client as 1. The server may then send a start control instruction to the voice client based on the voice start instruction "open map a". The voice client may then initiate the controlled client in response to the initiation control instruction.
And after receiving a voice control instruction for the controlled client to 'navigate to western security', the voice client sends the voice control instruction and a second voice identifier to the server, wherein the second voice identifier is the same as the first voice identifier. After receiving the voice control instruction, if the server determines that the second voice identifier is the same as the first voice identifier, and the server analyzes the voice control instruction 'navigation western security', then determines that the voice control instruction belongs to a navigation type. The server may determine that the voice client is still performing voice interaction based on the controlled client, and may update the total number of voice commands n for the target client to 2, and determine the number of interactions m for the target client to 1. The server may then send an area selection interface to the controlled client based on the voice control instruction "navigate to west ampere". Wherein, the area selection interface can display a goose tower area, an uncut area, a tombstone area and the like.
And after receiving a voice control instruction 'wild goose tower region' aiming at the controlled client, the voice client sends the voice control instruction and a third voice identifier to the server, wherein the third voice identifier is the same as the second voice identifier. After receiving the voice control instruction, if the third voice identifier is determined to be the same as the second voice identifier, and the server analyzes the voice control instruction 'Yanta region', so as to determine that the voice control instruction belongs to the navigation type. The server may determine that the voice client is still performing voice interaction based on the controlled client, and then update the total number of voice commands n for the target client to 3, and update the number of interactions m for the target client to 2. The server may then send a location selection interface to the controlled client based on the voice control command "Yanta zone". The location selection interface may display "WW park", "x mall", and "p subway entrance", etc.
And after receiving a voice control command 'WW park' for the controlled client, the voice client sends the voice control command and a fourth voice identifier to the server, wherein the fourth voice identifier is the same as the third voice identifier. After receiving the voice control instruction, if the fourth voice identifier is determined to be the same as the third voice identifier, and the server analyzes the voice control instruction 'WW park' to determine that the voice control instruction belongs to the navigation type. The server may determine that the voice client is still performing voice interaction based on the controlled client, and may update the total number of voice commands n for the target client to 4 and update the number of interactions m for the target client to 3. The server may then send a navigation route to the WW park to the controlled client based on the voice control instruction "WW park".
In the process that the controlled client uses the navigation route to navigate to the WW park, if the voice client receives a voice starting instruction of opening music for other clients, the voice control instruction and a fifth voice identifier can be sent to the server, and the fifth voice identifier is different from the fourth voice identifier. After receiving the voice start instruction, if the fifth voice identifier is different from the fourth voice identifier, the server does not update the total number n of voice instructions for the target client and the interaction number m for the target client.
Then, in the target period, the voice client may continue to update the total number of times n of the voice command for the target client and the number of interactions m for the target client in the process of responding to the voice command for the target client. And finally, the corresponding relation between the clients of different types and the interaction value can be determined.
In another optional implementation manner of the embodiment of the present disclosure, the voice client may store a correspondence between the client and the interaction value. If the voice client determines that the idle resource amount is smaller than or equal to the resource amount threshold, the voice client can determine the target interaction value corresponding to the identifier of the controlled client from the corresponding relationship between the client and the interaction value according to the identifier of the controlled client.
Optionally, after determining the correspondence between the client and the interaction value, the server may send the correspondence to the voice client. After determining that the idle resource amount is less than or equal to the resource amount threshold, the voice client can determine a target interaction value corresponding to the identifier of the controlled client from the corresponding relationship between the client and the interaction value according to the identifier of the controlled client.
In the embodiment of the disclosure, the server may further update the correspondence between the client and the interaction value according to the total number n of voice commands for the target client and the interaction number m for the target client determined in the target time period at intervals of an update period, so as to achieve flexibility and reliability of voice mode control for the voice client.
Step 305, detecting whether the target interaction value is greater than an interaction value threshold.
After determining the target interaction value, the voice client may detect whether the target interaction value is greater than an interaction value threshold. If the target interaction value is detected to be greater than the interaction value threshold, the voice client can determine that the voice client responds to the voice control instruction aiming at the target client in a target time period, namely the use frequency of the target client in the target time period is higher. If the target interaction value is detected to be less than or equal to the interaction value threshold, the voice client can determine that the frequency of the voice client responding to the voice control instruction for the target client is lower in the target time period, namely the frequency of using the target client is lower in the target time period. The interaction value threshold is a fixed value stored in the voice client in advance.
In the embodiment of the present disclosure, if the voice client detects that the target interaction value is greater than the interaction value threshold and the working mode of the voice client is a simplex mode, step 306 may be executed. If the voice client detects that the target interaction value is greater than the interaction value threshold and the working mode of the voice client is a duplex mode, step 307 may be executed.
If the voice client detects that the target interaction value is less than or equal to the interaction value threshold and the working mode of the voice client is simplex mode, step 308 may be executed. If the voice client detects that the target interaction value is less than or equal to the interaction value threshold and the working mode of the voice client is the duplex mode, the voice client may execute step 309.
Step 306, switching the working mode of the voice client to the duplex mode.
In the embodiment of the disclosure, if the voice client detects that the idle resource amount of the terminal is greater than the resource amount threshold, the working mode of the voice client is a simplex mode. The voice client can determine that the current idle resource amount of the terminal is more, at the moment, the voice client responds to a plurality of voices at the same moment and does not cause the terminal to be blocked, and the voice client can switch the working mode of the voice client into a duplex mode, so that the voice client can respond to a plurality of voice instructions at the same moment, and the efficiency of man-machine interaction is improved.
After detecting that the idle resource quantity of the terminal is smaller than or equal to the resource quantity threshold, the voice client detects that the target interaction value is larger than the interaction value threshold. The voice client may determine that the frequency of voice client responses to voice control instructions for the target client is higher during the target time period, i.e., the frequency of user use of the target client is higher during the target time period. If the working mode of the voice client is simplex mode, the voice client can switch the working mode of the voice client into duplex mode even if the current idle resource amount of the terminal is less, so that better experience is provided for the user.
Step 307, keeping the working mode of the voice client unchanged as the duplex mode.
In the embodiment of the disclosure, if the voice client detects that the idle resource amount of the terminal is greater than the resource amount threshold, the working mode of the voice client is a duplex mode. The voice client can determine that the current idle resource amount of the terminal is more, and the voice client responds to a plurality of voices at the same time at the moment, so that the terminal is not blocked, and the voice client can keep the working mode of the voice client unchanged as a duplex mode.
After detecting that the idle resource quantity of the terminal is smaller than or equal to the resource quantity threshold, the voice client detects that the target interaction value is larger than the interaction value threshold. The voice client may determine that the frequency of voice client responses to voice control instructions for the target client is higher during the target time period, i.e., the frequency of user use of the target client is higher during the target time period. If the working mode of the voice client is the duplex mode, the voice client can keep the working mode of the voice client unchanged even if the current idle resource amount of the terminal is less, so that better experience is provided for the user.
Step 308, keeping the working mode of the voice client unchanged from simplex mode.
After detecting that the idle resource quantity of the terminal is smaller than or equal to the resource quantity threshold, the voice client detects that the target interaction value is smaller than or equal to the interaction value threshold. The voice client may determine that the frequency of voice client responses to voice control instructions for the target client is low within the target time period, i.e., the frequency of user use of the target client is low within the target time period. If the working mode of the voice client is simplex mode, the voice client can keep unchanged the working mode of the voice client to avoid the terminal from being blocked.
Step 309, switching the working mode of the voice client to simplex mode.
After detecting that the idle resource quantity of the terminal is smaller than or equal to the resource quantity threshold, the voice client detects that the target interaction value is smaller than or equal to the interaction value threshold. The voice client may determine that the frequency of voice client responses to voice control instructions for the target client is low within the target time period, i.e., the frequency of user use of the target client is low within the target time period. If the working mode of the voice client is duplex mode, the voice client switches the working mode to simplex mode so as to avoid the clamping of the terminal.
It should be noted that, the sequence of the steps of the voice mode control method provided in the embodiment of the present disclosure may be appropriately adjusted, and the steps may be deleted according to circumstances. For example, steps 304 to 308 may be deleted according to the situation, that is, when the voice client detects that the amount of idle resources is less than or equal to the threshold of the amount of resources and the working mode of the voice client is the duplex mode, the working mode of the voice client may be directly switched to the simplex mode. Any method that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered in the protection scope of the present disclosure, and thus will not be repeated.
In summary, the embodiment of the present disclosure provides a voice mode control method, where if a voice client determines that the idle resource amount of a terminal is greater than a resource amount threshold, and the working mode of the voice client is a simplex mode, the working mode of the voice client may be switched to a duplex mode. The voice client can dynamically adjust the working mode according to the idle resource quantity of the terminal and the current working mode, so that the flexibility of voice mode control of the voice client is improved.
Fig. 4 is a block diagram of a voice mode control apparatus provided in an embodiment of the present disclosure. The apparatus 40 may be applied to a voice client as shown in fig. 1 as applied to the terminal 10. As shown in fig. 4, the apparatus 40 may include a receiving module 401, a first determining module 402, and a first switching module 403.
The receiving module 401 is configured to receive a voice start instruction for a controlled client.
A first determining module 402, configured to determine an amount of idle resources of the terminal in response to the voice start instruction.
The first switching module 403 is configured to switch the working mode of the voice client to the duplex mode if the idle resource amount is greater than the resource amount threshold and the working mode of the voice client is the simplex mode.
The voice client can respond to a voice command at the same time in a simplex mode. The voice client can respond to a plurality of voice instructions at the same time in a duplex mode.
In summary, the embodiment of the disclosure provides a voice mode control device, where if a voice client determines that the idle resource amount of a terminal is greater than a resource amount threshold, and the working mode of the voice client is a simplex mode, the working mode of the voice client is switched to a duplex mode. The voice client can dynamically adjust the working mode according to the idle resource quantity of the terminal and the current working mode, so that the flexibility of voice mode control of the voice client is improved.
As shown in fig. 5, the apparatus may further include:
the second switching module 404 is configured to switch the working mode of the voice client to the simplex mode if the amount of idle resources is less than or equal to the threshold of the amount of resources and the working mode of the voice client is the duplex mode.
Optionally, the second switching module 404 is configured to:
and if the free resource amount is smaller than or equal to the resource amount threshold, determining the target interaction value.
And if the target interaction value is smaller than or equal to the interaction value threshold and the working mode of the voice client is a duplex mode, switching the working mode of the voice client into a simplex mode.
The target interaction value is used for indicating the times of the voice client responding to the voice control instruction aiming at the target client in a target time period, and the target client comprises a controlled client.
As shown in fig. 6, the apparatus may further include:
the second determining module 405 is configured to determine a target interaction value if the amount of idle resources is less than or equal to the resource amount threshold.
The first switching module 403 is further configured to switch the working mode of the voice client to the duplex mode if the target interaction value is greater than the interaction value threshold and the working mode of the voice client is the simplex mode.
The target interaction value is used for indicating the times of the voice client responding to the voice control instruction aiming at the target client in a target time period, and the target client comprises a controlled client.
Optionally, the target client may also include a client of the same type as the controlled client.
Optionally, the second determining module 405 is configured to:
and sending an interaction value acquisition request to the server, wherein the interaction value acquisition request carries the identification of the controlled client.
And receiving the target interaction value sent by the server.
In summary, the embodiment of the disclosure provides a voice mode control device, where if a voice client determines that the idle resource amount of a terminal is greater than a resource amount threshold, and the working mode of the voice client is a simplex mode, the working mode of the voice client may be switched to a duplex mode. The voice client can dynamically adjust the working mode according to the idle resource quantity of the terminal and the current working mode, so that the flexibility of voice mode control of the voice client is improved.
Embodiments of the present disclosure provide a voice mode control system, as shown in fig. 1, which may include a voice client and server 20 in a terminal 10. The voice client comprises the voice mode control means shown in fig. 4, 5 or 6.
The server 20 establishes communication connection with the voice client, and the server 20 is configured to receive a voice command sent by the voice client, parse the voice command to obtain a control command, and send the control command to the voice client.
Optionally, the server 20 is further configured to receive an interaction value acquisition request sent by the voice client, where the interaction value acquisition request carries an identifier of the controlled client, determine a target interaction value, and send the target interaction value to the voice client.
The disclosed embodiments provide a computer readable storage medium having instructions stored therein that are loaded and executed by a processor to implement the above-described method embodiments (e.g., the embodiments shown in fig. 2 or 3).
The embodiment of the disclosure provides a terminal, which comprises: a memory, a processor and a computer program stored on the memory, which processor implements the above-described method embodiments (e.g., the embodiments shown in fig. 2 or 3) when executing the computer program.
The disclosed embodiments provide a computer program product comprising instructions which, when run on a computer, cause the computer to implement the above-described method embodiments (e.g., the embodiments shown in fig. 2 or 3).
In the present embodiments, the terms "first," "second," "third," "fourth," and "fifth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The term "at least one" in the embodiments of the present application means one or more of the above. The term "plurality" in the embodiments of the present application means two or more.
The foregoing description of the preferred embodiments of the present disclosure is provided for the purpose of illustration only, and is not intended to limit the disclosure to the particular embodiments disclosed, but on the contrary, the intention is to cover all modifications, equivalents, alternatives, and alternatives falling within the spirit and principles of the disclosure.

Claims (7)

1. A voice mode control method, applied to a voice client in a terminal, comprising:
receiving a voice starting instruction aiming at a controlled client;
determining the idle resource amount of the terminal in response to the voice start instruction;
if the idle resource amount is larger than a resource amount threshold and the working mode of the voice client is a simplex mode, switching the working mode of the voice client into a duplex mode;
if the idle resource quantity is smaller than or equal to a resource quantity threshold, sending an interaction value acquisition request to a server, wherein the interaction value acquisition request carries an identifier of the controlled client, a corresponding relation between the client and the interaction value is stored in the server, the corresponding relation is obtained by counting the total times of the voice client responding to a voice instruction aiming at the target client in a target time period and the interaction times of the voice client responding to a voice control instruction aiming at the target client in the target time period before the server receives the acquisition request, and after determining the ratio of the interaction times to the total times as the interaction value, the identifier of the target client is correspondingly stored with the interaction value, and the acquisition request is used for determining a target interaction value corresponding to the controlled client from the corresponding relation by the server; the target interaction value is used for indicating the times of the voice client responding to the voice control instruction aiming at the target client in a target time period, and the target client comprises the controlled client and clients belonging to the same type with the controlled client;
receiving the target interaction value sent by the server;
if the target interaction value is larger than the interaction value threshold and the working mode of the voice client is a simplex mode, switching the working mode of the voice client into the duplex mode;
the voice client can respond to a voice command at the same moment in the simplex mode; the voice client can respond to a plurality of voice instructions at the same time in the duplex mode.
2. The method according to claim 1, wherein the method further comprises:
and if the idle resource quantity is smaller than or equal to the resource quantity threshold value and the working mode of the voice client is a duplex mode, switching the working mode of the voice client into a simplex mode.
3. The method according to claim 2, wherein if the amount of idle resources is less than or equal to a resource amount threshold and the operation mode of the voice client is a duplex mode, switching the operation mode of the voice client to a simplex mode comprises:
if the idle resource quantity is smaller than or equal to a resource quantity threshold value, determining a target interaction value;
and if the target interaction value is smaller than or equal to the interaction value threshold and the working mode of the voice client is a duplex mode, switching the working mode of the voice client into a simplex mode.
4. A voice mode control apparatus for a voice client in a terminal, the apparatus comprising:
the receiving module is used for receiving a voice starting instruction aiming at the controlled client;
the first determining module is used for responding to the voice starting instruction and determining the idle resource quantity of the terminal;
the first switching module is used for switching the working mode of the voice client into a duplex mode if the idle resource amount is larger than a resource amount threshold and the working mode of the voice client is a simplex mode;
the second determining module is configured to send an interaction value obtaining request to a server if the idle resource amount is less than or equal to a resource amount threshold, where the interaction value obtaining request carries an identifier of the controlled client, the server stores a correspondence between the client and the interaction value, the correspondence is obtained by counting, before the server receives the obtaining request, a total number of times that the voice client responds to a voice command for a target client in a target time period and an interaction number of times that the voice client responds to a voice control command for the target client in the target time period, and determining a ratio of the interaction number to the total number of times as an interaction value, and then storing the identifier of the target client and the interaction value in a correspondence manner, where the obtaining request is used by the server to determine a target interaction value corresponding to the controlled client from the correspondence; the target interaction value is used for indicating the times of the voice client responding to the voice control instruction aiming at the target client in a target time period, and the target client comprises the controlled client and clients belonging to the same type with the controlled client; the second determining module is further configured to receive the target interaction numerical value sent by the server;
the first switching module is used for switching the working mode of the voice client into the duplex mode if the target interaction value is larger than the interaction value threshold and the working mode of the voice client is a simplex mode;
the voice client can respond to a voice command at the same moment in the simplex mode; the voice client can respond to a plurality of voice instructions at the same time in the duplex mode.
5. A speech mode control system, the system comprising: a voice client and a server, the voice client comprising the voice mode control apparatus of claim 4;
the server establishes communication connection with the voice client, and is used for receiving the voice command sent by the voice client, analyzing the voice command to obtain a control command, and sending the control command to the voice client.
6. The system of claim 5, wherein the server has a correspondence between clients and interaction values stored therein; the server is further configured to:
receiving an interaction value acquisition request sent by the voice client, wherein the interaction value acquisition request carries an identifier of a controlled client;
determining a target interaction value corresponding to the controlled client based on the corresponding relation;
and sending the target interaction value to the voice client.
7. A computer readable storage medium having instructions stored therein, the instructions being loaded and executed by a processor to implement the speech mode control method of any one of claims 1 to 3.
CN202011443084.8A 2020-12-08 2020-12-08 Voice mode control method, device and system Active CN112634887B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011443084.8A CN112634887B (en) 2020-12-08 2020-12-08 Voice mode control method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011443084.8A CN112634887B (en) 2020-12-08 2020-12-08 Voice mode control method, device and system

Publications (2)

Publication Number Publication Date
CN112634887A CN112634887A (en) 2021-04-09
CN112634887B true CN112634887B (en) 2024-01-23

Family

ID=75309462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011443084.8A Active CN112634887B (en) 2020-12-08 2020-12-08 Voice mode control method, device and system

Country Status (1)

Country Link
CN (1) CN112634887B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224464A (en) * 2015-11-10 2016-01-06 浪潮(北京)电子信息产业有限公司 A kind of parallel automated testing method
CN107247623A (en) * 2017-05-22 2017-10-13 哈工大大数据产业有限公司 A kind of distributed cluster system and data connecting method based on multi-core CPU
CN109814994A (en) * 2019-01-03 2019-05-28 福建天泉教育科技有限公司 A kind of method and terminal of dynamic dispatching thread pool
CN110070868A (en) * 2019-04-28 2019-07-30 广州小鹏汽车科技有限公司 Voice interactive method, device, automobile and the machine readable media of onboard system
JP2020144264A (en) * 2019-03-07 2020-09-10 本田技研工業株式会社 Agent device, control method of agent device, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224464A (en) * 2015-11-10 2016-01-06 浪潮(北京)电子信息产业有限公司 A kind of parallel automated testing method
CN107247623A (en) * 2017-05-22 2017-10-13 哈工大大数据产业有限公司 A kind of distributed cluster system and data connecting method based on multi-core CPU
CN109814994A (en) * 2019-01-03 2019-05-28 福建天泉教育科技有限公司 A kind of method and terminal of dynamic dispatching thread pool
JP2020144264A (en) * 2019-03-07 2020-09-10 本田技研工業株式会社 Agent device, control method of agent device, and program
CN110070868A (en) * 2019-04-28 2019-07-30 广州小鹏汽车科技有限公司 Voice interactive method, device, automobile and the machine readable media of onboard system

Also Published As

Publication number Publication date
CN112634887A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN110996376B (en) Service data transmission method, device, storage medium and terminal
CN102970343B (en) Method and device for displaying push information
CN103164269B (en) Method and terminal achieving multi-window display of application programs
CN112286667A (en) Application program control method and device, electronic equipment and medium
CN107783803B (en) System optimization method and device of intelligent terminal, storage medium and intelligent terminal
CN106157955A (en) A kind of sound control method and device
WO2019042180A1 (en) Resource allocation method and related product
CN105677477A (en) Method and device for optimizing application program resources and electronic equipment
CN106911487B (en) Method and device for voice chat
CN112261225A (en) Volume adjusting method and device, electronic equipment and storage medium
CN111984401A (en) Memory overflow management method and device, electronic equipment and storage medium
CN110730424A (en) Positioning method, device and system
CN112328492B (en) Interaction control method and device between anchor and electronic equipment
CN106648854A (en) Task execution method and device for terminal
CN103002163A (en) Mobile terminal background program control method and mobile terminal
CN112634887B (en) Voice mode control method, device and system
CN110708386A (en) Page display method, terminal device and server
CN115567901A (en) Method, device, equipment and storage medium for operating user identity identification card
CN107193566A (en) A kind of control method and device of terminal
CN106304251B (en) Mobile terminal network connection control method and device
CN107613135B (en) Information transmission method, first terminal, second terminal and storage medium
CN113630851A (en) Communication mode state switching method and device, computer equipment and storage medium
CN113795018B (en) SIM card switching method and device
CN113840313A (en) Network mode control method and device of mobile terminal and computer equipment
CN110809265A (en) Background management method and device based on mobile terminal

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