Speakerbox Parent

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

GroupId

GroupId

com.mapzen.android
ArtifactId

ArtifactId

speakerbox-parent
Last Version

Last Version

1.4.0
Release Date

Release Date

Type

Type

pom
Description

Description

Speakerbox Parent
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project Organization

Project Organization

Mapzen
Source Code Management

Source Code Management

http://github.com/mapzen/speakerbox

Download speakerbox-parent

How to add to project

<!-- https://jarcasting.com/artifacts/com.mapzen.android/speakerbox-parent/ -->
<dependency>
    <groupId>com.mapzen.android</groupId>
    <artifactId>speakerbox-parent</artifactId>
    <version>1.4.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/com.mapzen.android/speakerbox-parent/
implementation 'com.mapzen.android:speakerbox-parent:1.4.0'
// https://jarcasting.com/artifacts/com.mapzen.android/speakerbox-parent/
implementation ("com.mapzen.android:speakerbox-parent:1.4.0")
'com.mapzen.android:speakerbox-parent:pom:1.4.0'
<dependency org="com.mapzen.android" name="speakerbox-parent" rev="1.4.0">
  <artifact name="speakerbox-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='com.mapzen.android', module='speakerbox-parent', version='1.4.0')
)
libraryDependencies += "com.mapzen.android" % "speakerbox-parent" % "1.4.0"
[com.mapzen.android/speakerbox-parent "1.4.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • speakerbox
  • speakerbox-sample

Speakerbox

Circle CI Build Status

Android Text-to-Speech simplified.

Usage

Speakerbox simplifies basic TextToSpeech tasks and adds new tools including muting and text substitution.

Initialization

Speakerbox creates and manages a new instance of TextToSpeech for a given activity.

Speakerbox speakerbox = new Speakerbox(activity);

There is no need to create your own OnInitListener. If you pass text to Speakerbox before the TextToSpeech engine has finished initializing it will save the text and automatically play it once initialization is complete.

Play

Synthesizing text to speech with Speakerbox is simple. The text will play immediately or once initialization is complete (see above).

Speakerbox speakerbox = new Speakerbox(activity);
speakerbox.play("Hi");

// Hi

Mute/Unmute

Speakerbox adds the ability to mute/unmute spoken text.

Speakerbox speakerbox = new Speakerbox(activity);
speakerbox.mute();
speakerbox.play("Quiet please");
speakerbox.unmute();
spearkerbox.play("Cry out loud");

// Cry out loud

Remix

Substitute spoken text on the fly using the remix feature.

Speakerbox speakerbox = new Speakerbox(activity);
speakerbox.remix("min", "minutes");
speakerbox.play("The show starts in 5 min.");

// The show starts in 5 minutes.

Shutdown

Speakerbox will automatically shutdown the TextToSpeech engine and release its resources when the host activity is destroyed so you don't have to.

Install

Download Jar

Download the latest JAR.

Maven

Include dependency using Maven.

<dependency>
  <groupId>com.mapzen.android</groupId>
  <artifactId>speakerbox</artifactId>
  <version>1.4.1</version>
</dependency>

Gradle

Include dependency using Gradle.

compile 'com.mapzen.android:speakerbox:1.4.1'
com.mapzen.android

Mapzen

Versions

Version
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0