Voice broadcast control method and device, storage medium and electronic equipment

文档序号:91102 发布日期:2021-10-08 浏览:5次 中文

阅读说明:本技术 语音播报的控制方法、装置、存储介质及电子设备 (Voice broadcast control method and device, storage medium and electronic equipment ) 是由 郭子亮 于 2019-04-26 设计创作,主要内容包括:本申请实施例公开了一种语音播报的控制方法、装置、存储介质及电子设备,该控制方法包括在检测到语音助手启动时,获取当前的状态信息;当检测到状态信息为预设状态信息时,生成相应的目标控制指令;执行目标控制指令对语音助手的语音播报进行相应的控制。提升了语音播报的控制效率。(The embodiment of the application discloses a voice broadcast control method, a voice broadcast control device, a storage medium and electronic equipment, wherein the control method comprises the steps of acquiring current state information when the voice assistant is detected to be started; when the state information is detected to be the preset state information, generating a corresponding target control instruction; and executing the target control instruction to correspondingly control the voice broadcast of the voice assistant. Control efficiency of voice broadcast has been promoted.)

A control method of voice broadcast comprises the following steps:

when the voice assistant is detected to be started, acquiring current state information;

when the state information is detected to be preset state information, generating a corresponding target control instruction;

and executing the target control instruction to correspondingly control the voice broadcast of the voice assistant.

A method of controlling a voice broadcast according to claim 1, wherein the step of acquiring current status information comprises:

detecting whether an audio device is externally connected;

when the external connection of audio equipment is detected, determining current state information according to the volume information of the audio equipment;

and when the audio equipment is detected not to be connected externally, determining the current state information according to the volume information of the electronic equipment.

A method of controlling a voice broadcast according to claim 1, wherein the step of acquiring current status information comprises:

collecting current environmental characteristic information;

and determining corresponding scene information according to the environment characteristic information, and determining corresponding state information according to the scene information.

The method of controlling voice broadcasting according to claim 3, wherein the environment characteristic information includes location characteristic information and time characteristic information, and the step of determining the corresponding scene information according to the environment characteristic information includes:

determining a corresponding location range based on the location feature information;

determining a corresponding time period range based on the time characteristic information;

and determining corresponding scene information according to the location range and the time period range.

The method for controlling voice announcement according to any one of claims 1 to 4, wherein the step of executing the target control instruction to correspondingly control the voice announcement of the voice assistant comprises:

when detecting that the audio equipment is externally connected, executing the target control instruction to carry out mute control on the voice broadcast of the voice assistant corresponding to the audio equipment;

and when detecting that the audio equipment is not connected externally, executing the target control instruction to carry out mute control on the voice broadcast of the voice assistant corresponding to the electronic equipment.

The method for controlling voice announcement according to claim 5, wherein the step of executing the target control command to mute the voice announcement of the voice assistant corresponding to the audio device comprises:

detecting whether the mobile phone is in a handheld state;

when the audio equipment is detected to be in a handheld state, executing the target control instruction to carry out mute control on voice broadcast of a voice assistant corresponding to the audio equipment;

and when the target control instruction is detected not to be in a handheld state, executing the target control instruction to perform mute control on the voice broadcast of the voice assistant corresponding to the audio equipment, and performing opening control on the voice broadcast of the voice assistant corresponding to the electronic equipment.

The method for controlling voice announcement according to claim 1, wherein after the step of executing the target control command to correspondingly control the voice announcement of the voice assistant, the method further comprises:

and when a preset operation instruction is detected, cancelling the corresponding control of the voice broadcast of the voice assistant.

A control device for voice broadcast, comprising:

the acquisition unit is used for acquiring current state information when the voice assistant is detected to be started;

the generating unit is used for generating a corresponding target control instruction when the state information is detected to be the preset state information;

and the control unit is used for executing the target control instruction to correspondingly control the voice broadcast of the voice assistant.

