CN112331205B - STM 32-based intelligent speech recognition system and method - Google Patents

STM 32-based intelligent speech recognition system and method Download PDF

Info

Publication number
CN112331205B
CN112331205B CN202110015896.0A CN202110015896A CN112331205B CN 112331205 B CN112331205 B CN 112331205B CN 202110015896 A CN202110015896 A CN 202110015896A CN 112331205 B CN112331205 B CN 112331205B
Authority
CN
China
Prior art keywords
user
voice
unit
voice recognition
recognition circuit
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
CN202110015896.0A
Other languages
Chinese (zh)
Other versions
CN112331205A (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.)
Guangzhou Huayuan Network Technology Co ltd
Original Assignee
Guangzhou Huayuan Network 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 Guangzhou Huayuan Network Technology Co ltd filed Critical Guangzhou Huayuan Network Technology Co ltd
Priority to CN202110015896.0A priority Critical patent/CN112331205B/en
Publication of CN112331205A publication Critical patent/CN112331205A/en
Application granted granted Critical
Publication of CN112331205B publication Critical patent/CN112331205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; 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 OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/30Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; 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

Abstract

The invention discloses an intelligent voice recognition system and method based on STM32, belonging to the technical field of voice recognition, wherein the intelligent voice recognition system comprises a user side, a communication module, a voice recognition module and a control side; the user side utilizes and establishes remote communication between communication module and the control end, the user side inputs and changes user's speech signal and passes through communication module transmission to the control end, the speech recognition module discerns the remote speech signal that the control end received, the speech recognition module sends the long-range speech recognition result to the control end, the control end is opened or is closed according to the recognition result control relay, through long-range speech recognition function, makes when the user is not at home, can the remote control open the door for the courier can directly place the express delivery at the gate of being at after the long-range speech control of user opens the door, has practiced thrift courier's time, simultaneously, has add sound wave frequency identification for remote speech recognition's safety more.

Description

