Skip to content

Commit

Permalink
v1.0 patch
Browse files Browse the repository at this point in the history
v1.0 patch
  • Loading branch information
laves committed Jul 20, 2023
2 parents e12c689 + 9ff4578 commit b221639
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion android-voice-processor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'

ext {
PUBLISH_GROUP_ID = 'ai.picovoice'
PUBLISH_VERSION = '1.0.1'
PUBLISH_VERSION = '1.0.2'
PUBLISH_ARTIFACT_ID = 'android-voice-processor'
}

Expand All @@ -24,6 +24,10 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,11 @@ private void read(int frameLength, int sampleRate) {
return;
}

final short[] frame = new short[frameLength];
try {
recorder.startRecording();

while (!isStopRequested.get()) {
final short[] frame = new short[frameLength];
final int numSamplesRead = recorder.read(frame, 0, frame.length);
if (numSamplesRead == frame.length) {
onFrame(frame);
Expand Down
2 changes: 1 addition & 1 deletion example/android-voice-processor-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {

implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'ai.picovoice:android-voice-processor:1.0.1'
implementation 'ai.picovoice:android-voice-processor:1.0.2'

// Espresso UI Testing
androidTestImplementation 'androidx.test:rules:1.5.0'
Expand Down

0 comments on commit b221639

Please sign in to comment.