From ca2b285cff681dd4c06fbc2eac0505f084718011 Mon Sep 17 00:00:00 2001 From: Anton Krasovsky Date: Mon, 17 Apr 2017 22:39:16 +0100 Subject: [PATCH] Add readme for ducking, pitch --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index ce1948d..8d7bc98 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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