STM 32-based intelligent speech recognition system and method
Technical Field
The invention relates to the technical field of speech recognition, in particular to an intelligent speech recognition system and method based on STM 32.
Background
The voice recognition means voice communication with a machine, the machine recognizes the content of the speaking of people and executes corresponding operation according to the content of the speaking, the voice recognition technology has made remarkable progress in the last two decades, and the development of the voice recognition technology starts to move from a laboratory to the market, so that the life style of people is changed, and the life of people is more convenient;
however, existing speech recognition technologies often only can recognize speech directly uttered by people, for example: the door is opened through voice control, however, when a user has express delivery to the door, the door cannot be opened through remote control because the user is not at home, and then a courier cannot sign for the express, and the courier needs to sign for the express again with the courier business time, so that the time of the courier is wasted, and meanwhile, the great invariance is brought to the user;
therefore, if the door can be opened through remote control, a courier can place the express at a door to sign for the express, and the express is convenient to sign, so that people urgently need an intelligent voice recognition system and method based on STM32 to solve the problems.
Disclosure of Invention
The invention aims to provide an intelligent speech recognition system and method based on STM32 to solve the problems in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme: an intelligent speech recognition system based on STM32 comprises a user terminal, a communication module, a speech recognition module and a control terminal;
the user side establishes remote communication with the control end by using the communication module, voice signals input and converted by the user are transmitted to the control end through the communication module, the voice recognition module recognizes the remote voice signals received by the control end, the voice recognition module sends recognition results of the remote voice to the control end, and the control end controls the relay to be opened or closed according to the recognition results;
the user side comprises a voice recording unit, a voice conversion unit, a frequency conversion unit and a position positioning unit;
the voice recording unit is used for recording voice signals of a user, the frequency conversion unit is used for converting sound wave frequency of the recorded voice signals, so that the voice signals of the user are prevented from being maliciously recorded by others to perform remote voice recognition door opening, the safety of remote voice recognition is guaranteed, the voice conversion unit is used for converting the voice signals after the sound wave frequency conversion into electric signals, the communication module is conveniently used for performing remote transmission, the position positioning unit is used for positioning the current position of the user, and whether the door opening is controlled by using the remote voice signal recognition or not is conveniently judged;
the output end of the voice recording unit is electrically connected with the input end of the frequency conversion unit, and the output end of the frequency conversion unit is electrically connected with the input end of the voice conversion unit;
the voice recognition module comprises a first voice recognition circuit, a second voice recognition circuit and a recognition circuit conversion unit;
the first voice recognition circuit is used for recognizing remote voice signals of a user, the second voice recognition circuit is used for recognizing close-range voice signals of the user, the recognition circuit conversion unit is used for converting the use of the first voice recognition circuit and the second voice recognition circuit, and only one voice recognition circuit can be used for recognizing the voice signals, so that different voice recognition circuits can be converted to recognize the voice signals according to different positions of the user, the voice signals of the user are prevented from being illegally recorded by other people, when the user is in a remote state, the second voice recognition circuit is used for recognizing the voice signals to open the door, and the safety of opening the door by the voice recognition of the user is guaranteed.
According to the technical scheme, the voice recognition module further comprises a user position analysis unit;
the user position analysis unit is used for analyzing the current position of the user, determining the intention of the user and judging whether the voice recognition circuit conversion is needed by the recognition circuit conversion unit;
the voice conversion unit is connected with the first voice recognition circuit through the communication module, the output end of the position positioning unit is electrically connected with the input end of the user position analysis unit, the output end of the user position analysis unit is electrically connected with the input end of the recognition circuit conversion unit, and the output end of the recognition circuit conversion unit is electrically connected with the input ends of the first voice recognition circuit and the second voice recognition circuit.
According to the technical scheme, the control end comprises an STM32 control unit, a voice playing unit, a code scanning identification unit and a monitoring recording unit;
the STM32 control unit is used for intelligently controlling the whole system, the voice playing unit is used for playing audio to remind a courier to execute corresponding operation according to audio indication, the code scanning recognition unit is used for scanning and recognizing express delivery bar codes delivered to the door by the courier, thereby preventing other people from pretending to be the courier to request a user to remotely perform voice recognition door opening, ensuring the safety of the user in opening the door by utilizing remote voice recognition, and the monitoring and recording unit is used for monitoring and recording the operation of the courier at the door, so that the responsibility can be conveniently discussed when the express is lost;
the equal electric connection STM32 the input of output of first speech recognition circuit and second speech recognition circuit, the input of STM32 the output electric connection speech playback unit of the control unit, control recording unit and relay, sweep the input of code recognition unit's output electric connection STM32 the control unit.
According to the technical scheme, the system also comprises a logistics information base and a data calling module;
the system comprises a logistics information base, an STM32 control unit, a code scanning identification unit, a data calling module, a data reading module and a data reading module, wherein the logistics information base is used for storing logistics information of commodities purchased on line by a user, the data calling module is used for calling logistics information data in the logistics information base, the STM32 control unit compares the logistics information called by the data calling module with express delivery bar codes identified by the code scanning identification unit and judges whether the commodities purchased on line by the user are the commodities purchased on line by the user or not, so that a person requesting the user to remotely recognize the door opening through voice is a real courier instead of a lawbreaker, the safety performance;
the input of the output electric connection data of STM32 the control unit, the input of the output electric connection logistics information storehouse of data retrieval module, the input of the output electric connection STM32 the control unit of logistics information storehouse.
An intelligent speech recognition method based on STM32, comprising the following steps:
s1, analyzing the user position and converting the voice recognition circuit;
s2, communication is established between the user side and the control side, and the system is awakened;
s3, the user side sends voice data to the control side, and the voice recognition module recognizes the voice data;
s4, the control end calls logistics information from the logistics information base;
s5, the control end reminds the courier of scanning express delivery bar codes through voice;
s6, matching express bar code scanning contents with the control end, and selecting whether to open the door;
in S1, the current location of the user is located by the location locating unit, a two-dimensional plane model of the area of the user is established by the user location analyzing unit, and the user is usedEstablishing a plane rectangular coordinate system by taking the address position as an origin, wherein the coordinate of the current position of the user positioned by the position positioning unit is (X)i,Yi) Wherein i represents that the user is located at the ith position, and the distance L between the current position of the user and the address of the user is calculated according to the following formulaiAnd (3) calculating:
Figure 469800DEST_PATH_IMAGE001
when L isiWhen the distance between the user and the address is larger than or equal to L, the user is far away from the address, the door opening operation can be performed only in a remote voice recognition mode, and the recognition circuit conversion unit is used for converting the first voice recognition circuit to recognize the remote voice signal of the user;
when L isiIf < L, the user is close to the address, but not necessarily returns to home, so the destination of the user needs to be analyzed;
where L represents a set distance threshold.
The distance calculation between the current position of the user and the address is realized through the formula, and whether the voice recognition circuit which can be used by the user is the first voice recognition circuit or the second voice recognition circuit is preliminarily judged, so that the system can preliminarily judge whether the voice recognition circuit needs to be converted.
According to the technical scheme, in S1, the position of the user is continuously refreshed by using the position locating unit, and a set Q = { (X) of the position coordinates of the user is formed1,Y1),(X2,Y2),(X3,Y3),…,(Xn,Yn)};
Vector formed by two adjacent refreshing positions according to the following formula
Figure 498936DEST_PATH_IMAGE002
And (3) calculating:
Figure 270583DEST_PATH_IMAGE003
a vector formed by the current position and the position of the user address according to the following formula
Figure 752380DEST_PATH_IMAGE004
And (3) calculating:
Figure 166044DEST_PATH_IMAGE005
vector pair according to the following formula
Figure 784107DEST_PATH_IMAGE002
And vector
Figure 726655DEST_PATH_IMAGE004
Cosine value of (1)
Figure 695748DEST_PATH_IMAGE006
And (3) calculating:
Figure 647524DEST_PATH_IMAGE007
set P = tone constituting cosine value
Figure 120093DEST_PATH_IMAGE008
};
When there is in the set P
Figure 499122DEST_PATH_IMAGE009
Cosine value of
Figure 955511DEST_PATH_IMAGE010
If so, indicating that the destination of the user is an address, the identification circuit conversion unit converts the second voice identification circuit into a voice identification circuit;
when there are less than
Figure 445398DEST_PATH_IMAGE009
Cosine value of
Figure 38054DEST_PATH_IMAGE010
And a recognition circuit converting unit converting the first voice recognition circuit into a voice recognition circuit, wherein z represents a set duty threshold value and g represents a set angle threshold value.
Through the formula, the prediction of the walking target point of the user can be realized, so that whether the first voice recognition circuit needs to be converted into the second voice recognition circuit in time or not is determined, and the user can use the intelligent voice recognition system more conveniently.
According to the technical scheme, in S2-S3, the user side establishes communication with the control end through the communication module and wakes up the system, the user side records the remote voice signals of the user through the voice recording unit, and the user side converts the frequency of the recorded remote voice signals according to the following formula by using the frequency conversion unit;
Figure 853563DEST_PATH_IMAGE011
wherein, W represents the frequency value after the frequency conversion of the remote voice signal of the user, k represents the coefficient of the conversion, and S represents the original frequency of the remote voice signal of the user;
the frequency conversion unit sends the coefficient k of the frequency conversion to a first voice recognition circuit through a communication module;
the frequency of the user remote voice signal is uniformly changed, so that the safety of voice recognition is improved, and the condition that other people illegally record the user voice to request for remote voice recognition to open a door is avoided;
after the user carries out long-range speech recognition request through a speech recognition circuit and opens the door, utilize the control recording unit to carry out real time monitoring and record, the later stage of being convenient for chases after when the express delivery is lost.
According to the technical scheme, in S4-S5, after a user utilizes a first circuit identification circuit of remote voice identification to identify a door opening voice signal, the control end utilizes a voice playing unit to remind a courier to align an express delivery barcode of an express delivery to a barcode scanning identification unit to scan the express delivery barcode, and the barcode scanning identification unit identifies the content of the express delivery barcode;
and the control terminal calls the logistics information of the user from the logistics information base by using the data calling unit.
According to the technical scheme, in S6, the STM32 control unit is used for matching the content of the express delivery bar code recognition unit with the logistics information of the user called from the logistics information base by the data calling unit;
when the matched logistics information contents are completely consistent, the STM32 control unit controls the relay to be opened, so that the door opening is realized;
when the matched logistics information contents are inconsistent, the fact that the person requesting the user to remotely open the door is not a courier is indicated, the STM32 control unit controls the voice playing unit to play an alarm sound to scare away illegal persons requesting the user to remotely recognize the door by voice.
Through the retrieval and comparison of the data, the authenticity of the identity of the courier is determined, so that the situation that a lawbreaker pretends to be an express delivery person requesting a user to open a door for theft through remote voice recognition can be effectively avoided, and the use safety of the voice recognition system is further ensured.
Compared with the prior art, the invention has the beneficial effects that:
1. through long-range speech recognition function, make when the user is not at, can the remote control open the door, make the courier can directly place the express delivery at the gate of being at after the long-range speech control of user opens the door, courier's time has been practiced thrift, and simultaneously, sound wave frequency identification has been add to long-range speech recognition function, on the one hand, it compares to open the door with long-range remote control, factor of safety is higher, the phenomenon of stealing because the remote control loses the phenomenon that leads to, on the other hand, through the in-process at long-range speech recognition conversion user's sound wave frequency, make long-range speech recognition safer, it records user's speech information and opens the door to have avoided other people to steal, great improvement long-range speech.
2. Through the code scanning identification and matching of the express delivery of the user, the authenticity of the door opening request of the courier can be further judged, malicious camouflage of lawbreakers is avoided, and the phenomenon of property loss caused by the remote voice identification of the user is requested to open the door.
3. Set up first speech recognition circuit and second speech recognition circuit, through analysis user's position, carry out identification circuit's conversion, further avoided lawless persons maliciously to record user's speech information and carry out direct speech recognition rather than long-range speech recognition request and open the door, make when the user is far away from the address, will unable use second speech recognition circuit to carry out speech recognition, simultaneously, make user self more convenient to intelligent speech recognition system's use.
Drawings
FIG. 1 is a schematic diagram of a module connection structure of an intelligent speech recognition system based on STM 32;
FIG. 2 is a schematic diagram of a module composition structure of an intelligent speech recognition system based on STM 32;
FIG. 3 is a schematic diagram of a unit connection structure of an intelligent speech recognition system based on STM 32;
fig. 4 is a schematic flow chart of steps of an intelligent speech recognition method based on STM32 according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1 to 4, an intelligent speech recognition system based on STM32 includes a user terminal, a communication module, a speech recognition module, and a control terminal;
the user side establishes remote communication with the control end by using the communication module, voice signals input and converted by the user are transmitted to the control end through the communication module, the voice recognition module recognizes the remote voice signals received by the control end, the voice recognition module sends recognition results of the remote voice to the control end, and the control end controls the relay to be opened or closed according to the recognition results;
the user side comprises a voice recording unit, a voice conversion unit, a frequency conversion unit and a position positioning unit;
the voice recording unit is used for recording voice signals of a user, the frequency conversion unit is used for converting sound wave frequency of the recorded voice signals, so that the voice signals of the user are prevented from being maliciously recorded by others to perform remote voice recognition door opening, the safety of remote voice recognition is guaranteed, the voice conversion unit is used for converting the voice signals after the sound wave frequency conversion into electric signals, the communication module is conveniently used for performing remote transmission, the position positioning unit is used for positioning the current position of the user, and whether the door opening is controlled by using the remote voice signal recognition or not is conveniently judged;
the output end of the voice recording unit is electrically connected with the input end of the frequency conversion unit, and the output end of the frequency conversion unit is electrically connected with the input end of the voice conversion unit;
the voice recognition module comprises a first voice recognition circuit, a second voice recognition circuit and a recognition circuit conversion unit;
the first voice recognition circuit is used for recognizing remote voice signals of a user, the second voice recognition circuit is used for recognizing close-range voice signals of the user, the recognition circuit conversion unit is used for converting the use of the first voice recognition circuit and the second voice recognition circuit, and only one voice recognition circuit can be used for recognizing the voice signals, so that different voice recognition circuits can be converted to recognize the voice signals according to different positions of the user, the voice signals of the user are prevented from being illegally recorded by other people, when the user is in a remote state, the second voice recognition circuit is used for recognizing the voice signals to open the door, and the safety of opening the door by the voice recognition of the user is guaranteed.
The voice recognition module further comprises a user position analysis unit;
the user position analysis unit is used for analyzing the current position of the user, determining the intention of the user and judging whether the voice recognition circuit conversion is needed by the recognition circuit conversion unit;
the voice conversion unit is connected with the first voice recognition circuit through the communication module, the output end of the position positioning unit is electrically connected with the input end of the user position analysis unit, the output end of the user position analysis unit is electrically connected with the input end of the recognition circuit conversion unit, and the output end of the recognition circuit conversion unit is electrically connected with the input ends of the first voice recognition circuit and the second voice recognition circuit.
The control end comprises an STM32 control unit, a voice playing unit, a code scanning identification unit and a monitoring recording unit;
the STM32 control unit is used for intelligently controlling the whole system, the voice playing unit is used for playing audio to remind a courier to execute corresponding operation according to audio indication, the code scanning recognition unit is used for scanning and recognizing express delivery bar codes delivered to the door by the courier, thereby preventing other people from pretending to be the courier to request a user to remotely perform voice recognition door opening, ensuring the safety of the user in opening the door by utilizing remote voice recognition, and the monitoring and recording unit is used for monitoring and recording the operation of the courier at the door, so that the responsibility can be conveniently discussed when the express is lost;
the equal electric connection STM32 the input of output of first speech recognition circuit and second speech recognition circuit, the input of STM32 the output electric connection speech playback unit of the control unit, control recording unit and relay, sweep the input of code recognition unit's output electric connection STM32 the control unit.
The system also comprises a logistics information base and a data calling module;
the system comprises a logistics information base, an STM32 control unit, a code scanning identification unit, a data calling module, a data reading module and a data reading module, wherein the logistics information base is used for storing logistics information of commodities purchased on line by a user, the data calling module is used for calling logistics information data in the logistics information base, the STM32 control unit compares the logistics information called by the data calling module with express delivery bar codes identified by the code scanning identification unit and judges whether the commodities purchased on line by the user are the commodities purchased on line by the user or not, so that a person requesting the user to remotely recognize the door opening through voice is a real courier instead of a lawbreaker, the safety performance;
the input of the output electric connection data of STM32 the control unit, the input of the output electric connection logistics information storehouse of data retrieval module, the input of the output electric connection STM32 the control unit of logistics information storehouse.
An intelligent speech recognition method based on STM32, comprising the following steps:
s1, analyzing the user position and converting the voice recognition circuit;
s2, communication is established between the user side and the control side, and the system is awakened;
s3, the user side sends voice data to the control side, and the voice recognition module recognizes the voice data;
s4, the control end calls logistics information from the logistics information base;
s5, the control end reminds the courier of scanning express delivery bar codes through voice;
s6, matching express bar code scanning contents with the control end, and selecting whether to open the door;
in S1, the current location of the user is located by the location locating unit, a two-dimensional model of the area of the user is created by the user location analyzing unit, and a rectangular coordinate system is created with the address location of the user as the origin, where the current location of the user is located by the location locating unit as (X)i,Yi) Wherein i represents that the user is located at the ith position, and the distance L between the current position of the user and the address of the user is calculated according to the following formulaiAnd (3) calculating:
Figure 266090DEST_PATH_IMAGE001
when L isiWhen the distance between the user and the address is larger than or equal to L, the user is far away from the address, the door opening operation can be performed only in a remote voice recognition mode, and the recognition circuit conversion unit is used for converting the first voice recognition circuit to recognize the remote voice signal of the user;
when L isiIf < L, the user is close to the address, but not necessarily returns to home, so the destination of the user needs to be analyzed;
where L represents a set distance threshold.
The distance calculation between the current position of the user and the address is realized through the formula, and whether the voice recognition circuit which can be used by the user is the first voice recognition circuit or the second voice recognition circuit is preliminarily judged, so that the system can preliminarily judge whether the voice recognition circuit needs to be converted.
In S1, the location of the user is continuously refreshed by the location positioning unit, forming a set of user location coordinates Q = { (X)1,Y1),(X2,Y2),(X3,Y3),…,(Xn,Yn)};
Vector formed by two adjacent refreshing positions according to the following formula
Figure 559668DEST_PATH_IMAGE002
And (3) calculating:
Figure 6830DEST_PATH_IMAGE003
a vector formed by the current position and the position of the user address according to the following formula
Figure 993240DEST_PATH_IMAGE012
And (3) calculating:
Figure 158642DEST_PATH_IMAGE005
according to the following formula(Vector)
Figure 990332DEST_PATH_IMAGE002
And vector
Figure 292000DEST_PATH_IMAGE004
Cosine value of (1)
Figure 195452DEST_PATH_IMAGE006
And (3) calculating:
Figure 848150DEST_PATH_IMAGE007
set P = tone constituting cosine value
Figure 483531DEST_PATH_IMAGE008
};
When there is in the set P
Figure 905285DEST_PATH_IMAGE009
Cosine value of
Figure 233498DEST_PATH_IMAGE010
If so, indicating that the destination of the user is an address, the identification circuit conversion unit converts the second voice identification circuit into a voice identification circuit;
when there are less than
Figure 107913DEST_PATH_IMAGE009
Cosine value of
Figure 546985DEST_PATH_IMAGE010
And a recognition circuit converting unit converting the first voice recognition circuit into a voice recognition circuit, wherein z represents a set duty threshold value and g represents a set angle threshold value.
Through the formula, the prediction of the walking target point of the user can be realized, so that whether the first voice recognition circuit needs to be converted into the second voice recognition circuit in time or not is determined, and the user can use the intelligent voice recognition system more conveniently.
In S2-S3, the user side establishes communication with the control side through the communication module and wakes up the system, the user side records a remote voice signal of the user through the voice recording unit, and the user side converts the frequency of the recorded remote voice signal according to the following formula by using the frequency conversion unit;
Figure 823245DEST_PATH_IMAGE011
wherein, W represents the frequency value after the frequency conversion of the remote voice signal of the user, k represents the coefficient of the conversion, and S represents the original frequency of the remote voice signal of the user;
the frequency conversion unit sends the coefficient k of the frequency conversion to a first voice recognition circuit through a communication module;
the frequency of the user remote voice signal is uniformly changed, so that the safety of voice recognition is improved, and the condition that other people illegally record the user voice to request for remote voice recognition to open a door is avoided;
after the user carries out long-range speech recognition request through a speech recognition circuit and opens the door, utilize the control recording unit to carry out real time monitoring and record, the later stage of being convenient for chases after when the express delivery is lost.
In S4-S5, after the user identifies the voice signal of the side-by-side door by using the first circuit identification circuit of remote voice identification, the control end reminds the courier to align the express bar code of the express to the bar code scanning identification unit by using the voice playing unit to scan the express bar code, and the bar code scanning identification unit identifies the content of the express bar code;
and the control terminal calls the logistics information of the user from the logistics information base by using the data calling unit.
In S6, matching the content of the express delivery bar code with logistics information of a user called from a logistics information base by the data calling unit through the STM32 control unit to the bar code scanning recognition unit;
when the matched logistics information contents are completely consistent, the STM32 control unit controls the relay to be opened, so that the door opening is realized;
when the matched logistics information contents are inconsistent, the fact that the person requesting the user to remotely open the door is not a courier is indicated, the STM32 control unit controls the voice playing unit to play an alarm sound to scare away illegal persons requesting the user to remotely recognize the door by voice.
Through the retrieval and comparison of the data, the authenticity of the identity of the courier is determined, so that the situation that a lawbreaker pretends to be an express delivery person requesting a user to open a door for theft through remote voice recognition can be effectively avoided, and the use safety of the voice recognition system is further ensured.
The first embodiment is as follows:
the method comprises the steps of utilizing a position positioning unit to position the current position of a user, utilizing a user position analysis unit to establish a plane two-dimensional model of the area where the user is located, utilizing the address position of the user as an original point to establish a plane rectangular coordinate system, wherein the current position of the user located by the position positioning unit is (12, 6), and according to the following formula, the distance L between the current position of the user and the address of the user is determinediAnd (3) calculating:
Figure 56780DEST_PATH_IMAGE013
Lil =13.416 ≧ L =1, which indicates that the user is far from the address, the door opening operation can be performed only by remote speech recognition, and the recognition circuit conversion unit is used to convert the first speech recognition circuit to recognize the remote speech signal of the user;
where L =1km indicates a set distance threshold.
Example two:
the method comprises the steps of utilizing a position positioning unit to position the current position of a user, utilizing a user position analysis unit to establish a plane two-dimensional model of the area where the user is located, utilizing the address position of the user as an original point to establish a plane rectangular coordinate system, wherein the coordinates of the current position of the user, positioned by the position positioning unit, are (0.5, 0.25), and according to the following formulaFor the distance L between the current position of the user and the address thereofiAnd (3) calculating:
Figure 684071DEST_PATH_IMAGE014
Liwhen =0.559 < L =1, it indicates that the user is close to the address, but does not necessarily return to home, and therefore, the destination of the user needs to be analyzed;
where L =1km indicates a set distance threshold.
Continuously refreshing the position of the user by using the position positioning unit to form a set Q = { (0.45, 0.22), (0.41, 0.2), (0.35, 0.15), (0.32, 0.13), (0.3, 0.12) } of user position coordinates;
vector formed by two adjacent refreshing positions according to the following formula
Figure 661254DEST_PATH_IMAGE002
And (3) calculating:
Figure 57600DEST_PATH_IMAGE015
Figure 462037DEST_PATH_IMAGE016
Figure 45465DEST_PATH_IMAGE017
Figure 91918DEST_PATH_IMAGE018
a vector formed by the current position and the position of the user address according to the following formula
Figure 342771DEST_PATH_IMAGE004
And (3) calculating:
Figure 918109DEST_PATH_IMAGE019
Figure 988833DEST_PATH_IMAGE020
Figure 307819DEST_PATH_IMAGE021
Figure 678758DEST_PATH_IMAGE022
vector pair according to the following formula
Figure 424997DEST_PATH_IMAGE002
And vector
Figure 248596DEST_PATH_IMAGE004
Cosine value of (1)
Figure 371273DEST_PATH_IMAGE006
And (3) calculating:
Figure 596718DEST_PATH_IMAGE023
Figure 513858DEST_PATH_IMAGE024
Figure 824754DEST_PATH_IMAGE025
Figure 485543DEST_PATH_IMAGE026
Figure 831073DEST_PATH_IMAGE027
Figure 919115DEST_PATH_IMAGE028
Figure 451727DEST_PATH_IMAGE029
set P = tone constituting cosine value
Figure 181786DEST_PATH_IMAGE008
};
All cosine values in set P
Figure 116244DEST_PATH_IMAGE030
And the identification circuit conversion unit converts the second voice identification circuit into a voice identification circuit, indicating that the destination of the user is an address.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (9)

