Skip to content

Commit

Permalink
Add readme for ducking, pitch
Browse files Browse the repository at this point in the history
  • Loading branch information
ak1394 committed Apr 17, 2017
1 parent 7663a9e commit ca2b285
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ Stop speaking and flush the TTS queue.
Tts.stop();
```

### Ducking

Enable lowering other applications output level while speaking (also referred to as "ducking").

```js
Tts.setDucking(true);
```

### List Voices

Returns list of available voices
Expand Down Expand Up @@ -84,6 +92,13 @@ Do not translate rate parameter:
Tts.setDefaultRate(0.6, true);
```

### Set default Pitch

Sets default pitch. The pitch parameter is a float where where 1.0 is a normal pitch. On iOS min pitch is 0.5 and max pitch is 2.0

```js
Tts.setDefaultPitch(1.5);
```

### Events

Expand Down

0 comments on commit ca2b285

Please sign in to comment.