218 Commits

Author SHA1 Message Date
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
Wolfsblvt
ffc84f5118 Merge branch 'staging' into slash-command-enums 2024-06-20 20:38:55 +02:00
Cohee
b09e86fb53 TTS code clean-up 2024-06-17 21:21:41 +03:00
Casey Haralson
4d25856b4f
periodically calls the tts module when a paragraph has been generated (#2381)
* periodically calls the tts module when a paragraph has been generated

* adding option for periodic auto generation

* updating find end paragraph logic and config label

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-06-17 21:17:31 +03:00
Cohee
fe5289c495 Fix TTS audio preview 2024-06-17 20:28:19 +03:00
Wolfsblvt
66d609c35f Several million refactoring of existing slash commands with enums (really) 2024-06-17 07:04:10 +02:00
Risenafis
593f9b5832 fix sbvits2 auto splitting by backup/restore 2024-06-11 01:17:35 +09:00