This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Плагин TTS для голосового помощника Ирины https://github.com/janvarev/Irene-Voice-Assistant с клонированием голоса по образцу. | |
| # (Версия получена путем копии из телеграм-канала, не тестировалась, и обновляться не будет. Приведена для референса) | |
| # От автора: Уже пробно подключил плагином мультиязыковую tts_models/multilingual/multi-dataset/xtts_v2 | |
| # pip install tts | |
| import os | |
| from vacore import VACore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Homepage: https://github.com/janvarev/OneRingTranslator | |
| */ | |
| class OneRingTranslator { | |
| // URL of your instance of OneRingTranslator | |
| // for local instance use URL "http://localhost/translate" | |
| apiPath = 'http://127.0.0.1:4990/translate'; | |
| // Insert API key if you have |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from deepspeed.launcher.runner import main | |
| import sys | |
| import os | |
| if sys.platform == "win32": | |
| os.environ["PL_TORCH_DISTRIBUTED_BACKEND"] = "gloo" | |
| if __name__ == '__main__': | |
| main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Grammar to generate an S-Expressions parser for Javascript using http://pegjs.majda.cz/ | |
| * Example: (+ 1 2) (car (quote (1 2 "test"))) | |
| * Features: | |
| - backslash symbols ("quote\"here"), | |
| - one-line comments starts from ";" | |
| - add "__" for identifiers - convert (car (quote (1 2 "three"))) to ["__car",["__quote",[1,2,"three"]]] | |
| -- to change behavior replace | |
| return "__"+identifier.map(function(a) {return concat(a)}).join(""); |