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

Unified Diff: content/browser/speech/google_streaming_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/google_one_shot_remote_engine.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/google_streaming_remote_engine.cc
diff --git a/content/browser/speech/google_streaming_remote_engine.cc b/content/browser/speech/google_streaming_remote_engine.cc
index 0082cec67d9eea74181a7958f89b57395bb3b20c..989c382f9f23a4a7a8d98f3220b666fc27ae4c4b 100644
--- a/content/browser/speech/google_streaming_remote_engine.cc
+++ b/content/browser/speech/google_streaming_remote_engine.cc
@@ -36,7 +36,6 @@ const char kWebServiceBaseUrl[] =
"https://www.google.com/speech-api/full-duplex/v1";
const char kDownstreamUrl[] = "/down?";
const char kUpstreamUrl[] = "/up?";
-const AudioEncoder::Codec kDefaultAudioCodec = AudioEncoder::CODEC_FLAC;
// This matches the maximum maxAlternatives value supported by the server.
const uint32 kMaxMaxAlternatives = 30;
@@ -294,8 +293,7 @@ GoogleStreamingRemoteEngine::ConnectBothStreams(const FSMEventArgs&) {
DCHECK(!upstream_fetcher_.get());
DCHECK(!downstream_fetcher_.get());
- 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());
const std::string request_key = GenerateRequestKey();
@@ -307,7 +305,6 @@ GoogleStreamingRemoteEngine::ConnectBothStreams(const FSMEventArgs&) {
!config_.auth_scope.empty());
if (use_framed_post_data_) {
preamble_encoder_.reset(AudioEncoder::Create(
- kDefaultAudioCodec,
config_.preamble->sample_rate,
config_.preamble->sample_depth * 8));
}
« no previous file with comments | « content/browser/speech/google_one_shot_remote_engine.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698