Skip to content

Commit

Permalink
update Android SDK client reference to 2.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
olami-developers authored and olami-developers committed Nov 2, 2017
1 parent a3b6459 commit 7cd82fa
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 22 deletions.
4 changes: 2 additions & 2 deletions examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ android {
minSdkVersion 17
targetSdkVersion 25
versionCode 1
versionName "20171027"
versionName "20171102"

archivesBaseName = "olami-android-hotword-examples"

Expand Down Expand Up @@ -56,7 +56,7 @@ dependencies {
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'

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

// Copy output files to '/bin' after build --------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,24 +375,6 @@ private void createAudioRecord() {
AudioFormat.ENCODING_PCM_16BIT,
minBufferSize * 4);
}

Log.i(TAG, "AudioRecord select sample rate is : "+ mAudioRecord.getSampleRate());

// Waiting for AudioRecord initialized
int retry = 0;
while ((mAudioRecord.getState() != AudioRecord.STATE_INITIALIZED) && (retry < 4)) {
sleep(500);
retry++;
}

// Check AudioRecord is initialized or not
if (mAudioRecord.getState() != AudioRecord.STATE_INITIALIZED) {
if (mAudioRecord.getState() == AudioRecord.STATE_UNINITIALIZED) {
throw new UnsupportedOperationException("Init AudioRecord failed. Permission issue?");
} else {
throw new UnknownError("Failed to initialize AudioRecord.");
}
}
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configurations.maybeCreate("default")
artifacts.add("default", file('olami-android-hotword-detect-1.0.0.beta2.aar'))
artifacts.add("default", file('olami-android-hotword-detect-1.0.0.beta3.aar'))
Binary file not shown.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':examples', ':lib', ':olami-android-hotword-detect-1.0.0.beta2'
include ':examples', ':lib', ':olami-android-hotword-detect-1.0.0.beta3'

0 comments on commit 7cd82fa

Please sign in to comment.