Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Adding support for speech library 1.0.5 containing multi-lingual capabilities and the possibility to set a tag do identify the product using the speech API. #633

Merged
merged 1 commit into from
Oct 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ dependencies {
implementation 'com.android.support:design:27.1.1'
implementation 'com.google.vr:sdk-audio:1.170.0'
implementation "org.mozilla.components:service-telemetry:0.26.0"
implementation "com.github.mozilla:mozillaspeechlibrary:1.0.4"
implementation "com.github.mozilla:mozillaspeechlibrary:1.0.6"
}

if (findProject(':wavesdk')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ private void initialize(Context aContext) {
mWidgetManager.addPermissionListener(this);

mMozillaSpeechService = MozillaSpeechService.getInstance();
mMozillaSpeechService.setProductTag("fxr");

mVoiceSearchText1 = findViewById(R.id.voiceSearchText1);
mVoiceSearchText2 = findViewById(R.id.voiceSearchText2);
Expand Down Expand Up @@ -209,6 +210,7 @@ public void startVoiceSearch() {
ActivityCompat.requestPermissions((Activity)getContext(), new String[]{Manifest.permission.RECORD_AUDIO},
VOICESEARCH_AUDIO_REQUEST_CODE);
} else {
mMozillaSpeechService.setLanguage("en-us");
mMozillaSpeechService.start(getApplicationContext());
mIsSpeechRecognitionRunning = true;
}
Expand Down