The control device for voice broadcast according to claim 8, wherein the obtaining unit is specifically configured to:

when the voice assistant is detected to be started, whether audio equipment is connected externally is detected;

when the external connection of audio equipment is detected, determining current state information according to the volume information of the audio equipment;

and when the audio equipment is detected not to be connected externally, determining the current state information according to the volume information of the electronic equipment.

The control device for voice broadcast according to claim 8, wherein the obtaining unit is further configured to:

collecting current environmental characteristic information;

and determining corresponding scene information according to the environment characteristic information, and determining corresponding state information according to the scene information.

The apparatus for controlling voice broadcast according to claim 10, wherein the environment characteristic information includes location characteristic information and time characteristic information, and the obtaining unit is further configured to:

collecting current environmental characteristic information;

determining a corresponding location range based on the location feature information;

determining a corresponding time period range based on the time characteristic information;

and determining corresponding scene information according to the place range and the time period range, and determining corresponding state information according to the scene information.

The control device of voice broadcasting according to any one of claims 8 to 11, wherein the control unit includes:

the first control subunit is used for executing the target control instruction to carry out mute control on the voice broadcast of the voice assistant corresponding to the audio equipment when the external audio equipment is detected;

and the second control subunit is used for executing the target control instruction to carry out mute control on the voice broadcast of the corresponding voice assistant of the electronic equipment when detecting that the audio equipment is not externally connected.

A storage medium having stored thereon a computer program, wherein when the computer program runs on a computer, the computer is caused to execute a control method of voice broadcast according to claim 1.

An electronic device comprising a processor and a memory, said memory having a computer program, wherein said processor is adapted to perform the steps of, by invoking said computer program:

when the voice assistant is detected to be started, acquiring current state information;

when the state information is detected to be preset state information, generating a corresponding target control instruction;

and executing the target control instruction to correspondingly control the voice broadcast of the voice assistant.

The electronic device of claim 14, wherein the processor, by invoking the computer program, is configured to perform the steps of:

detecting whether an audio device is externally connected;

when the external connection of audio equipment is detected, determining current state information according to the volume information of the audio equipment;

and when the audio equipment is detected not to be connected externally, determining the current state information according to the volume information of the electronic equipment.

The electronic device of claim 14, wherein the processor, by invoking the computer program, is configured to perform the steps of:

collecting current environmental characteristic information;

and determining corresponding scene information according to the environment characteristic information, and determining corresponding state information according to the scene information.

The electronic device of claim 16, wherein the processor, by invoking the computer program, is configured to perform the steps of:

determining a corresponding location range based on the location feature information;

determining a corresponding time period range based on the time characteristic information;

and determining corresponding scene information according to the location range and the time period range.

The electronic device of claim 14, wherein the processor, by invoking the computer program, is configured to perform the steps of:

when detecting that the audio equipment is externally connected, executing the target control instruction to carry out mute control on the voice broadcast of the voice assistant corresponding to the audio equipment;

and when detecting that the audio equipment is not connected externally, executing the target control instruction to carry out mute control on the voice broadcast of the voice assistant corresponding to the electronic equipment.

The electronic device of claim 18, wherein the processor, by invoking the computer program, is configured to perform the steps of:

detecting whether the mobile phone is in a handheld state;

when the audio equipment is detected to be in a handheld state, executing the target control instruction to carry out mute control on the voice broadcast of the voice assistant corresponding to the audio equipment;

and when the target control instruction is detected not to be in a handheld state, executing the target control instruction to perform mute control on the voice broadcast of the voice assistant corresponding to the audio equipment, and performing opening control on the voice broadcast of the voice assistant corresponding to the electronic equipment.

The electronic device of claim 19, wherein the processor, by invoking the computer program, is further configured to perform the step of:

and when a preset operation instruction is detected, cancelling the corresponding control of the voice broadcast of the voice assistant.

28页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:基于天气的化身

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类