1. An intelligent speech recognition system based on STM32, its characterized in that: the intelligent voice recognition system comprises a user side, a communication module, a voice recognition module and a control side;
the user side establishes remote communication with the control end by using the communication module, voice signals input and converted by the user are transmitted to the control end through the communication module, the voice recognition module recognizes the remote voice signals received by the control end, the voice recognition module sends recognition results of the remote voice to the control end, and the control end controls the relay to be opened or closed according to the recognition results;
the user side comprises a voice recording unit, a voice conversion unit, a frequency conversion unit and a position positioning unit;
the voice recording unit is used for recording voice signals of a user, the frequency conversion unit is used for converting sound wave frequency of the recorded voice signals, the voice conversion unit is used for converting the voice signals after the sound wave frequency is converted into electric signals, and the position positioning unit is used for positioning the current position of the user;
the output end of the voice recording unit is electrically connected with the input end of the frequency conversion unit, and the output end of the frequency conversion unit is electrically connected with the input end of the voice conversion unit;
the voice recognition module comprises a first voice recognition circuit, a second voice recognition circuit and a recognition circuit conversion unit;
the voice recognition device comprises a first voice recognition circuit, a second voice recognition circuit, a recognition circuit conversion unit and a voice recognition circuit, wherein the first voice recognition circuit is used for recognizing a remote voice signal of a user, the second voice recognition circuit is used for recognizing a close-range voice signal of the user, the recognition circuit conversion unit is used for converting the use of the first voice recognition circuit and the second voice recognition circuit, and only one voice recognition circuit can be used for recognizing the voice signal.
2. An intelligent STM 32-based speech recognition system according to claim 1, wherein: the voice recognition module further comprises a user position analysis unit;
the user position analysis unit is used for analyzing the current position of the user, determining the intention of the user and judging whether the voice recognition circuit conversion is needed by the recognition circuit conversion unit;
the voice conversion unit is connected with the first voice recognition circuit through the communication module, the output end of the position positioning unit is electrically connected with the input end of the user position analysis unit, the output end of the user position analysis unit is electrically connected with the input end of the recognition circuit conversion unit, and the output end of the recognition circuit conversion unit is electrically connected with the input ends of the first voice recognition circuit and the second voice recognition circuit.
3. An intelligent STM 32-based speech recognition system according to claim 2, wherein: the control end comprises an STM32 control unit, a voice playing unit, a code scanning identification unit and a monitoring recording unit;
the STM32 control unit is used for intelligently controlling the whole system, the voice playing unit is used for playing audio to remind a courier to execute corresponding operation according to audio indication, the code scanning identification unit is used for scanning and identifying express delivery bar codes delivered to the door by the courier, and the monitoring recording unit is used for monitoring and recording the operation of the courier at the door, so that responsibility can be conveniently discussed when the express is lost;
the equal electric connection STM32 the input of output of first speech recognition circuit and second speech recognition circuit, the input of STM32 the output electric connection speech playback unit of the control unit, control recording unit and relay, sweep the input of code recognition unit's output electric connection STM32 the control unit.
4. An intelligent STM 32-based speech recognition system according to claim 3, wherein: the system also comprises a logistics information base and a data calling module;
the system comprises a logistics information base, a data calling module, an STM32 control unit and a code scanning identification unit, wherein the logistics information base is used for storing logistics information of online purchased commodities of users, the data calling module is used for calling logistics information data in the logistics information base, the STM32 control unit compares the logistics information called by the data calling module with express delivery bar codes identified by the code scanning identification unit and judges whether the online purchased commodities are of the users;
the input of the output electric connection data of STM32 the control unit, the input of the output electric connection logistics information storehouse of data retrieval module, the input of the output electric connection STM32 the control unit of logistics information storehouse.
5. An intelligent speech recognition method based on STM32 is characterized in that: the intelligent voice recognition method comprises the following steps:
s1, analyzing the user position and converting the voice recognition circuit;
s2, communication is established between the user side and the control side, and the system is awakened;
s3, the user side sends voice data to the control side, and the voice recognition module recognizes the voice data;
s4, the control end calls logistics information from the logistics information base;
s5, the control end reminds the courier of scanning express delivery bar codes through voice;
s6, matching express bar code scanning contents with the control end, and selecting whether to open the door;
in S1, the current location of the user is located by the location locating unit, a two-dimensional model of the area of the user is created by the user location analyzing unit, and a rectangular coordinate system is created with the address location of the user as the origin, where the current location of the user is located by the location locating unit as (X)i,Yi) Wherein i represents that the user is located at the ith position, and the distance L between the current position of the user and the address of the user is calculated according to the following formulaiAnd (3) calculating:
Figure 248833DEST_PATH_IMAGE001
when L isiWhen the distance between the user and the address is larger than or equal to L, the user is far away from the address, the door opening operation can be performed only in a remote voice recognition mode, and the recognition circuit conversion unit is used for converting the first voice recognition circuit to recognize the remote voice signal of the user;
when L isiIf < L, the user is close to the address, but not necessarily returns to home, so the destination of the user needs to be analyzed;
where L represents a set distance threshold.
6. An intelligent speech recognition method based on STM32 according to claim 5, wherein: in S1, the location of the user is continuously refreshed by the location positioning unit, forming a set of user location coordinates Q = { (X)1,Y1),(X2,Y2),(X3,Y3),…,(Xn,Yn)};
Vector formed by two adjacent refreshing positions according to the following formula
Figure 799900DEST_PATH_IMAGE002
And (3) calculating:
Figure 84382DEST_PATH_IMAGE003
a vector formed by the current position and the position of the user address according to the following formula
Figure 138925DEST_PATH_IMAGE004
And (3) calculating:
Figure 365507DEST_PATH_IMAGE005
vector pair according to the following formula
Figure 138291DEST_PATH_IMAGE002
And vector
Figure 960885DEST_PATH_IMAGE006
Cosine value of (1)
Figure 135514DEST_PATH_IMAGE007
And (3) calculating:
Figure 1839DEST_PATH_IMAGE008
set P = tone constituting cosine value
Figure 543810DEST_PATH_IMAGE009
};
When there is in the set P
Figure 419362DEST_PATH_IMAGE010
Cosine value of
Figure 448498DEST_PATH_IMAGE011
If so, indicating that the destination of the user is an address, the identification circuit conversion unit converts the second voice identification circuit into a voice identification circuit;
when there are less than
Figure 767615DEST_PATH_IMAGE010
Cosine value of
Figure 514991DEST_PATH_IMAGE011
And a recognition circuit converting unit converting the first voice recognition circuit into a voice recognition circuit, wherein z represents a set duty threshold value and g represents a set angle threshold value.
7. An intelligent speech recognition method based on STM32 according to claim 6, wherein: in S2-S3, the user side establishes communication with the control side through the communication module and wakes up the system, the user side records a remote voice signal of the user through the voice recording unit, and the user side converts the frequency of the recorded remote voice signal according to the following formula by using the frequency conversion unit;
Figure 944967DEST_PATH_IMAGE012
wherein, W represents the frequency value after the frequency conversion of the remote voice signal of the user, k represents the coefficient of the conversion, and S represents the original frequency of the remote voice signal of the user;
the frequency conversion unit sends the coefficient k of the frequency conversion to a first voice recognition circuit through a communication module;
and after the user performs remote voice recognition request to open the door through the first voice recognition circuit, real-time monitoring and recording are performed by using the monitoring recording unit.
8. An intelligent speech recognition method based on STM32 according to claim 7, wherein: in S4-S5, after the user identifies the voice signal of the side-by-side door by using the first circuit identification circuit of remote voice identification, the control end reminds the courier to align the express bar code of the express to the bar code scanning identification unit by using the voice playing unit to scan the express bar code, and the bar code scanning identification unit identifies the content of the express bar code;
and the control terminal calls the logistics information of the user from the logistics information base by using the data calling unit.
9. An intelligent speech recognition method based on STM32 according to claim 8, wherein: in S6, matching the content of the express delivery bar code with logistics information of a user called from a logistics information base by the data calling unit through the STM32 control unit to the bar code scanning recognition unit;
when the matched logistics information contents are completely consistent, the STM32 control unit controls the relay to be opened, so that the door opening is realized;
when the matched logistics information contents are inconsistent, the fact that the person requesting the user to remotely open the door is not a courier is indicated, the STM32 control unit controls the voice playing unit to play an alarm sound to scare away illegal persons requesting the user to remotely recognize the door by voice.
CN202110015896.0A 2021-01-07 2021-01-07 STM 32-based intelligent speech recognition system and method Active CN112331205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110015896.0A CN112331205B (en) 2021-01-07 2021-01-07 STM 32-based intelligent speech recognition system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110015896.0A CN112331205B (en) 2021-01-07 2021-01-07 STM 32-based intelligent speech recognition system and method

