Skip to content

Commit 7cd82fa

Browse files
olami-developersolami-developers
authored andcommitted
update Android SDK client reference to 2.3.0
1 parent a3b6459 commit 7cd82fa

File tree

5 files changed

+4
-22
lines changed

5 files changed

+4
-22
lines changed

examples/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ android {
88
minSdkVersion 17
99
targetSdkVersion 25
1010
versionCode 1
11-
versionName "20171027"
11+
versionName "20171102"
1212

1313
archivesBaseName = "olami-android-hotword-examples"
1414

@@ -56,7 +56,7 @@ dependencies {
5656
compile 'com.android.support.constraint:constraint-layout:1.0.2'
5757
testCompile 'junit:junit:4.12'
5858

59-
compile project(':olami-android-hotword-detect-1.0.0.beta2')
59+
compile project(':olami-android-hotword-detect-1.0.0.beta3')
6060
}
6161

6262
// Copy output files to '/bin' after build --------------

examples/src/main/java/ai/olami/android/example/HotwordDetectionActivity.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -375,24 +375,6 @@ private void createAudioRecord() {
375375
AudioFormat.ENCODING_PCM_16BIT,
376376
minBufferSize * 4);
377377
}
378-
379-
Log.i(TAG, "AudioRecord select sample rate is : "+ mAudioRecord.getSampleRate());
380-
381-
// Waiting for AudioRecord initialized
382-
int retry = 0;
383-
while ((mAudioRecord.getState() != AudioRecord.STATE_INITIALIZED) && (retry < 4)) {
384-
sleep(500);
385-
retry++;
386-
}
387-
388-
// Check AudioRecord is initialized or not
389-
if (mAudioRecord.getState() != AudioRecord.STATE_INITIALIZED) {
390-
if (mAudioRecord.getState() == AudioRecord.STATE_UNINITIALIZED) {
391-
throw new UnsupportedOperationException("Init AudioRecord failed. Permission issue?");
392-
} else {
393-
throw new UnknownError("Failed to initialize AudioRecord.");
394-
}
395-
}
396378
}
397379

398380
/**
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configurations.maybeCreate("default")
2-
artifacts.add("default", file('olami-android-hotword-detect-1.0.0.beta2.aar'))
2+
artifacts.add("default", file('olami-android-hotword-detect-1.0.0.beta3.aar'))

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include ':examples', ':lib', ':olami-android-hotword-detect-1.0.0.beta2'
1+
include ':examples', ':lib', ':olami-android-hotword-detect-1.0.0.beta3'

0 commit comments

Comments
 (0)