224 Commits

Author SHA1 Message Date
erew123
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
erew123
5ea8309a30
Change check from ! not to is == V2 2025-01-08 00:01:36 +00:00
erew123
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
Cohee
1d3abf54a5 Move AllTalk event handlers setup up 2024-12-08 00:48:44 +02:00
IceFog72
960db2d59b
Update tts/style.css
.at-settings-separator padding fix
2024-12-05 03:25:13 +02:00
Cohee
66a862f797 Lint the use of data-i18n attributes 2024-12-01 15:10:22 +02:00
tincansimagine
9a15f45a2c feat: Improve Korean data-18n 2024-11-22 08:08:05 +09:00
Cohee
85d25a8e13
Merge pull request #3060 from erew123/release
Support for AllTalk V1 and V2
2024-11-16 17:09:07 +02:00
erew123
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
erew123
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
Yaroslav Sivakov
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
Yaroslav Sivakov
8b32ee9e80 Remove embedded images before send text to TTS 2024-11-02 20:25:25 +03:00
Cohee
8cb0fda321 TTS: Add Google Translate TTS 2024-10-12 13:35:11 +03:00
Cohee
a5be889852 Extend quote list for TTS 2024-10-05 20:14:07 +03:00
Cohee
00e48097e5 Mark provider unofficial in the list 2024-09-27 20:34:21 +03:00
Cohee
43c3943287 Merge branch 'staging' into GPT-SoVITS-V2 2024-09-27 20:29:22 +03:00
Cohee
84c04f0354 Mark provider unofficial in the list 2024-09-27 20:27:51 +03:00
Cohee
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
Cohee
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
Cohee
8be21fc5c4 Swap RVC function/setting checks 2024-08-26 10:30:17 +03:00
Cohee
b7f31cb2ce TTS: Ignore prompt-hidden messages on auto narration 2024-08-22 22:13:57 +03:00
Cohee
f17df7d9ad Add remove key button for Azure TTS 2024-08-13 20:33:59 +03:00
Cohee
1883095e39 Move request to backend 2024-08-13 20:29:33 +03:00
Alex Yancey
ab42d6ff82 Quick and dirty attempt at implementing an OpenAI compatible TTS voice provider 2024-08-13 02:07:46 -07:00
Cohee
6683ae810f Replace mobile TTS placeholder text
Closes #2631
2024-08-09 10:17:06 +03:00
Cohee
22a7792bac #2545 Fix system tts pitch slider not working 2024-07-23 22:35:15 +03:00
Cohee
526d41edc3 Expose playFullConversation to UI 2024-07-10 23:32:00 +03:00
Cohee
be2d658a2e Update TTS extension to use new popup 2024-06-30 22:01:34 +03:00
Cohee
2a3e71bf6e Force reinitialize when chat changed 2024-06-30 14:06:31 +03:00
Risenafis
d3a7466929
remove line break 2024-06-30 16:22:05 +09:00
Risenafis
26d506874f
prevent parallel execution of initVoiceMap 2024-06-30 13:58:51 +09:00
Risenafis
bb39e852b8
TTS: Add support for VITS/W2V2-VITS/Bert-VITS2 (#2439)
* add VITSTtsProvider

* add options

* fix params, drop reference_audio_path

* post with body

* improve preview lang

* add space in label
2024-06-29 14:15:37 +03:00
Cohee
8034564c3e Update TTS voice preview to new popup 2024-06-26 00:41:37 +03:00
Risenafis
0276a2ef71 fix sanitizeId 2024-06-25 22:23:55 +09:00
Risenafis
bbd4d7e2fd rejoin style 2024-06-25 20:05:41 +09:00
Cohee
990130d7c2 Clean-up wand menu styles 2024-06-24 23:32:24 +03:00
Cohee
62a1cb1dce Move built-in extensions to fixed wand containers 2024-06-24 23:17:58 +03:00
Cohee
d2b2856630 Move TTS settings to HTML template 2024-06-24 22:19:21 +03:00
Cohee
c8b9b62d8a Update built-in extensions to use fixed order in extensions menu 2024-06-24 22:15:08 +03:00
Cohee
e2593215bf Fix speak command broken 2024-06-23 15:44:53 +03:00
Cohee
278b526898 Add icon for voice command 2024-06-23 15:43:57 +03:00
Wolfsblvt
48077d200b More slash command enums (nearly done) 2024-06-21 20:04:55 +02:00