Text-to-Speech
PyTorch
ONNX
Catalan
matcha-tts
acoustic modelling
speech
multispeaker
AlexK-PL commited on
Commit
7705de4
1 Parent(s): b9d9e1d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -24
README.md CHANGED
@@ -49,32 +49,32 @@ The quality of the samples can vary depending on the speaker.
49
  This may be due to the sensitivity of the model in learning specific frequencies and also due to the samples used for each speaker.
50
 
51
  ## How to use
52
- ```python
53
- import torch
54
- from transformers import pipeline, AutoTokenizer, AutoModelForCausalLM
55
-
56
- input_text = "Sovint em trobo pensant en tot allò que"
57
-
58
- model_id = "projecte-aina/FLOR-6.3B"
59
- tokenizer = AutoTokenizer.from_pretrained(model_id)
60
- generator = pipeline(
61
- "text-generation",
62
- model=model_id,
63
- tokenizer=tokenizer,
64
- torch_dtype=torch.bfloat16,
65
- trust_remote_code=True,
66
- device_map="auto",
67
- )
68
- generation = generator(
69
- input_text,
70
- do_sample=True,
71
- top_k=10,
72
- eos_token_id=tokenizer.eos_token_id,
73
- )
74
-
75
- print(f"Result: {generation[0]['generated_text']}")
76
  ```
77
 
 
 
78
  ## Training
79
 
80
  ### Adaptation
 
49
  This may be due to the sensitivity of the model in learning specific frequencies and also due to the samples used for each speaker.
50
 
51
  ## How to use
52
+
53
+ ### Installation
54
+
55
+ ```bash
56
+ pip install git+https://github.com/langtech-bsc/vocos.git@matcha
57
+ ```
58
+ You need to install the Catalan phonemizer version of espeak-ng:
59
+
60
+ ```bash
61
+ git clone https://github.com/projecte-aina/espeak-ng.git
62
+
63
+ export PYTHON=/path/to/env/<env_name>/bin/python
64
+ cd /path/to/espeak-ng
65
+ ./autogen.sh
66
+ ./configure --prefix=/path/to/espeak-ng
67
+ make
68
+ make install
69
+
70
+ pip cache purge
71
+ pip install mecab-python3
72
+ pip install unidic-lite
73
+
 
 
74
  ```
75
 
76
+ ### Generate
77
+
78
  ## Training
79
 
80
  ### Adaptation