Commit Graph

249 Commits

Author SHA1 Message Date
586ce36167 Merge pull request #3868 from YunZLu/staging
Fix Edge Browser TTS Compatibility
2025-04-19 01:15:14 +03:00
352a8c3c97 Fix TTS provider settings
Fixes #3877
2025-04-18 22:03:17 +03:00
41c2dd16f2 fix(eslint): resolve no-trailing-spaces error 2025-04-18 04:12:37 +08:00
d7cc70256a cleaned all redundant comments 2025-04-18 03:58:04 +08:00
d511875db9 Fix Edge Browser TTS Compatibility
Edge-compatible fallback for empty Web Speech voice lists
2025-04-17 19:46:49 +08:00
65a6e428d1 Improve tilde code blocks in message formatting and TTS processing 2025-03-30 13:25:15 +03:00
0af4a3ebd7 Fix unfixable lints 2025-03-19 21:10:42 +02:00
20cdcc37fc Fix fixable lints 2025-03-19 20:00:33 +02:00
594a3720ad Fix TTS 2025-03-18 00:59:04 +02:00
1b817cd897 Kokoro: chunk generation, add pre-process func
#3412
2025-03-12 21:35:09 +02:00
e23f3a6314 feature: 'kokoro-js' supports TTS #3412 (#3656)
* feature: 'kokoro-js' supports TTS #3412

* Linting, add credits for kokoro library

* Fix voice preview

* Fix display languages on previews

* Fix settings restoration. Debounce model init on settings change

* Fix engine sorting

* Move TTS processing to a web worker. Remove unused gain setting

* Speaking rate fix

* Update status when recreating a worker

* Pass voices list from TTS engine

* Call dispose function on provider change

* Extend worker init timeout to 10 minutes

---------

Co-authored-by: ryan <1014670860@qq.com>
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-03-10 22:54:54 +02:00
8a750c6341 Restore chosen AllTalk version on load 2025-03-01 01:33:39 +02:00
e91387c60b Fix rate and pitch for system tts
Closes #2545
2025-02-28 22:18:53 +02:00
c12f26441e Merge branch 'staging' into support-multiple-expressions 2025-02-19 20:22:02 +01:00
1a4bcbb794 Remove input length restrictions from OpenAI compatible TTS
Closes #3505
2025-02-18 10:34:15 +02:00
25ffc4ac4a Merge branch 'staging' into support-multiple-expressions 2025-02-01 04:47:48 +01:00
3a6d5faa8a Merge branch 'release' into staging 2025-01-30 21:06:40 +02:00
198fbe1a1f Set RVC version match correctly 2025-01-30 17:41:24 +00:00
2318df8b74 alltalk.js resolve V1 URL duplication in AllTalk TTS audio output
Fix URL concatenation issue where base URL was being duplicated in audio file paths. 

Updated handling of V1 (full URL) and V2 (relative path) API response formats to prevent `http://localhost:7851http://127.0.0.1:7851` type errors.
2025-01-30 17:21:41 +00:00
73393a5d5e yoink talkinghead - goodbye extras dependency 2025-01-30 01:44:27 +01:00
4f456b2b80 TTS: Call module worker when audio stops playing
#3371
2025-01-28 23:14:26 +02:00
6dde068e71 Merge pull request #3371 from fearmear/release
Decrease TTS generation delay by splitting a message on a new line
2025-01-28 23:10:12 +02:00
2aa1dd41f5 eslint 2025-01-28 23:07:59 +02:00
63e7acb87b Make this feature togglable in extensions > "Narrate by paragraphs (when not streaming)" 2025-01-28 05:50:25 +03:00
145136059e Fix tts.skip_tags's regex to match newlines
The extension_settings.tts.skip_tags setting is meant to skip sending
tags and their content to the TTS API provider. The original regular
expression matched content inside tags with ".*?". Unfortunately,
Javascript's engine does *not* match newlines on the "." without the /s
flag.

The /s flag was added in ES2018. To be more compatible, the regex
has been changed to "[\s\S]+?". This gives similar performance (instead
of using capture groups) and matches all content within a tag, as the
original regex intended.
2025-01-27 17:43:24 -08:00
283ceb6bbf Decrease TTS generation delay by splitting a message on a new line 2025-01-28 02:51:05 +03:00
5ea8309a30 Change check from ! not to is == V2 2025-01-08 00:01:36 +00:00
de8ecc6903 Correct skipping RVC on AllTalk V1 Server
Silly bug that caused the extension when used with the legacy V1 AllTalk server, would cause it to skip downloading Narrator voices.

