From 81ef47537ef4101c6ed9adc09c825fd7f7f14f4a Mon Sep 17 00:00:00 2001 From: damian Date: Tue, 3 Dec 2024 13:05:06 +0100 Subject: [PATCH 1/2] fix TTS values documentation --- lib/src/definitions.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/src/definitions.dart b/lib/src/definitions.dart index 46bc432..7b76ddc 100644 --- a/lib/src/definitions.dart +++ b/lib/src/definitions.dart @@ -304,13 +304,16 @@ class OnSpeakAloudTextResult { /// A [String] that represents the language code, i.e. es-ES final String? lang; - /// A [Double] that represents the volume from 0.0 to 1.0 + /// A [Double] that represents the volume from 0.0 to 1.0, default 1 + /// https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/volume final double? volume; - /// A [Double] that represents the speech pitch from 0.0 to 1.0 + /// A [Double] that represents the speech pitch from 0.0 to 2.0, default 1 + /// https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/pitch final double? pitch; - /// A [Double] that represents the speech rate from 0.0 to 1.0 + /// A [Double] that represents the speech rate from 0.0 to 10.0, default 1 + /// https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/rate final double? rate; const OnSpeakAloudTextResult( From 4b128b28034abd8b95d26f4bb0ad7153c49f6e8a Mon Sep 17 00:00:00 2001 From: damian Date: Tue, 3 Dec 2024 13:06:32 +0100 Subject: [PATCH 2/2] changelog unreleased --- CHANGELOG_UNRELEASED.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG_UNRELEASED.md b/CHANGELOG_UNRELEASED.md index e69de29..06b94b6 100644 --- a/CHANGELOG_UNRELEASED.md +++ b/CHANGELOG_UNRELEASED.md @@ -0,0 +1 @@ +- fix OnSpeakAloudTextResult params values documentation