JeanOre commited on
Commit
6fb438d
1 Parent(s): 0991ffe

Create Model-Voice

Browse files
Files changed (1) hide show
  1. Model-Voice +7 -0
Model-Voice ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from transformers import Text2SpeechForConditionalGeneration, Wav2Vec2ForSequenceClassification
2
+
3
+ # Cargar un modelo para síntesis de voz
4
+ model = Text2SpeechForConditionalGeneration.from_pretrained("nombre_del_modelo")
5
+
6
+ # Cargar un modelo para reconocimiento de voz
7
+ model = Wav2Vec2ForSequenceClassification.from_pretrained("nombre_del_modelo")