Literally changed "v2" to "v1" on line 391

No other changes.
2025-01-07 23:20:53 +00:00
1d3abf54a5 Move AllTalk event handlers setup up 2024-12-08 00:48:44 +02:00
960db2d59b Update tts/style.css
.at-settings-separator padding fix
2024-12-05 03:25:13 +02:00
66a862f797 Lint the use of data-i18n attributes 2024-12-01 15:10:22 +02:00
9a15f45a2c feat: Improve Korean data-18n 2024-11-22 08:08:05 +09:00
85d25a8e13 Merge pull request #3060 from erew123/release
Support for AllTalk V1 and V2
2024-11-16 17:09:07 +02:00
e857db40fb Updated AllTalk Extension to support AllTalk V2
1. Core Feature Addition:
   - Added AllTalk V1/V2 server version selection
   - Added RVC (Realistic Voice Conversion) support for V2
   - RVC features are automatically disabled when V1 is selected

2. Code Improvements:
   - Replaced custom debounce implementation with shared utils.js debounce utility
   - Fixed linting issues:
     - Converted HTML attribute quotes in template literals to single quotes
     - Added trailing commas where required
     - Fixed console.error message formatting

3. New Settings/Properties Added:
   ```javascript
   server_version: 'v2' (default)
   rvc_character_voice: 'Disabled'
   rvc_character_pitch: '0'
   rvc_narrator_voice: 'Disabled'
   rvc_narrator_pitch: '0'
   ```

4. Bug Fixes/Improvements:
   - Better error handling for RVC voice fetching
   - Improved URL handling for V1/V2 differences in API responses
   - Enhanced settings initialization and validation

5. Structural Changes:
   - Added RVC-specific UI elements and controls
   - Added version-specific logic for API endpoints
   - Improved settings synchronization between UI and backend

**NOTE** On line 70 there is an eslint bypass:

```javascript
        // HTML template literals can trigger ESLint quotes warnings when quotes are used in HTML attributes.
        // Disabling quotes rule for this one line as it's a false positive with HTML template literals.
        // eslint-disable-next-line quotes
        let html = `<div class="at-settings-separator">AllTalk V2 Settings</div>`;
```

The reason is:
1. ESLint's quotes rule wants all strings to use single quotes
2. However, this is a template literal containing HTML, where double quotes are standard for attributes
3. I tried various solutions:
   - Using single quotes: `<div class='at-settings-separator'>`
   - Using double quotes: `<div class="at-settings-separator">`
   - Even tried escaping quotes
   But ESLint just kept flagging it as an error
2024-11-15 13:14:38 +00:00
3138252928 Support for AllTalk V1 and V2
Select the version in the interface. 
RVC is not supported on AllTalk V1
2024-11-10 20:25:08 +00:00
52a4c9202d Update public/scripts/extensions/tts/index.js
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-11-03 19:57:33 +03:00
8b32ee9e80 Remove embedded images before send text to TTS 2024-11-02 20:25:25 +03:00
8cb0fda321 TTS: Add Google Translate TTS 2024-10-12 13:35:11 +03:00
a5be889852 Extend quote list for TTS 2024-10-05 20:14:07 +03:00
00e48097e5 Mark provider unofficial in the list 2024-09-27 20:34:21 +03:00
43c3943287 Merge branch 'staging' into GPT-SoVITS-V2 2024-09-27 20:29:22 +03:00
84c04f0354 Mark provider unofficial in the list 2024-09-27 20:27:51 +03:00
d7d204f2ab Merge branch 'staging' into CosyVoice 2024-09-27 20:26:32 +03:00
9c6352fcae Update gpt-sovits-v2.js
add (Unofficial) label
2024-09-26 15:20:29 +08:00
d8935be5e5 Update cosyvoice.js
add Unofficial label
2024-09-26 15:17:28 +08:00
0ed39d19ec Fix TTS falsy checks 2024-09-13 21:51:05 +03:00
b9ed37f985 Update index.js 2024-09-08 23:00:25 +08:00
fe34f0d1c4 Add files via upload 2024-09-08 22:57:43 +08:00
b6c270c642 Update cosyvoice.js
add project url
2024-09-08 16:14:24 +08:00
546d05b246 Update cosyvoice.js
fix comments
2024-09-08 15:56:19 +08:00