https://github.com/rommansabbir/speechreader-android
A simple Android library for Text2Speech
https://github.com/rommansabbir/speechreader-android
Last synced: about 2 months ago
JSON representation
A simple Android library for Text2Speech
- Host: GitHub
- URL: https://github.com/rommansabbir/speechreader-android
- Owner: rommansabbir
- Created: 2019-03-04T08:07:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-07T08:44:47.000Z (about 6 years ago)
- Last Synced: 2025-01-30T15:16:50.929Z (4 months ago)
- Language: Java
- Size: 57.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SpeechReader-Android
## Documentation### Installation
---
Step 1. Add the JitPack repository to your build file```gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
```Step 2. Add the dependency
```gradle
dependencies {
implementation 'com.github.rommansabbir:SpeechReader-Android:Tag'
}
```---
### Version available
| Releases
| ------------- |
| v1.0 |# Usages
### For Java:
```java
public class MainActivity extends AppCompatActivity implements SpeechReader.SpeechReaderInterface {
private SpeechReader speechReader;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
/**
* Instantiate SpeechReader
* Pass the context of parent activity and language for speech reader
* @param context
* @param language
*/
speechReader = new SpeechReader(this, Locale.US);
/**
* This method is responsible for convert your text to speech
* Pass your text through parameter
* Pass your parameters, if not mandatory then pass "null"
* Pass your pitch rate for speech reader
* Pass your speed rate for speech reader
* @param speech
* @param params
* @param pitchRate
* @param speedRate
*/
speechReader.reader("YOUR_TEXT_HERE", null, 1.0, 1.0);
}@Override
public void onSpeechReaderInitSuccess(String successMessage) {
//TODO Implement your logic here
}@Override
public void onSpeechReaderFailure(String errorMessage) {
//TODO Implement your logic here
}
}
```### Contact me
[Portfolio](https://www.rommansabbir.com/) | [LinkedIn](https://www.linkedin.com/in/rommansabbir/) | [Twitter](https://www.twitter.com/itzrommansabbir/) | [Facebook](https://www.facebook.com/itzrommansabbir/)