Commit Graph

236 Commits

Author SHA1 Message Date
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
5281bb9b59 Update index.js 2024-09-08 15:23:48 +08:00
a2b4f03d9d Add files via upload 2024-09-08 15:21:37 +08:00
8be21fc5c4 Swap RVC function/setting checks 2024-08-26 10:30:17 +03:00
b7f31cb2ce TTS: Ignore prompt-hidden messages on auto narration 2024-08-22 22:13:57 +03:00
f17df7d9ad Add remove key button for Azure TTS 2024-08-13 20:33:59 +03:00
1883095e39 Move request to backend 2024-08-13 20:29:33 +03:00
ab42d6ff82 Quick and dirty attempt at implementing an OpenAI compatible TTS voice provider 2024-08-13 02:07:46 -07:00
6683ae810f Replace mobile TTS placeholder text
Closes #2631
2024-08-09 10:17:06 +03:00
22a7792bac #2545 Fix system tts pitch slider not working 2024-07-23 22:35:15 +03:00
526d41edc3 Expose playFullConversation to UI 2024-07-10 23:32:00 +03:00
be2d658a2e Update TTS extension to use new popup 2024-06-30 22:01:34 +03:00
2a3e71bf6e Force reinitialize when chat changed 2024-06-30 14:06:31 +03:00
d3a7466929 remove line break 2024-06-30 16:22:05 +09:00