IP Library Granted Patent US 12,373,486
Granted Patent B2
US 12,373,486 · App. 17/703,564 · Granted Jul 29, 2025

Audio recognition method, electronic device and storage medium

Inventors: Zhihua Chang (Beijing, CN); Chengzhen Duan (Bejing, CN); Ranran Hou (Bejing, CN); Bin Qin (Bejing, CN)
Assignees: Beijing Xiaomi Mobile Software Co., Ltd.; Beijing Xiaomi Pinecone Electronics Co., Ltd.
G06F16/634G06F16/685G10L15/16
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,373,486
App. No.
17/703,564
Granted
Jul 29, 2025
Kind
B2
Abstract

A method includes obtaining a query content. The query content includes segment information representing a to-be-recognized audio. The method further includes selecting the preset quantity of candidate audios corresponding to the query content from a preset library. Each candidate audio includes a candidate audio segment matched with the segment information. The method further includes inputting the candidate audio segment into a trained detection model so as to obtain target segment information including the segment information and a target audio where the target segment information is located.

Claims (67)

1. An audio recognition method, performed by an electronic device, comprising:

obtaining a query content, wherein the query content comprises segment information representing a to-be-recognized audio;

selecting a preset quantity of candidate audios corresponding to the query content from a preset library, wherein the candidate audio comprises a candidate audio segment matched with the segment information;

obtaining a to-be-detected vector corresponding to the candidate audio according to the segment information and the candidate audio segment;

inputting the to-be-detected vector corresponding to the candidate audio into a trained detection model, so as to obtain a detection result data output by the trained detection model; and

obtaining target segment information comprising the segment information and a target audio where the target segment information is located according to the detection result data;

wherein the detection result data comprise first probability data and second probability data which correspondingly indicate that a morpheme in the candidate audio segment is located at a starting position and an ending position respectively, and wherein:

obtaining the target segment information comprising the segment information and the target audio where the target segment information is located according to the detection result data comprises:

determining, in response to determining that the starting position is smaller than the ending position, a target audio segment from the candidate audio segment based on a product of the first probability data and the second probability data; and

using the target audio segment as the target segment information recognized from the query content, and using an audio where the target segment information is located as the target audio;

wherein determining the target audio segment from the candidate audio segment based on the product of the first probability data and the second probability data comprises:

determining a starting morpheme at the starting position and an ending morpheme at the ending position when the product of the first probability data and the second probability data is the largest; and

determining that all morphemes between the starting morpheme and the ending morpheme constitute the target audio segment.

2. The method according to claim 1 , wherein selecting the preset quantity of the candidate audios corresponding to the query content from the preset library comprises:

determining a similarity between a morpheme of the segment information and text information of an audio in the preset library;

sorting audios in the preset library according to the similarity from large to small so as to obtain a sorting result;

determining a preset quantity of audios with sorting positions at the front as the candidate audios based on the sorting result, the candidate audio comprising at least one audio segment matched with the morphemes of the segment information; and

obtaining an audio segment comprising the longest consecutive matching morpheme from the at least one audio segment of the candidate audio, so as to obtain the candidate audio segment, matched with the segment information, of the candidate audio.

3. The method according to claim 1 , wherein obtaining the to-be-detected vector corresponding to the candidate audio according to the segment information and the candidate audio segment comprises:

splicing the segment information with the candidate audio segment of the candidate audio respectively, so as to obtain the to-be-detected vector corresponding to the candidate audio, and

wherein the to-be-detected vector at least comprises a first identifier and a second identifier, the first identifier is configured to identify a starting position of the to-be-detected vector, and the second identifier is configured to identify a splicing position and an ending position of the to-be-detected vector.

4. The method according to claim 1 , wherein the to-be-recognized audio is a song, and the segment information refers to part of lyrics in the song.

5. An electronic device, comprising:

a processor; and

a memory configured to store computer instructions executable by the processor;

wherein, when the processor executes the instructions the processor is configured to:

obtain a query content, wherein the query content comprises segment information representing a to-be-recognized audio;

select a preset quantity of candidate audios corresponding to the query content from a preset library, wherein the candidate audio comprises a candidate audio segment matched with the segment information;

