Commit Graph

25 Commits

Author SHA1 Message Date
tsukumi
c140c0612a Fix: Old comment 2024-09-17 05:23:57 +09:00
tsukumi
0e71d7ef7c Fix: Specifying the device_map option in extract_bert_feature() 2024-09-17 05:22:30 +09:00
tsukumi
bdf20e8911 Refactor: Use bert_models.transfer_model() 2024-09-17 05:21:03 +09:00
litagin02
2274087da4 Fmt only (maybe) 2024-05-25 18:15:36 +09:00
tsukumi
44693e7d6b Refactor: improve regular expression performance during NLP
Improve performance by pre-compiling regular expressions that are executed many times.
2024-05-12 17:53:30 +09:00
tsukumi
2d6baa3928 Fix: changed the substitute phoneme from「ん」to 「'」 when the pronunciation can't be obtained 2024-05-06 22:17:34 +09:00
tsukumi
9d15d5763d Refactor: run "hatch run style:fmt" 2024-04-19 04:17:27 +00:00
tsukumi
797c354b1b Add: the ability to specify a phoneme sequence representing the reading of the text to be read during speech synthesis
With this feature, it is possible to specify individual readings for homonyms such as "明日 (ashita/asu)" while maintaining the Kanji representation of the read text.
2024-04-19 04:09:21 +00:00
litagin02
3d8b60c03c Refactor 2024-03-15 12:27:46 +09:00
litagin02
73b01f7172 Add another wave dash for long symbol 2024-03-14 23:31:16 +09:00
litagin02
dada0af2b6 Format import using isort --profile black --gitignore --lai 2 . 2024-03-11 12:37:51 +09:00
litagin02
c776c08235 Apply black formatter 2024-03-11 09:47:47 +09:00
tsukumi
9c233630ef Refactor: don't keep models in bert_feature module for each language
BERT models and tokenizers are already stored and managed in the bert_models module and should not be stored here.
In addition, since there may be situations where the user would like to use cpu instead of mps for inference when using it as a library, the automatic switching process to mps was removed.
2024-03-10 14:18:57 +00:00
tsukumi
b7d7c78203 Refactor: when pyopenjtalk_worker is called without initialization, continue processing without a worker
When using style-bert-vits2 as a library, the requirement to be able to launch it in multiple processes may not be necessary. Also, if the library is embedded and exe-ed using PyInstaller or similar, it is difficult to make pyopenjtalk_worker run in a separate process.
Therefore, we changed it so that the worker is used only when it is explicitly initialized.
2024-03-10 03:04:27 +00:00
tsukumi
0a74fe521b Merge branch 'dev' of github.com:litagin02/Style-Bert-VITS2 into dev 2024-03-09 18:12:56 +00:00
tsukumi
c594f7ea7a Refactor: change execution location of pyopenjtalk.initialize()
Considering library design, this function with many side effects should not be executed in a library.
2024-03-09 00:26:51 +00:00
tsukumi
717ba7925f Fix: app.py cannot be closed with Ctrl+C 2024-03-08 22:27:21 +00:00
tsukumi
d22a11ebb2 Fix: a bug that prevented speech synthesis in app.py 2024-03-08 22:09:47 +00:00
tsukumi
30ea08d6ea Fix: forgot to write pyopenjtalk.initialize() 2024-03-08 18:22:40 +00:00
tsukumi
b9e486e72a Fix: extend timeout for style_bert_vits2.nlp.japanese.pyopenjtalk_worker.worker_client
ref: https://github.com/litagin02/Style-Bert-VITS2/pull/91
2024-03-08 16:44:56 +00:00
tsukumi
6b19eac61e Merge branch 'dev' of github.com:litagin02/Style-Bert-VITS2 into dev 2024-03-08 16:03:06 +00:00
tsukumi
766699e812 Fix: pyopenjtalk_worker not working 2024-03-08 09:21:09 +00:00
tsukumi
a672aeefd9 Fix: maintain compatibility with Python 3.9 2024-03-08 08:45:56 +00:00
tsukumi
5de4884075 Fix: import error
pyopenjtalk_worker.initialize() has the side effect of starting another process and should not be executed automatically on import.
2024-03-08 07:31:33 +00:00
tsukumi
fac4f9a8ab Refactor: rename text_processing to nlp
"text_processing" is clearer, but the import statement is longer.
"nlp" is shorter and makes it clear that it is natural language processing.
2024-03-08 06:20:44 +00:00