Skip to content

Commit

Permalink
Fix the inversion between Add and Flush in the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Enzo MENEGALDO committed Nov 12, 2024
1 parent 39ad20b commit 5123bfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ The <a href="#speechsynthesisvoice">SpeechSynthesisVoice</a> interface represent

| Members | Value | Description |
| ----------- | -------------- | ---------------------------------------------------------------------------------------------------------------------- |
| **`Add`** | <code>0</code> | Use `Add` to stop the current request when a new request is sent. |
| **`Flush`** | <code>1</code> | Use `Flush` to buffer the speech request. The request will be executed when all previous requests have been completed. |
| **`Flush`** | <code>0</code> | Use `Flush` to stop the current request when a new request is sent. |
| **`Add`** | <code>1</code> | Use `Add` to buffer the speech request. The request will be executed when all previous requests have been completed. |

</docgen-api>

Expand Down
8 changes: 4 additions & 4 deletions src/definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5123bfa

Please sign in to comment.