obtain a to-be-detected vector corresponding to the candidate audio according to the segment information and the candidate audio segment;

input the to-be-detected vector corresponding to the candidate audio into a trained detection model, so as to obtain a detection result data output by the trained detection model; and

obtain target segment information comprising the segment information and a target audio where the target segment information is located according to the detection result data;

wherein the detection result data comprise first probability data and second probability data which correspondingly indicate that a morpheme in the candidate audio segment is located at a starting position and an ending position respectively; and wherein the processor is further configured to:

determine, in response to determining that the starting position is smaller than the ending position, a target audio segment from the candidate audio segment based on a product of the first probability data and the second probability data; and

use the target audio segment as the target segment information recognized from the query content, and using an audio where the target segment information is located as the target audio;

wherein the processor is further configured to:

determine a starting morpheme at the starting position and an ending morpheme at the ending position when the product of the first probability data and the second probability data is the largest; and

determine that all morphemes between the starting morpheme and the ending morpheme constitute the target audio segment.

6. The electronic device according to claim 5 , wherein the processor is further configured to:

determine a similarity between a morpheme of the segment information and text information of an audio in the preset library;

sort audios in the preset library according to the similarity from large to small so as to obtain a sorting result;

determine a preset quantity of audios with sorting positions at the front as the candidate audios based on the sorting result, the candidate audio comprising at least one audio segment matched with the morphemes of the segment information; and

obtain an audio segment comprising the longest consecutive matching morpheme from the at least one audio segment of the candidate audio, so as to obtain the candidate audio segment, matched with the segment information, of the candidate audio.

7. The electronic device according to claim 5 , wherein the processor is further configured to:

splice the segment information with the candidate audio segment of the candidate audio respectively, so as to obtain the to-be-detected vector corresponding to the candidate audio, and

wherein the to-be-detected vector at least comprises a first identifier and a second identifier, and wherein the first identifier is configured to identify a starting position of the to-be-detected vector, and the second identifier is configured to identify a splicing position and an ending position of the to-be-detected vector.

8. The electronic device according to claim 5 , wherein the to-be-recognized audio is a song, and the segment information refers to part of lyrics in the song.

9. A non-transitory computer readable storage medium, wherein when executable computer programs in the storage medium are executed by a processor, the processor is configured to:

obtain a query content, wherein the query content comprises segment information representing a to-be-recognized audio;

select a preset quantity of candidate audios corresponding to the query content from a preset library, wherein the candidate audio comprises a candidate audio segment matched with the segment information;

obtain a to-be-detected vector corresponding to the candidate audio according to the segment information and the candidate audio segment;

input the to-be-detected vector corresponding to the candidate audio into a trained detection model, so as to obtain a detection result data output by the trained detection model; and

obtain target segment information comprising the segment information and a target audio where the target segment information is located according to the detection result data;

wherein the detection result data comprise first probability data and second probability data which correspondingly indicate that a morpheme in the candidate audio segment is located at a starting position and an ending position respectively; and

when executable computer programs in the storage medium are executed by the processor, the processor is configured to:

determine, in response to determining that the starting position is smaller than the ending position, a target audio segment from the candidate audio segment based on a product of the first probability data and the second probability data; and

use the target audio segment as the target segment information recognized from the query content, and using an audio where the target segment information is located as the target audio;

wherein when executable computer programs in the storage medium are executed by the processor, the processor is configured to:

determine a starting morpheme at the starting position and an ending morpheme at the ending position when the product of the first probability data and the second probability data is the largest; and

determine that all morphemes between the starting morpheme and the ending morpheme constitute the target audio segment.

10. The non-transitory computer readable storage medium according to claim 9 , wherein when executable computer programs in the storage medium are executed by the processor, the processor is configured to:

determine a similarity between a morpheme of the segment information and text information of an audio in the preset library;

sort audios in the preset library according to the similarity from large to small so as to obtain a sorting result;

determine a preset quantity of audios with sorting positions at the front as the candidate audios based on the sorting result, the candidate audio comprising at least one audio segment matched with the morphemes of the segment information; and

obtain an audio segment comprising the longest consecutive matching morpheme from the at least one audio segment of the candidate audio, so as to obtain the candidate audio segment, matched with the segment information, of the candidate audio.

