# US 2019/0378537 A1 · Method and apparatus for detecting starting point and finishing point of speech, computer device and storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0378537 A1
- Document ID: US20190378537A1
- Status: Published application
- Kind: A1
- Application number: 16/218,178
- Filed: 2018-12-12
- Published: 2019-12-12
- Earliest claimed: 2018-06-08
- Assignees: Baidu Online Network Technology (Beijing) Co., Ltd.
- Applicants: Baidu Online Network Technology (Beijing) Co., Ltd.
- Inventors: Chao Li; Weixin Zhu
- Web page: https://patentgrep.com/patent/US20190378537A1

## CPC

- G10L 25/78: Detection of presence or absence of voice signals (switching of direction of transmission by voice frequency in two-way loud-speaking telephone systems H04M9/10)
- G10L 25/87: Detection of discrete points within a voice signal
- G10L 15/04: Segmentation; Word boundary detection
- G10L 15/063: {Training}
- G10L 25/27: characterised by the analysis technique
- G10L 25/30: using neural networks
- G10L 25/84: for discriminating voice from noise
- G10L: SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING

## Abstract

The present disclosure provides a method and apparatus for detecting a starting point and a finishing point of a speech, a computer device and a storage medium, wherein the method comprises: obtaining speech data to be detected; segmenting the speech data into speech segments, the number of speech segments being greater than one; respectively determining speech states of respective speech segments based on a Voice Activity Detection model obtained by pre-training; determining a starting point and a finishing point of the speech data according to the speech states. The solution of the present disclosure can be employed to improve the accuracy of the detection results.

## Claims

### Claim 1

A method for detecting a starting point and a finishing point of a speech, wherein the method comprises:
obtaining speech data to be detected;
segmenting the speech data into speech segments, the number of speech segments being greater than one;
respectively determining speech states of respective speech segments based on a Voice Activity Detection model obtained by pre-training;
determining a starting point and a finishing point of the speech data according to the speech states.

### Claim 2 (depends on 1)

The method according to claim 1, wherein there is overlap between at least two adjacent speech segments.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the Voice Activity Detection model comprises a convolutional neural network model.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the respectively determining speech states of respective speech segments based on a Voice Activity Detection model obtained by pre-training comprises:
using the Voice Activity Detection model to classify the speech segments;
based on output of the Voice Activity Detection model, using a Viterbi decoding algorithm to determine the speech states of the speech segments.

### Claim 5 (depends on 1)

The method according to claim 1, wherein training to obtain the Voice Activity Detection model comprises:
obtaining speech data as training data;
extracting sample segments in N different speech states respectively from the obtained each piece of speech data, N being a positive integer greater than one;
training according to the extracted sample segments to obtain the speech activity detection model.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the extracting sample segments in N different speech states respectively from the obtained each piece of speech data comprises:
for each piece of speech data, obtaining speech frame and non-speech frame annotation results of the speech data respectively;
according to the annotation results, extracting sample segments in N different speech states from the speech data.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the speech states comprise:
a mute state, a starting point state, a speech retention state and a finishing point state.

### Claim 8 (depends on 7)

The method according to claim 7, wherein the extracting sample segments in N different speech states respectively from the obtained each piece of speech data comprises:
randomly extracting sample segments in N different speech states respectively from the obtained each piece of speech data;
wherein in the sample segment in the starting point state, the starting point of the speech is located in a first half of the sample segment, and a distance from the starting point of the sample segment is greater than a predetermined threshold;
in the sample segment in the finishing point state, the finishing point of the speech is located in a first half of the sample segment, and a distance from the starting point of the sample segment is greater than a predetermined threshold.

### Claim 9 (depends on 7)

The method according to claim 7, wherein the determining a starting point and a finishing point of the speech data according to the speech states comprises:
determining the starting point and the finishing point of the speech data according to a first speech segment in the starting point state and a first speech segment in the finishing point state in the speech data.

### Claim 10

A computer device, comprising a memory, a processor and a computer program which is stored on the memory and runs on the processor, wherein the processor, upon executing the program, implements a method for detecting a starting point and a finishing point of a speech, wherein the method comprises:
obtaining speech data to be detected;
segmenting the speech data into speech segments, the number of speech segments being greater than one;
respectively determining speech states of respective speech segments based on a Voice Activity Detection model obtained by pre-training;
determining a starting point and a finishing point of the speech data according to the speech states.

### Claim 11

A computer-readable storage medium on which a computer program is stored, wherein the program, when executed by a processor, implements a method for detecting a starting point and a finishing point of a speech, wherein the method comprises:
obtaining speech data to be detected;
segmenting the speech data into speech segments, the number of speech segments being greater than one;
respectively determining speech states of respective speech segments based on a Voice Activity Detection model obtained by pre-training;
determining a starting point and a finishing point of the speech data according to the speech states.
