From 5123bfa5bf2ec92edd1d8825a5d526fda9fabea8 Mon Sep 17 00:00:00 2001 From: Enzo MENEGALDO Date: Tue, 12 Nov 2024 11:38:42 +0100 Subject: [PATCH] Fix the inversion between Add and Flush in the documentation --- README.md | 4 ++-- src/definitions.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 0f520eb..35447ab 100644 --- a/README.md +++ b/README.md @@ -233,8 +233,8 @@ The SpeechSynthesisVoice interface represent | Members | Value | Description | | ----------- | -------------- | ---------------------------------------------------------------------------------------------------------------------- | -| **`Add`** | 0 | Use `Add` to stop the current request when a new request is sent. | -| **`Flush`** | 1 | Use `Flush` to buffer the speech request. The request will be executed when all previous requests have been completed. | +| **`Flush`** | 0 | Use `Flush` to stop the current request when a new request is sent. | +| **`Add`** | 1 | Use `Add` to buffer the speech request. The request will be executed when all previous requests have been completed. | diff --git a/src/definitions.ts b/src/definitions.ts index 1323fe6..24c68c9 100644 --- a/src/definitions.ts +++ b/src/definitions.ts @@ -42,13 +42,13 @@ export interface TextToSpeechPlugin { export enum QueueStrategy { /** - * Use `Add` to stop the current request when a new request is sent. + * Use `Flush` to stop the current request when a new request is sent. */ - Add = 0, + Flush = 0, /** - * Use `Flush` to buffer the speech request. The request will be executed when all previous requests have been completed. + * Use `Add` to buffer the speech request. The request will be executed when all previous requests have been completed. */ - Flush = 1 + Add = 1 } export interface TTSOptions {