Publications (2)

Publication Number Publication Date
CN112331205A CN112331205A (en) 2021-02-05
CN112331205B true CN112331205B (en) 2021-04-16

Family

ID=74301952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110015896.0A Active CN112331205B (en) 2021-01-07 2021-01-07 STM 32-based intelligent speech recognition system and method

Country Status (1)

Country Link
CN (1) CN112331205B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6400956B1 (en) * 1999-11-15 2002-06-04 Lucent Technologies Inc. Method and apparatus for a wireless telecommunication system that provides location-based action services
BR112014010970A2 (en) * 2011-11-07 2017-06-06 Kortek Ind Pty Ltd wireless adaptive power, light and automation system
CN102427418A (en) * 2011-12-09 2012-04-25 福州海景科技开发有限公司 Intelligent household system based on speech recognition
CN107644307A (en) * 2016-07-21 2018-01-30 深圳市丰巢科技有限公司 Intelligence sends part method
US10019860B1 (en) * 2017-07-25 2018-07-10 Amazon Technologies, Inc. Remote access authentication and authorization
CN211900333U (en) * 2018-08-30 2020-11-10 钟永林 Internet monitoring anti-theft door capable of being locked in remote control mode
CN110459019A (en) * 2019-08-14 2019-11-15 厦门享取网络科技有限公司 A kind of take-away rapid access method and its system

