Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1697)

Unified Diff: content/browser/speech/google_one_shot_remote_engine.cc

Issue 1257923002: content: Remove unused speex related code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rm more references Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/speech/audio_encoder.cc ('k') | content/browser/speech/google_streaming_remote_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/google_one_shot_remote_engine.cc
diff --git a/content/browser/speech/google_one_shot_remote_engine.cc b/content/browser/speech/google_one_shot_remote_engine.cc
index 48afc800a4dc4cbea1f264d6694182c83b8d4238..a53693eb948f48616597bde3bf021d364a5f8ab0 100644
--- a/content/browser/speech/google_one_shot_remote_engine.cc
+++ b/content/browser/speech/google_one_shot_remote_engine.cc
@@ -34,7 +34,6 @@ const char* const kConfidenceString = "confidence";
const int kWebServiceStatusNoError = 0;
const int kWebServiceStatusNoSpeech = 4;
const int kWebServiceStatusNoMatch = 5;
-const AudioEncoder::Codec kDefaultAudioCodec = AudioEncoder::CODEC_FLAC;
bool ParseServerResponse(const std::string& response_body,
SpeechRecognitionResult* result,
@@ -208,8 +207,7 @@ void GoogleOneShotRemoteEngine::StartRecognition() {
GURL url(std::string(kDefaultSpeechRecognitionUrl) +
base::JoinString(parts, "&"));
- encoder_.reset(AudioEncoder::Create(kDefaultAudioCodec,
- config_.audio_sample_rate,
+ encoder_.reset(AudioEncoder::Create(config_.audio_sample_rate,
config_.audio_num_bits_per_sample));
DCHECK(encoder_.get());
url_fetcher_ = net::URLFetcher::Create(url_fetcher_id_for_tests, url,
« no previous file with comments | « content/browser/speech/audio_encoder.cc ('k') | content/browser/speech/google_streaming_remote_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698