Methods, apparatus, systems and articles of manufacture are disclosed for distributed automatic speech recognition. An example apparatus includes a detector to process an input audio signal and identify a portion of the input audio signal including a sound to be evaluated, the sound to be evaluated organized into a plurality of audio features representing the sound. The example apparatus includes a quantizer to process the audio features using a quantization process to reduce the audio features to generate a reduced set of audio features for transmission. The example apparatus includes a transmitter to transmit the reduced set of audio features over a low-energy communication channel for processing.
|
29. A wearable apparatus comprising:
a voice-activated detector to activate a key phrase detector, a quantizer, and a transmitter when an input audio signal is detected;
the key phrase detector which, when activated, is to identify a portion of the input audio signal including a sound to be evaluated, the sound to be evaluated organized into a plurality of audio features representing the sound;
the quantizer which, when activated, is to reduce the audio features to generate a reduced set of audio features; and
the transmitter which, when activated, is to transmit the reduced set of audio features over a low-energy communication channel to a companion device for dequantization of the reduced set of audio features to extract speech information from the reduced set of audio features.
28. A tangible computer readable storage medium comprising computer readable instructions which, when executed, cause a voice-activated detector implemented by a processor to at least:
in response to detection of an input audio signal:
activate a key phrase detector to:
identify a portion of the input audio signal including a sound to be evaluated; and
in response to identification of the sound to be evaluated:
activate a quantizer and a transmitter;
organize the sound to be evaluated into a plurality of audio features representing the sound;
instruct the quantizer to reduce the audio features based on a quantization process to generate a reduced set of audio features; and
instruct the transmitter to transmit the reduced set of audio features over a low-energy communication channel.
1. An apparatus comprising:
a voice-activated detector;
a key phrase detector;
a quantizer; and
a transmitter,
the voice-activated detector to activate the key phrase detector when an input audio signal is detected,
the key phrase detector to, when activated, identify a portion of the input audio signal including a sound to be evaluated, the sound to be evaluated organized into a plurality of audio features representing the sound, the key phrase detector to activate the quantizer and the transmitter when the sound to be evaluated is identified in the input audio signal,
the quantizer to, when activated, reduce the audio features to generate a reduced set of audio features; and
the transmitter to, when activated, transmit the reduced set of audio features over a low-energy communication channel.
19. A method comprising:
activating a first process to be executed by a voice-activated detector when an input audio signal is detected;
identifying, by executing an instruction of the first process with the voice-activated detector, a portion of the input audio signal including a sound to be evaluated;
activating a second process to be executed by a key phrase detector when the sound to be evaluated is identified;
activating, by executing an instruction of the second process with the key phrase detector, a quantizer and a transmitter when the sound to be evaluated is identified in the input audio signal;
organizing, by executing an instruction of the second process with the key phrase detector, the sound to be evaluated into a plurality of audio features representing the sound;
reducing, by executing an instruction of a third process with the quantizer, the audio features to generate a reduced set of audio features; and
transmitting, using the transmitter, the reduced set of audio features over a low-energy communication channel.
2. The apparatus of
3. The apparatus of
4. The apparatus of
5. The apparatus of
6. The apparatus of
7. The apparatus of
8. The apparatus of
9. The apparatus of
11. The apparatus of
12. The apparatus of
13. The apparatus of
14. The apparatus of
16. The apparatus of
17. The apparatus of
20. The method of
21. The method of
22. The method of
23. The method of
24. The method of
25. The method of
26. The method of
27. The method of
|
This disclosure relates generally to automatic speech recognition, and, more particularly, to methods and apparatus for energy efficient and low power distributed automatic speech recognition on wearable devices.
Speech recognition requires a complicated, processor- and power-intensive set of operations. Since automated speech recognition generates a compute and memory intensive workload, speech recognition is not feasible to integrate into resource-constrained products.
In the following detailed description, reference is made to the accompanying drawings that form a part hereof, and in which is shown by way of illustration specific examples that may be practiced. These examples are described in sufficient detail to enable one skilled in the art to practice the subject matter, and it is to be understood that other examples may be utilized and that logical, mechanical, electrical and/or other changes may be made without departing from the scope of the subject matter of this disclosure. The following detailed description is, therefore, provided to describe example implementations and not to be taken as limiting on the scope of the subject matter described in this disclosure. Certain features from different aspects of the following description may be combined to form yet new aspects of the subject matter discussed below.
When introducing elements of various embodiments of the present disclosure, the articles “a,” “an,” “the,” and “said” are intended to mean that there are one or more of the elements. The terms “comprising,” “including,” and “having” are intended to be inclusive and mean that there may be additional elements other than the listed elements.
Speech recognition technologies can be useful in a variety of electronic devices, such as hearing aids, microphones, and/or other wearable and/or hearable products. Having an accurate, energy-efficient Automatic Speech Recognition (ASR) engine is an important component in the design of voice-enabled wearable or hearable products. Such wearable/hearable electronics can be limited by no display and/or lack of ability for interaction with the device. However, the ASR engine can be a compute and memory intensive processor, making it difficult to integrate locally (e.g., local ASR) on a resource constrained (e.g., small battery, form-factor-limited, limited processing power and memory) wearable or hearable product. Thus, certain examples provide a distributed ASR solution in which audio capture is done on the wearable device and raw/compressed audio is sent to a companion device or cloud over a short-range wireless or cellular connection for further processing.
However, transmitting raw audio over a short-range wireless connection can be expensive in terms of both power consumption and bandwidth usage. Audio can be compression but at the expense of the ASR detection accuracy.
In certain examples described herein, distributed ASR can be implemented with limited bandwidth over a connectivity channel while still maintaining ASR detection accuracy. Certain examples reduce device power consumption in an “always-on” distributed ASR solution on a wearable device to extend battery life of the wearable device. Using a more efficient audio front end and a voice trigger to control connectivity management in conjunction with reduced bandwidth requirements to transfer audio features over the connectivity channel with efficient quantization mechanisms enables efficient transfer of audio features to a companion device over the efficient communication channel. An ASR engine running on a companion device can accept the audio features as input at the companion device via the communication channel.
Rather than sending raw audio samples (higher bandwidth) or compressed audio over Bluetooth connection (lower bandwidth, reduced ASR detection accuracy) or speech/audio features (lower bandwidth) to the companion device, certain examples provide a power-efficient method of sending audio/speech features over Bluetooth Low Energy (BLE) channels or other lower energy connectivity solution to a companion device with reduced bandwidth using a quantization technique to maintain ASR detection accuracy. By effectively controlling connectivity channels based on input from a Voice Activity Detection (VAD) and Key phrase detector (KPD), reusing or maintaining the same building blocks, and using efficient BLE channels, better energy efficiency can be achieved compared to prior solutions.
In operation, the wearable device 110 collects an audio sample from the microphone (MIC) 111. The key phrase detector 112 triggers activation of the wearable device 110 to process the collected audio sample when certain key phrases associated with operation of the wearable device are identified. For example, certain words, phrases, and/or sounds can be associated with control/operation of the wearable device, and the key phrase detector 112 monitors the collected audio sample to identify such words, phrases, and/or sounds. Upon detection, the key phrase detector 112 can activate the wearable device 110 to process the received audio sample. The key phrase detector 112 allows the wearable device 110 to be “always on” while conserving power until a relevant audio sample is detected. In other examples, the wearable device 110 processes the received audio sample without regarding to identification of key phrases, etc., by the detector 112.
The wearable device 110 can then, optionally, extract audio features from the audio sample using the feature extractor 113. The extracted features and/or raw audio samples can be quantized by the quantizer 114 (also referred to as the quantization engine 114) and/or compressed by the compressor 115 (also referred to as the compression engine 115) for transmission by the transmitter 116 to the companion device 120 over a short range wireless communication channel 130 (e.g., Wi-Fi, BLE, Bluetooth, etc.). The companion device 120 (e.g., cellular phone, gateway device, and/or other hardware processing device) receives the audio information (e.g., features and/or raw audio samples) at the receiver 122, and the dequantization and decompression engine 124 decompresses and dequantizes (e.g., unmaps) the received audio information for processing by the ASR engine 126.
As shown in the example of
As shown in the example system 100 of
In sound processing, a mel frequency cepstrum (MFC) is a representation of a short-term power spectrum of a sound based on a linear cosine transform of a log power spectrum on a nonlinear mel scale of frequency. MFCCs are coefficients that collectively make up an MFC. MFCCs can be derived from a type of cepstral representation of an audio sample. A cepstrum (reversing the first four letters of spectrum) is a result of an inverse Fourier transform (IFT) of a logarithm of an estimated spectrum of a signal. A mel frequency cepstrum (MFC) is a cepstrum in which the frequency bands are equally spaced on the mel scale, which approximates the human auditory system's response more closely than the linearly-spaced frequency bands used in the normal cepstrum. The adjusted spacing or warping of frequency bands can allow for better representation of sound in audio compression, for example.
MFCCs can be determined by taking the Fourier transform of an audio sample or signal. A resulting spectrum has associated powers which can then be mapped onto the mel scale using triangular overlapping windows. Then, the log of the power at each mel frequency can be determined, and a discrete cosine transform can be conducted for each mel log power as if the set of mel log powers were a signal. MFCCs can be extracted from the amplitudes of the resulting spectrum of frequencies.
Using MFCCs can streamline operation of the key phrase detector 112 and provide easily processible data packages to the ASR engine 126. The MFCCs generated by the key phrase detector 112 and/or the feature extractor 113 can be used by the ASR engine 126 to recreate the audio sample(s) for processing by the ASR engine 126, for example. For example, the ASR engine 126 can operate in two modes—a lower dimension processing mode (e.g., 13 MFCCs, etc.) and a higher dimension processing mode (e.g., 23 MFCCs, etc.). The compressor 115 and the dequantization and decompression engine 124 handle compression/decompression so that the ASR engine 126 can process audio data without compression/decompression overhead. The ASR engine 126 can be configured, improved, optimized, etc., for MFCC processing (e.g., through hardware acceleration and/or instruction extension, etc.) to leverage improved speed and accuracy and reduced power consumption, for example. In certain examples, the compressor 115 and decompression engine 124 can be optionally activated/deactivated depending upon audio sample size and power operating conditions, etc. In other examples, the compressor 115 and decompression may not be included. Instead, in some examples, quantization of the audio sample data by the quantizer 114 can be sufficient for BLE transmission over the communication channel 130 for dequantization by the engine 124 and processing by the ASR engine 126. Certain examples provide quantization techniques that can reduce transmitted MFCC values resulting in low bandwidth usage via BLE without compromising the ASR detection accuracy. Reducing the bandwidth usage over BLE can significantly reduce the power consumption of the wearable device 110 and/or the companion device 120 as well.
Certain examples provide an improved quantization technique for audio data transmission. The example quantization technique can be explained using a following example. Using 23 MFCCs in the ASR engine 126 involves a bandwidth of approximately 4.6 kilobytes per second (KBPS), assuming 2 bytes for each MFCC and calculating the MFCCs based on every 10 milliseconds (ms) of audio frames. Using vector quantification, for example, the involved bandwidth can be reduced to half or lower of the 4.6 KBPS (e.g., approximately 2.3 KBPS). Vector and/or other similar quantification introduces some computational complexity as well as degradation in ASR detection accuracy but saves bandwidth and power consumption, for example.
Vector quantization (also referred to as block quantization or pattern matching quantization) models probability density functions based on distribution of prototype vectors. Vector quantization can be used for data compression and works by dividing a set of points (vectors) into groups having approximately the same number of points closest to them. Each group is represented by its central or centroid point. Vector quantization can be used to identify density of data, which can be used in data compression, lossy data correction, density estimation, etc.
As shown in the table of
The example of
The example of
The first method 324 is referred to as an A-law technique or algorithm. The A-law method 324 is a companding algorithm that enables compression and decompression (or compression and expansion, hence companding or compansion) across a channel with limited dynamic range. Using the A-law method 324, an analog signal, such as the audio sample and/or features extracted from the audio sample, can be modified for digitizing and communication via BLE on the communication channel 130. In the A-law method 324, a compression parameter, A (e.g., A=87.6, A=255, etc.), is used to encode the input signal according to:
where sgn(x) extracts the sign of the real number x. Expansion according to the A-law method 324 is provided by an inverse of the function:
Using a compression ratio of 2, the MFCC can be mapped from 16-bit integer features to 8-bit feature values without noticeable loss of accuracy at a very low computing cost with the A-law method 324.
The second method 326 is a truncation or discarding of bits from the MFCC values. For example, the second method 326 can include discarding the least significant 7 bits and most significant bit of the MFCCs to reduce the MFCCs from 16-bit values to 8-bit values. The second method 326 uses extremely low computing power for only minimal loss of accuracy.
As shown in the example table of
Thus, as shown in the examples of
In certain examples, the system 100 (and/or the wearable device 110) can operate in a low power mode versus a high power mode. In the high power mode (e.g., high battery, etc.), the wearable device 110 can transmit 23 MFCCs. However, when the wearable device 110 transitions to the low power mode (e.g., low battery, etc.), only 13 MFCCs are transmitted by the wearable device 110 to the companion device 120.
Certain examples reduce or minimize the computation load on the wearable device 110 as well as the duration for which the communication channel 130 is active to reduce power consumption. Such examples involve careful management of compute and connectivity resources on the wearable device 110. Voice Activity Detection (VAD) and key phrase detection (KPD) can be used in conjunction with MFCC computation to manage resource usage on the wearable device 110, for example.
A plurality of events can occur during a key phrase-initiated command/control scenario. The key phrase detector 112 can enable the wearable device 110 to be active when voice activity is detected and when the user utters a key phrase. Selective or triggered enablement of the device 110 allows the device 110 to operate as a very-low-power-always-listening solution. In certain examples, the key phrase is followed by a command phrase (and/or other phrase to be detected) to be detected and interpreted following activation of the wearable device 110 based on the key phrase.
As illustrated in the example waveform 400 of
As shown in the example of
Using key phrase detection to trigger activation of the rest of the wearable device 110 can conserve power at the wearable device 110, reduce computations by components of the wearable device 110, and reduce the duration during which the communication channel 130 is active to transmit MFCCs to the companion device 120, for example. Since the MFCC is the common building block for KPD and MFCC streaming, a reduction in computation and/or size of each MFCC (e.g., through MFCC size reduction, instruction extension on a reconfigurable processor, etc.) provides benefits in efficiency, timeliness, and power consumption for the wearable device 110, for example.
For example, when the wearable device 110 is powered on, the device 110 is operating in an “always listening” mode in the “IDLE” state 502 and listening for speech. When speech is detected (e.g., via the microphone 111 and the key phrase detector 112) the state changes from “IDLE” 502 to “SPEECH” 504. While in the “SPEECH” state 504, the wearable device 110 parses the audio data packets and checks if the keyword is spoken using the key phrase detector 112. When the keyword is detected, the state is changed to “DETECTION” 506. The keyword can be followed by a command phrase such as “When is my next meeting”. If a command phrase is detected within a certain period of time (e.g., in milliseconds, as configured by the user), then the state is changed to “COMMAND SPEECH” 508. If there is silence for a longer period, then the state is changed to “COMMAND NO SPEECH” 510 and eventually back to the IDLE state 502. When the wearable device 110 is in IDLE state 502, a BLE connection with the companion device 120 is established via the communication channel 130 without streaming of data. Streaming of MFCC coefficients is started when the wearable device 110 state changes to “DETECTION” 506 and continues until the state becomes “COMMAND NO SPEECH” 510.
In certain examples, the BLE connection communication channel 130 with the companion device 120 is to be established prior to a DETECTION state 506 (and ready for streaming) because establishing a connection takes longer, and the connection via channel 130 might lose packets if the connection channel 130 is established only after DETECTION state 506 is detected. However, streaming of MFCCs and/or other audio features is started after the DETECTION state 506 and is stopped when the state becomes “COMMAND NO SPEECH” 510, for example. Thus, power consumption from BLE streaming can be reduced or minimized.
After the key phrase has been identified by the key phrase detector 112, the feature extractor 113 processes audio frames of speech and/or other sound (e.g., including and/or following the identified key phrase or portion thereof) to extract features for packetization and transfer over the BLE communication channel 130. In certain examples, a number of bytes in a feature-descriptor packet (e.g., 23 MFCCs, etc.) does not match a BLE packet size (e.g., 20 bytes, etc.), MFCC data is packetized and segmented for BLE transmission over the communication channel 130.
For example, the MFCC set (e.g., 23 bytes, etc.) is to be streamed to the companion device 120 via the BLE communication channel 130 for processing by the ASR engine 226 with reduced or minimal latency and reduced or minimal loss and/or corruption. For example, MFCCs representing a command and/or key phrase, etc., are generated and transmitted to the companion device 120 for further processing. Packetization by the quantizer 114 and/or the compressor 115 is used to match the BLE limitation of 20 bytes for the payload for the connection events. One or more packetization technologies can be employed. Example packetization techniques involve adding a header to certain MFCC sets.
For example, a header of 8 bytes can be added to every 4 MFCC sets. The 8-byte header includes a start of frame (SOF), a sequence number, and padding bytes. Using such packetization, a 100-byte set is evenly transmitted over the communication channel 130 via BLE as 5 packets. Using this packetization scheme reduces or minimizes computation of packet loss/corruption/recovery to every fourth MFCC set. However, corruption can invalidate all 4 MFCC sets.
In another example, a header of 2 bytes is added to every MFCC set. The 2-byte header includes a SOF and a sequence number. Using this scheme reduces or minimizes latency as BLE packets are sent as MFCC packets arrive. This packetization schemes improves loss recovery (e.g., a header from every packet) but is more compute intensive and power intensive.
As shown in the example of
Depending on environmental conditions, scenario, etc., either of these approaches can be adopted. Additionally, BLE configuration can be changed so that buffering of the MFCC packets can be controlled. In some configurations, one or more packets can be sent in one connection interval to optimize and/or otherwise improve bandwidth and power consumption. Thus, a better energy efficiency can be achieved compared to existing solutions to implement distributed ASR solutions for wearable devices by effectively controlling the connectivity channels based on input from voice activity.
Thus, MFCCs can be used with VAD to trigger key phrase detection and packaging/packetizing for transmission from the wearable device 110 to the companion device 120 via the BLE communication channel 130, for example. In certain examples, the wearable device 110 of
Thus, certain examples provide improved audio sample analysis and communication by offloading speech recognition and/or additional audio feature processing from the wearable device 110 to the companion device 120 while at the same time conserving power at the wearable device 110 and reducing use of the communication channel 130 through technically improved BLE, quantization, and compression strategies. Certain examples facilitate improved data delivery and speech recognition response through intelligent transmission and processing of speech feature data. Certain examples facilitate delivery of a better usage experience to users of the example platform 100.
While example implementations of the system 100, the wearable device 110, microphone 111, key phrase detector 112, feature extractor 113, quantizer 114, compressor 115, transmitter 116, companion device 120, receiver 122, dequantization and decompression engine 124, ASR engine 126, communication channel 130, WoV 802, VAD 804, MFCC generator 806, etc., are illustrated in
Flowcharts representative of example machine readable instructions for implementing the system 100 of
As mentioned above, the example processes of
The program 900 of
At block 904, key phrases are identified. For example, the key phrase detector 112 looks for the start of the speech in the detected audio sample and processes the sound to identify characteristics of the sound wave to indicate the presence of a key phrase in the sound (e.g., recognized sounds indicating letters, words, etc., forming phrases versus background noise, etc.). In some examples, the VAD 804 detects speech activity and the MFCC generator 806 generates MFCCs from the detected audio sample and provides the MFCCs to the key phrase detector 112 to identify key phrases. Key phrases can include spoken phrases to record, transcribe, send, etc., and/or commands to execute, for example. For example, key phrases can include groups of words of four to five syllables such as “Hello Computer”, “Hello Device”, etc. In certain examples, other audio/wake-up events can include sounds to trigger an alert, alarm, and/or other notification at the wearable device 110 and/or companion device 120 such as glass breaking, baby crying, television on, appliance running, etc.
At block 906, the speech information is processed for transmission. For example, MFCCs and/or other audio feature(s) associated with audio frame(s) associated with identified key phrase(s) (e.g., identified by the feature extractor 113 from audio frame(s) following key phrase identification, etc.) are processed (e.g., quantized) in preparation for transmission, such as by reducing a number of MFCCs to transmit (e.g., from 23 to 13, etc.), performing an A-law function to reduce a number of bits in each MFCC (e.g., to map each MFCC from 16-bits to 8-bits using Equations 1-2, etc.), and/or truncating each MFCC to discard bits to reduce a number of bits in each MFCC (e.g., discarding the least 7 bits and most significant bit in each MFCC, etc.), etc. Thus, for example, audio feature(s) corresponding to a command in audio frame(s) following an identified key phase can be processed and reduced for transmission. Resulting MFCC and/or other audio feature information for audio frames can also be compressed by the compressor 115, such as using vector compression, statistical compression, etc.
For example, once all or part of a key phrase is identified, the speech and/or other audio following the key phrase can be segmented into audio frames (e.g., groups of 5 ms, 10 ms, 20 ms, etc.) and audio features (e.g., MFCCs, etc.) are extracted for each frame. Thus, audio frames can be processed to identify and extract MFCCs and group and process the MFCCs for each segment of speech, for example.
At block 908, the speech information is transmitted from the wearable device 110 to the companion device 120 via the communication channel 130. For example, the transmitter 116 sends the data packets over the BLE and/or other low energy wireless communication channel 130 to the companion device 120. The data packets can be aligned using periodic header bytes (e.g., an 8-byte header for every 4 MFCC sets, a 2-byte header for every MFCC set, etc.) to reduce latency as well as loss/corruption according to the BLE limitation of 20 bytes for payload for communication connection events.
At block 910, the received packets are processed by the companion device to extract speech information. For example, received MFCC and/or other audio feature data packets can be dequantized, decompressed, and/or otherwise processed to extract the MFCC information. In certain examples, lost packets can be recreated based on surrounding packet information. For example, suppose packets 1, 2, 3, 4, and 5 have been transmitted from the edge wearable device 110 to the companion device 120. Packets 2 and 4 are lost or corrupted. Packet MFCC and/or other audio feature values can be interpolated from adjacent packet values, for example, such that packet 2 can be created from adjacent packets 1 and 3, and packet 4 can be created from adjacent packets 3 and 5. Thus, using packet sequence number, packets can be recovered without appreciable degradation in quality if adjacent packet information is available.
At block 912, the extracted speech information is processed for speech recognition to determine associated word(s)/phrase(s). For example, the MFCCs and/or other audio features are processed by the ASR engine 126 to identify the word(s) and/or phrase(s) associated with the MFCCs of the speech information. In certain examples, the word(s) and/or phrase(s) correspond to human speech. In other examples, audio event(s) other than word(s) and/or phrase(s) correspond to sounds such as glass breaking, baby crying, television turned on, appliance running, doorbell ringing, etc. In certain examples, by reusing MFCCs from the wearable device 110 to the companion device 120, resource usage (e.g., firmware memory, power consumption, processing, etc.) can be reduced, and speech recognition accuracy can be improved.
At block 914, an action associated with the word(s)/phrase(s)/sound(s) is can be executed. For example, if the identified word(s) and/or phrase(s) include a command, the command can be executed by the companion device 120 and/or the wearable device 110. Identified text can also be stored and/or input into another program, for example. In certain examples, feedback can be provided from the companion device 120 to the wearable device 110 based on identified word/phrase content. For example, the companion device 120 can provide feedback to the wearable device 110 based on quality of received speech information to modify a setting, quantization method, compression technique, etc. For example, the wearable device 110 and/or the companion device 120 can include a model (e.g., a machine learning model) that is updated based on processed speech information to ignore background noise, etc. Feedback can be provided as audio, text, and/or other data feedback, for example.
Thus, certain examples provide an SoC for wearable and Internet-of-Things applications involving battery-operated and low power profile devices. Certain examples enable activity tracking for audio events, voice control, remote control, emergency assistance, etc. In certain examples, the audio processing of the system 100 can be combined with a motion sensor to correlate sound with movement, etc.
Additional detail associated with identifying key phrase(s) (block 904) is shown in the example of
At block 1004, a key phrase is detected based on a signature or characteristic of the sound waveform. For example, if a frequency or duration threshold is crossed, then the key phrase detector 112 identifies the sound as a key phrase.
At block 1006, an endpoint to the key phrase is noted. For example, if the sound attenuates below a threshold or no sound is detected for a time period, then the key phrase detector 112 determines that the phrase is complete and ends the sample associated with the key phrase.
At block 1008, a timeout is evaluated. For example, the key phrase detector 112 includes a certain time period to wait to detect additional sound. If further sound is detected in the time period, then control reverts to block 1004 to detect the next key phrase. If no further sound is detected in the time period (e.g., no sound registering above a certain noise threshold, etc.), then, at block 1010, the key phrase(s) are provided to the quantizer 114 and/or compressor 115 (e.g., block 906) to be prepared and packetized for transmission.
Additional detail associated with processing speech information for transmission (block 906) is shown in the example of
At block 1104, the audio features (e.g., MFCCs, etc.) are grouped for each key phrase and processed in preparation for transmission. For example, a key phrase can include 23 MFCCs associated with the sounds of the key phrase and/or audio frames following the key phrase (e.g., command, audio event, etc.). The 23 MFCCs can be grouped for transmission in representation of the key phrase, for example.
At block 1106, a quantization technology is determined for application to the set of audio features (e.g., MFCCs, etc.). For example, the wearable device 110 can have a preconfigured and/or hardcoded quantization technique to process the set of audio features (e.g., MFCCs, etc.) for data transmission to the companion device 120. In other examples, the quantizer 114 of the wearable device 110 can select (e.g., dynamically select) a quantization strategy based on resource availability and/or other operating condition (e.g., bandwidth, power, amount of data, etc.). For example, the quantizer 114 can determine whether a reduction in number of audio features (e.g., MFCCs, etc.) and/or a reduction in audio feature bit size is applicable to the set of audio features to be transmitted.
If the quantization is a reduction in the number of audio features in the set to be transmitted, then, at block 1108, the set of audio features (e.g., MFCCs, etc.) is reduced according to a parameter associated with the audio feature set size. For example, a set of 23 MFCCs can be reduced to 13 MFCCs for transmission to the companion device 120 for speech recognition and further processing.
If the quantization is a combination of bits in each audio feature, then, at block 1110, the audio features (e.g., MFCCs, etc.) in the set of audio features are reduced such as using the A-law function of Equations 1-2 to reduce the number of bits in each audio feature from 16-bits to 8-bits, etc. If the quantization is a truncation or discarding of bits in each audio feature, then, at block 1112, the audio features in the set of audio features are truncated such as by discarding the least 7 bits and most significant bit in each audio feature, etc.
At block 1114, the reduced set of audio features (e.g., MFCCs, etc.) is provided for transmission. In certain examples, compression (e.g., vector compression, statistical compression, etc.) can be applied by the compressor 115 if bandwidth and/or power restrictions, etc., dictate sending less information than raw audio feature (e.g., MFCC, etc.) data packets. At block 1114, if additional sets of audio features remain to be processed, control reverts to block 1106. Otherwise, control returns to block 908.
Additional detail associated with transmitting the speech information from the wearable device 110 to the companion device 120 (block 908) is shown in the example of
At block 1204, a packetization technique is determined. For example, a packetization technique may be preconfigured and/or hardcoded into the transmitter 116. In other examples, a packetization technique can be dynamically determined based on resource availability and/or other operating condition (e.g., bandwidth, power, amount of data, etc.). For example, MFCC data packets can be aligned using periodic header bytes (e.g., an 8-byte header for every 4 MFCC sets, a 2-byte header for every MFCC set, etc.) to reduce latency as well as loss/corruption according to the BLE limitation of 20 bytes for payload for communication connection events.
If a single header is to be transmitted with a group of audio feature (e.g., MFCC, etc.) packets, then, at block 1206, the audio feature packets are organized to include a header packet followed by a set of audio feature packets. For example, an 8-byte header packet is to be transmitted followed by 4 MFCC packets over the BLE communication channel 130. Using this scheme, a header of 8 bytes and 4 MFCC packets of 23 bytes each are transmitted over the BLE communication channel 130 as 5 packets of data forming a 100-byte set. Using this scheme reduces computation of packet loss, corruption, and/or recovery to every fourth MFCC set, but corruption can invalidate all four MFCC sets associated with the particular header, for example.
If a header is to be transmitted with a header for each audio feature (e.g., MFCC, etc.) data packet, then, at block 1208, the audio feature packets are organized to include a header transmitted before each audio feature packet. For example, a 2-byte header is to be transmitted followed by 23 bytes of MFCC packets over the BLE communication channel 130. Using this scheme, a header of 2 bytes and an MFCC packet of 23 bytes are transmitted over the BLE communication channel 130. Using this scheme reduces latency by sending BLE packets as MFCC packets arrive at the transmitter 116 for transmission. Additionally, computation of packet loss, corruption, and/or recovery is limited to a single MFCC packet, but processing is more compute and power intensive, for example.
At block 1210, the header and audio feature (e.g., MFCC, etc.) data packets are transmitted to the companion device via the communication channel 130 according to the specified arrangement. If additional packets remain to be transmitted, control returns to block 1202. Alternatively or in addition, control reverts to block 910.
The processor platform 1300 of the illustrated example includes a processor 1312. The processor 1312 of the illustrated example is hardware. For example, the processor 1312 can be implemented by one or more integrated circuits, logic circuits, microprocessors or controllers from any desired family or manufacturer. In the illustrated example, the processor 1312 is structured to include the example wearable device 110 including the example key phrase detector 112, feature extractor 113, quantizer 114, compressor 115, transmitter 116, etc.
The processor 1312 of the illustrated example includes a local memory 1313 (e.g., a cache). The processor 1312 of the illustrated example is in communication with a main memory including a volatile memory 1314 and a non-volatile memory 1316 via a bus 1318. The volatile memory 1314 may be implemented by Synchronous Dynamic Random Access Memory (SDRAM), Dynamic Random Access Memory (DRAM), RAMBUS Dynamic Random Access Memory (RDRAM), 3D XPoint (such as Intel Optane™, Micron QuantX™, etc.) and/or any other type of random access memory device. The non-volatile memory 1316 may be implemented by flash memory and/or any other desired type of memory device. Access to the main memory 1314, 1316 is controlled by a memory controller.
The processor platform 1300 of the illustrated example also includes an interface circuit 1320. The interface circuit 1320 may be implemented by any type of interface standard, such as an Ethernet interface, a universal serial bus (USB), and/or a peripheral component interconnect (PCI) express interface.
In the illustrated example, one or more input devices 1322 are connected to the interface circuit 1320. The input device(s) 1322 permit(s) a user to enter data and commands into the processor 1312. The input device(s) 1322 can be implemented by, for example, an audio sensor, a microphone, a keyboard, a button, a mouse, a touchscreen, a track-pad, a trackball, isopoint and/or a voice recognition system.
One or more output devices 1324 are also connected to the interface circuit 1320 of the illustrated example. The output devices 1324 can be implemented, for example, by display devices (e.g., a light emitting diode (LED), an organic light emitting diode (OLED), a liquid crystal display, a cathode ray tube display (CRT), a touchscreen, a tactile output device). The interface circuit 1320 of the illustrated example, thus, typically includes a graphics driver card, a graphics driver chip or a graphics driver processor.
The interface circuit 1320 of the illustrated example also includes a communication device such as a transmitter, a receiver, a transceiver, a modem and/or network interface card to facilitate exchange of data with external machines (e.g., computing devices of any kind) via a network 1326 (e.g., an Ethernet connection, a digital subscriber line (DSL), a telephone line, coaxial cable, a cellular telephone system, etc.).
The processor platform 1300 of the illustrated example also includes one or more mass storage devices 1328 for storing software and/or data. Examples of such mass storage devices 1328 include floppy disk drives, hard drive disks, compact disk drives, Blu-ray disk drives, RAID systems, and digital versatile disk (DVD) drives.
The coded instructions 1332 of
The processor platform 1400 of the illustrated example includes a processor 1412. The processor 1412 of the illustrated example is hardware. For example, the processor 1412 can be implemented by one or more integrated circuits, logic circuits, microprocessors or controllers from any desired family or manufacturer. In the illustrated example, the processor 1412 is structured to include the example companion device 120 including the example receiver 122, dequantization/decompression engine 124, ASR engine 126, etc.
The processor 1412 of the illustrated example includes a local memory 1413 (e.g., a cache). The processor 1412 of the illustrated example is in communication with a main memory including a volatile memory 1414 and a non-volatile memory 1416 via a bus 1418. The volatile memory 1414 may be implemented by Synchronous Dynamic Random Access Memory (SDRAM), Dynamic Random Access Memory (DRAM), RAMBUS Dynamic Random Access Memory (RDRAM), 3D XPoint (such as Intel Optane™, Micron QuantX™, etc.) and/or any other type of random access memory device. The non-volatile memory 1416 may be implemented by flash memory and/or any other desired type of memory device. Access to the main memory 1414, 1416 is controlled by a memory controller.
The processor platform 1400 of the illustrated example also includes an interface circuit 1420. The interface circuit 1420 may be implemented by any type of interface standard, such as an Ethernet interface, a universal serial bus (USB), and/or a peripheral component interconnect (PCI) express interface.
In the illustrated example, one or more input devices 1422 are connected to the interface circuit 1420. The input device(s) 1422 permit(s) a user to enter data and commands into the processor 1412. The input device(s) 1422 can be implemented by, for example, an audio sensor, a microphone, a keyboard, a button, a mouse, a touchscreen, a track-pad, a trackball, isopoint and/or a voice recognition system.
One or more output devices 1424 are also connected to the interface circuit 1420 of the illustrated example. The output devices 1424 can be implemented, for example, by display devices (e.g., a light emitting diode (LED), an organic light emitting diode (OLED), a liquid crystal display, a cathode ray tube display (CRT), a touchscreen, a tactile output device). The interface circuit 1420 of the illustrated example, thus, typically includes a graphics driver card, a graphics driver chip or a graphics driver processor.
The interface circuit 1420 of the illustrated example also includes a communication device such as a transmitter, a receiver, a transceiver, a modem and/or network interface card to facilitate exchange of data with external machines (e.g., computing devices of any kind) via a network 1426 (e.g., an Ethernet connection, a digital subscriber line (DSL), a telephone line, coaxial cable, a cellular telephone system, etc.).
The processor platform 1400 of the illustrated example also includes one or more mass storage devices 1428 for storing software and/or data. Examples of such mass storage devices 1428 include floppy disk drives, hard drive disks, compact disk drives, Blu-ray disk drives, RAID systems, and digital versatile disk (DVD) drives.
The coded instructions 1432 of
From the foregoing, it will be appreciated that the above disclosed methods, apparatus and articles of manufacture facilitate monitoring, processing, transmission, and analysis of sound via a system distributed between a wearable device and a companion device via a wireless communication connection. Certain examples reduce power using BLE and/or low energy wireless communication between a lean, low power wearable device and a companion device that can handle processing for the wearable device. Certain examples, reduce and package audio data according to enable transmission over a low power connection while maintaining data quality to enable accuracy speech recognition and processing.
Example 1 is an apparatus including a detector to process an input audio signal and identify a portion of the input audio signal including a sound to be evaluated, the sound to be evaluated organized into a plurality of audio features representing the sound. The apparatus of example 1 also includes a quantizer to process the audio features using a quantization process to reduce the audio features to generate a reduced set of audio features for transmission. The apparatus of example 1 includes a transmitter to transmit the reduced set of audio features over a low-energy communication channel for processing.
Example 2 includes the subject matter of example 1, wherein the low-energy communication channel includes a Bluetooth Low Energy communication channel.
Example 3 includes the subject matter of example 1, wherein the sound to be evaluated includes speech.
Example 4 includes the subject matter of example 1, wherein the audio features include mel frequency cepstral coefficients (MFCCs).
Example 5 includes the subject matter of example 1, wherein the quantization process includes a reduction in a number of audio features.
Example 6 includes the subject matter of example 5, wherein the reduction in the number of audio features includes reduction from 23 audio features to 13 audio features to be transmitted.
Example 7 includes the subject matter of example 1, wherein the quantization process includes a reduction in bit size for each of the audio features.
Example 8 includes the subject matter of example 7, wherein the reduction in bit size is obtained by applying an A-law algorithm to encode bits of each audio feature according to a compression parameter.
Example 9 includes the subject matter of example 7, wherein the reduction in bit size is obtained by discarding one or more bits of each audio feature.
Example 10 includes the subject matter of example 9, wherein discarding one or more bits of each audio feature includes discarding 7 least significant bits and one most significant bit of each audio feature.
Example 11 includes the subject matter of example 1, wherein the apparatus includes a wearable device.
Example 12 includes the subject matter of example 1, further including a feature extractor to extract the audio features from the sound identified by the key phrase detector.
Example 13 includes the subject matter of example 1, further including a compressor to compress the reduced set of audio features for transmission by the transmitter.
Example 14 includes the subject matter of example 1, further including a microphone to detect the input audio signal.
Example 15 includes the subject matter of example 1, further including a voice-activated detector to activate the key phrase detector, quantizer, and transmitter when the input audio signal is detected.
Example 16 includes the subject matter of example 1, further including a companion device to process the reduced set of audio features received from the transmitter.
Example 17 includes the subject matter of example 16, wherein the companion device includes a dequantization engine and an automated speech recognition engine to process the reduced set of audio features to extract and evaluate the sound associated with the reduced set of audio features.
Example 18 includes the subject matter of example 16, wherein the companion device includes at least one of a cellular phone or a gateway device.
Example 19 is a method including processing an input audio signal to identify a portion of the input audio signal including a sound to be evaluated; organizing the sound to be evaluated into a plurality of audio features representing the sound; processing the audio features using a quantization process to reduce the audio features to generate a reduced set of audio features for transmission; and transmitting the reduced set of audio features over a low-energy communication channel for processing.
Example 20 includes the subject matter of example 19, wherein the low-energy communication channel includes a Bluetooth Low Energy communication channel.
Example 21 includes the subject matter of example 19, wherein the audio features include mel frequency cepstral coefficients (MFCCs).
Example 22 includes the subject matter of example 19, wherein the sound to be evaluated includes speech.
Example 23 includes the subject matter of example 19, wherein the quantization process includes a reduction in a number of audio features.
Example 24 includes the subject matter of example 23, wherein the reduction in the number of audio features includes reduction from 23 audio features to 13 audio features to be transmitted.
Example 25 includes the subject matter of example 19, wherein the quantization process includes a reduction in bit size for each of the audio features.
Example 26 includes the subject matter of example 25, wherein the reduction in bit size is obtained by applying an A-law algorithm to encode bits of each audio feature according to a compression parameter.
Example 27 includes the subject matter of example 25, wherein the reduction in bit size is obtained by discarding one or more bits of each audio feature.
Example 28 includes the subject matter of example 27, wherein discarding one or more bits of each audio feature includes discarding 7 least significant bits and one most significant bit of each audio feature.
Example 29 includes the subject matter of example 19, further including extracting the audio features from the sound to be evaluated.
Example 30 includes the subject matter of example 19, further including compressing the reduced set of audio features for transmission.
Example 31 includes the subject matter of example 19, further including activating a processor to process the input audio signal when the input audio signal is detected.
Example 32 includes the subject matter of example 19, further including processing the reduced set of audio features using a companion device to extract and evaluate the sound associated with the reduced set of audio features.
Example 33 is a tangible computer readable storage medium including computer readable instructions which, when executed, cause a processor to at least implement a method. The example method includes processing an input audio signal to identify a portion of the input audio signal including a sound to be evaluated; organizing the sound to be evaluated into a plurality of audio features representing the sound; processing the audio features using a quantization process to reduce the audio features to generate a reduced set of audio features for transmission; and transmitting the reduced set of audio features over a low-energy communication channel for processing.
Example 34 includes the subject matter of example 33, wherein the low-energy communication channel includes a Bluetooth Low Energy communication channel.
Example 35 includes the subject matter of example 33, wherein the audio features include mel frequency cepstral coefficients (MFCCs).
Example 36 includes the subject matter of example 33, wherein the sound to be evaluated includes speech.
Example 37 includes the subject matter of example 33, wherein the quantization process includes a reduction in a number of audio features.
Example 38 includes the subject matter of example 37, wherein the reduction in the number of audio features includes reduction from 23 audio features to 13 audio features to be transmitted.
Example 39 includes the subject matter of example 33, wherein the quantization process includes a reduction in bit size for each of the audio features.
Example 40 includes the subject matter of example 39, wherein the reduction in bit size is obtained by applying an A-law algorithm to encode bits of each audio feature according to a compression parameter.
Example 41 includes the subject matter of example 39, wherein the reduction in bit size is obtained by discarding one or more bits of each audio feature.
Example 42 includes the subject matter of example 41, wherein discarding one or more bits of each audio feature includes discarding 7 least significant bits and one most significant bit of each audio feature.
Example 43 includes the subject matter of example 33, wherein the method further includes extracting the audio features from the sound to be evaluated.
Example 44 includes the subject matter of example 33, wherein the method further includes compressing the reduced set of audio features for transmission.
Example 45 includes the subject matter of example 33, wherein the method further includes activating the processor to process the input audio signal when the input audio signal is detected.
Example 46 includes the subject matter of example 33, wherein the method further includes processing the reduced set of audio features using a companion device to extract and evaluate the sound associated with the reduced set of audio features.
Example 47 is an apparatus including a receiver to receive, from a wearable device, data packets including information regarding a reduced set of audio features representing a sound. The example apparatus includes a dequantization engine to process the data packets to retrieve the reduced set of audio features. The example apparatus includes an automated speech recognition engine to evaluate the reduced set of audio features to identify the sound.
Example 48 includes the subject matter of example 47, wherein the audio features include mel frequency cepstral coefficients (MFCCs).
Example 49 includes the subject matter of example 47, wherein the sound includes speech.
Example 50 includes the subject matter of example 47, wherein the dequantization engine includes a decompressor to decompress the data packets to retrieve the reduced set of audio features.
Example 51 includes the subject matter of example 47, wherein at least one of the dequantization engine or the automated speech recognition engine is to provide feedback to the wearable device.
Example 52 includes the subject matter of example 51, wherein the feedback includes at least one of text feedback or audio feedback.
Example 53 includes the subject matter of example 51, wherein the dequantization engine is to recreate at least one of a corrupted audio feature packet or a missing audio packet using interpolation from adjacent received packet information.
Although certain example methods, apparatus and articles of manufacture have been disclosed herein, the scope of coverage of this patent is not limited thereto. On the contrary, this patent covers all methods, apparatus and articles of manufacture fairly falling within the scope of the claims of this patent.
Shah, Saurin, Bocklet, Tobias, Dorau, Tomasz, Ravindran, Binuraj K., Stemmer, Georg, Muchlinski, Maciej, Bauer, Josef G., Tharappel, Francis M., Datta, Prabhakar R.
Patent | Priority | Assignee | Title |
11031029, | Mar 31 2016 | OmniSpeech LLC | Pitch detection algorithm based on multiband PWVT of teager energy operator |
11145304, | Sep 20 2018 | DYNABOOK INC. | Electronic device and control method |
11308978, | Mar 31 2017 | Intel Corporation | Systems and methods for energy efficient and low power distributed automatic speech recognition on wearable devices |
11367449, | Aug 09 2017 | LG Electronics Inc | Method and apparatus for calling voice recognition service by using Bluetooth low energy technology |
11665644, | Jun 12 2020 | Beijing Xiaomi Pinecone Electronics Co., Ltd. | Device wakeup method and apparatus, electronic device, and storage medium |
Patent | Priority | Assignee | Title |
6760699, | Apr 24 2000 | WSOU Investments, LLC | Soft feature decoding in a distributed automatic speech recognition system for use over wireless channels |
6934756, | Mar 21 2001 | International Business Machines Corporation | Conversational networking via transport, coding and control conversational protocols |
8768712, | Dec 04 2013 | GOOGLE LLC | Initiating actions based on partial hotwords |
9076448, | Nov 12 1999 | Nuance Communications, Inc | Distributed real time speech recognition system |
9128283, | May 17 2012 | GOOGLE LLC | Dynamically adjustable frame |
9158116, | Apr 25 2014 | CITIBANK, N A | Temple and ear horn assembly for headworn computer |
9342829, | Mar 29 2010 | Systems and methods for mobile application, wearable application, transactional messaging, calling, digital multimedia capture and payment transactions | |
9445209, | Jul 11 2013 | Intel Corporation | Mechanism and apparatus for seamless voice wake and speaker verification |
9818407, | Feb 07 2013 | Amazon Technologies, Inc | Distributed endpointing for speech recognition |
20100106269, | |||
20100174539, | |||
20130176626, | |||
20130195229, | |||
20130249776, | |||
20130258271, | |||
20140253867, | |||
20150106085, | |||
20160037486, | |||
20160119770, | |||
20170083285, | |||
20180234765, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Mar 30 2017 | STEMMER, GEORG | Intel Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 042077 | /0685 | |
Mar 30 2017 | RAVINDRAN, BINURAJ K | Intel Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 042077 | /0685 | |
Mar 31 2017 | BAUER, JOSEF G | Intel Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 042077 | /0685 | |
Mar 31 2017 | Intel Corporation | (assignment on the face of the patent) | / | |||
Apr 01 2017 | BOCKLET, TOBIAS | Intel Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 042077 | /0685 | |
Apr 03 2017 | DORAU, TOMASZ | Intel Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 042077 | /0685 | |
Apr 03 2017 | THARAPPEL, FRANCIS M | Intel Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 042077 | /0685 | |
Apr 04 2017 | MUCHLINSKI, MACIEJ | Intel Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 042077 | /0685 | |
Apr 05 2017 | DATTA, PRABHAKAR R | Intel Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 042077 | /0685 | |
Apr 17 2017 | SHAH, SAURIN | Intel Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 042077 | /0685 |
Date | Maintenance Fee Events |
Jan 25 2023 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Date | Maintenance Schedule |
Aug 06 2022 | 4 years fee payment window open |
Feb 06 2023 | 6 months grace period start (w surcharge) |
Aug 06 2023 | patent expiry (for year 4) |
Aug 06 2025 | 2 years to revive unintentionally abandoned end. (for year 4) |
Aug 06 2026 | 8 years fee payment window open |
Feb 06 2027 | 6 months grace period start (w surcharge) |
Aug 06 2027 | patent expiry (for year 8) |
Aug 06 2029 | 2 years to revive unintentionally abandoned end. (for year 8) |
Aug 06 2030 | 12 years fee payment window open |
Feb 06 2031 | 6 months grace period start (w surcharge) |
Aug 06 2031 | patent expiry (for year 12) |
Aug 06 2033 | 2 years to revive unintentionally abandoned end. (for year 12) |