Also Published As

Publication number Publication date
CN112331205A (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN205427990U (en) Pronunciation access control system based on digital identifying code of developments
CN107360157A (en) A kind of user registering method, device and intelligent air conditioner
CN112734988A (en) Forced unlocking judging and alarming system and method for intelligent door lock
CN107016361A (en) Recognition methods and device based on video analysis
WO2021174991A1 (en) 5g technology-based facial recognition smart lock control system
CN104835230B (en) A kind of method of face control lockset
CN106600762A (en) Method and system for controlling vehicle door
CN104835232A (en) Voice-control lock
CN104835229A (en) Method for controlling lockset by gestures
CN112331205B (en) STM 32-based intelligent speech recognition system and method
CN105232051B (en) A kind of children&#39;s self monitor system based on abnormal speech identification technology
CN113299287A (en) Multi-mode-based service robot interaction method, system and storage medium
CN109727342A (en) Recognition methods, device, access control system and the storage medium of access control system
CN210804019U (en) Iris lock capable of detecting closing state of door body and intelligent home system
CN107701064A (en) The based reminding method and intelligent door of intelligent door
CN110288492A (en) A kind of hotel occupancy method, computer equipment and readable storage medium storing program for executing
CN211906454U (en) Household face recognition anti-theft system
CN109345186A (en) Business handling method and terminal device based on Internet of Things
CN112349005A (en) Intelligent access control system capable of achieving door opening through voice recognition
CN108615288B (en) Unlocking control method based on portrait recognition
CN113178199A (en) Digital audio tampering evidence obtaining method based on phase deviation detection
CN113536827A (en) Method and device for mouth opening recognition of living body based on face characteristic points
CN112233291A (en) Entrance guard using method and entrance guard device based on intelligent device track
CN117690457B (en) Intelligent sound-identifying doorbell, control method thereof and storage medium
CN116928979A (en) Intelligent voice note device suitable for household refrigerator

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