Created
August 11, 2011 06:25
-
-
Save fennb/1139016 to your computer and use it in GitHub Desktop.
Chromium speech recognition details
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int SpeechRecognizer::kAudioSampleRate = 16000; | |
const int SpeechRecognizer::kAudioPacketIntervalMs = 100; | |
const ChannelLayout SpeechRecognizer::kChannelLayout = CHANNEL_LAYOUT_MONO; | |
const int SpeechRecognizer::kNumBitsPerAudioSample = 16; | |
const int SpeechRecognizer::kNoSpeechTimeoutSec = 8; | |
const int SpeechRecognizer::kEndpointerEstimationTimeMs = 300; | |
// ... | |
const char* const kContentTypeSpeex = "audio/x-speex-with-header-byte; rate="; | |
const int kSpeexEncodingQuality = 8; | |
const int kMaxSpeexFrameLength = 110; // (44kbps rate sampled at 32kHz). | |
// ... | |
const char* const kContentTypeFLAC = "audio/x-flac; rate="; | |
const int kFLACCompressionLevel = 0; // 0 for speed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment