Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
Rename native library and re-case "Spokestack"
Browse files Browse the repository at this point in the history
  • Loading branch information
space-pope committed Nov 27, 2019
1 parent 5aad898 commit fcf9373
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 15 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,18 @@ mvn checkstyle:check
```

### Release
Ensure that your Bintray credentials are in your user Maven `settings.xml`:

```xml
<servers>
<server>
<id>bintray-spokestack-io.spokestack</id>
<username>username</username>
<password>bintray_api_key</password>
</server>
</servers>
```

On a non-master branch, remove the -SNAPSHOT suffix from the version in `pom.xml`, then run the
following command. This will deploy the package to Bintray and JCenter.

Expand Down
8 changes: 4 additions & 4 deletions jni/Dev.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ CFLAGS = -shared -Wall -O3 -fpic \
-I$(JAVA_HOME)/include/$(shell uname | tr A-Z a-z)
OUTDIR = ../target

all: $(OUTDIR)/libspokestack.jnilib
all: $(OUTDIR)/libspokestack-android.jnilib

clean:
$(RM) $(OUTDIR)/libspokestack.jnilib
$(RM) $(OUTDIR)/libspokestack.so
$(RM) $(OUTDIR)/libspokestack-android.jnilib
$(RM) $(OUTDIR)/libspokestack-android.so

rebuild: clean all

$(OUTDIR)/libspokestack.so: \
$(OUTDIR)/libspokestack-android.so: \
agc.cpp \
vad.cpp \
ans.cpp \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* speech event callback interface.
*
* This is the primary event interface in SpokeStack. The speech pipeline
* This is the primary event interface in Spokestack. The speech pipeline
* routes events/errors asynchronously through it as they occur.
*/
public interface OnSpeechEventListener {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/spokestack/spokestack/SpeechContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import java.nio.ByteBuffer;

/**
* SpokeStack speech recognition context
* Spokestack speech recognition context
*
* <p>
* This class maintains global state for the speech pipeline, allowing
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/spokestack/spokestack/SpeechInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* speech input interface.
*
* <p>
* This is the audio input interface to the SpokeStack framework. Implementors
* This is the audio input interface to the Spokestack framework. Implementors
* must fill the specified audio frame buffer to capacity, based on the
* configured sample size and frame size.
* </p>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/io/spokestack/spokestack/SpeechPipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
import java.nio.ByteOrder;

/**
* SpokeStack speech pipeline.
* Spokestack speech pipeline.
*
* <p>
* This is the primary client entry point to the SpokeStack framework. It
* This is the primary client entry point to the Spokestack framework. It
* dynamically binds to configured components that implement the pipeline
* interfaces for reading audio frames and performing speech recognition tasks.
* </p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public final class BingSpeechRecognizer implements SpeechProcessor {

/**
* initializes a new recognizer instance.
* @param speechConfig SpokeStack speech configuration
* @param speechConfig Spokestack speech configuration
* @throws Exception on error
*/
public BingSpeechRecognizer(SpeechConfig speechConfig) throws Exception {
Expand All @@ -64,7 +64,7 @@ public BingSpeechRecognizer(SpeechConfig speechConfig) throws Exception {

/**
* initializes a new recognizer instance, useful for testing.
* @param speechConfig SpokeStack speech configuration
* @param speechConfig Spokestack speech configuration
* @param builder speech client builder
* @throws Exception on error
*/
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/spokestack/spokestack/package-info.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* The SpokeStack package contains the core classes that implement the speech
* The Spokestack package contains the core classes that implement the speech
* recognition pipeline.
*/
package io.spokestack.spokestack;
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public void process(SpeechContext context, ByteBuffer frame) {
// native interface
//-----------------------------------------------------------------------
static {
System.loadLibrary("spokestack");
System.loadLibrary("spokestack-android");
}

native long create(int rate, int policy);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ private double rms(ByteBuffer signal) {
// native interface
//-----------------------------------------------------------------------
static {
System.loadLibrary("spokestack");
System.loadLibrary("spokestack-android");
}

native long create(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void process(SpeechContext context, ByteBuffer frame) {
// native interface
//-----------------------------------------------------------------------
static {
System.loadLibrary("spokestack");
System.loadLibrary("spokestack-android");
}

native long create(int mode);
Expand Down

0 comments on commit fcf9373

Please sign in to comment.