11. The non-transitory computer readable storage medium according to claim 9 , wherein when executable computer programs in the storage medium are executed by the processor, the processor is configured to:

splice the segment information with the candidate audio segment of the candidate audio respectively, so as to obtain the to-be-detected vector corresponding to the candidate audio, and

wherein the to-be-detected vector at least comprises a first identifier and a second identifier, the first identifier is configured to identify a starting position of the to-be-detected vector, and the second identifier is configured to identify a splicing position and an ending position of the to-be-detected vector.

Assignments (2)
CORRECTIVE ASSIGNMENT TO CORRECT THE ADD THE SECONDE INVENTOR PREVIOUSLY RECORDED AT REEL: 059393 FRAME: 0730. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT. Recorded Apr 5, 2022
From: CHANG, ZHIHUA; DUAN, CHENGZHEN; HOU, RANRAN; QIN, BIN
To: BEIJING XIAOMI MOBILE SOFTWARE CO., LTD.; BEIJING XIAOMI PINECONE ELECTRONICS CO., LTD.
Reel/Frame 059595/0632 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 24, 2022
From: CHANG, ZHIHUA; DUAN, CHENGZHEN; HOU, RANRAN; QIN, BIN
To: BEIJING XIAOMI MOBILE SOFTWARE CO., LTD.
Reel/Frame 059393/0730 →
Priority Claims (1)
CN 202111109177.1 · Sep 22, 2021 · national
Continuity (1)
Related Publication 20230089870A1 · Mar 23, 2023
References Cited (37)
US 11106730B2 · Schalkwijk · 2021 [cited by examiner]
US 20030236787A1 · Burges · 2003 [cited by examiner]
US 20080110322A1 · Lee · 2008 [cited by examiner]
US 20080270138A1 · Knight et al. · 2008 [cited by applicant]
US 20090132077A1 · Fujihara · 2009 [cited by examiner]
US 20100185607A1 · Shao · 2010 [cited by examiner]
US 20100332500A1 · Pan · 2010 [cited by examiner]
US 20110055213A1 · Ishizaki · 2011 [cited by examiner]
US 20120323559A1 · Ikeda · 2012 [cited by examiner]
US 20130006629A1 · Honda · 2013 [cited by examiner]
US 20130046536A1 · Lu et al. · 2013 [cited by applicant]
US 20140278372A1 · Nakadai et al. · 2014 [cited by applicant]
US 20160247512A1 · Duong · 2016 [cited by examiner]
US 20170061988A1 · Nakano · 2017 [cited by examiner]
US 20170068683A1 · Bakshi · 2017 [cited by examiner]
US 20170097932A1 · Bakshi · 2017 [cited by examiner]
US 20180052908A1 · Liu · 2018 [cited by examiner]
US 20190172465A1 · Lee · 2019 [cited by examiner]
US 20190213279A1 · Kim · 2019 [cited by examiner]
US 20190361982A1 · Jacobson et al. · 2019 [cited by applicant]
US 20200034735A1 · Tsukuda · 2020 [cited by examiner]
US 20200105274A1 · Joller et al. · 2020 [cited by applicant]
US 20210090536A1 · Pachet · 2021 [cited by examiner]
US 20210191973A1 · Marchini · 2021 [cited by examiner]
US 20210201863A1 · Bosch Vicente · 2021 [cited by examiner]
US 20210337274A1 · Lee · 2021 [cited by examiner]
US 20230082955A1 · Stonehocker · 2023 [cited by examiner]
US 20230252070A1 · Guo · 2023 [cited by examiner]
CN 101504834A · 2009 [cited by applicant]
CN 102956230A · 2013 [cited by applicant]
CN 103559232A · 2014 [cited by applicant]
CN 104978962A · 2015 [cited by applicant]
CN 109346061A · 2019 [cited by applicant]
CN 111400543A · 2020 [cited by applicant]
CN 112530408A · 2021 [cited by applicant]
WO 2018218034A1 · 2018 [cited by applicant]
Huixing, “Exploration and Practice of Meituan Intelligent Question Answering” (2020). [cited by applicant]