somrajmondal commited on
Commit
8ed9461
·
verified ·
1 Parent(s): 826eff4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +8 -3
README.md CHANGED
@@ -84,6 +84,10 @@ model = model.to(device)
84
 
85
 
86
 
 
 
 
 
87
  text = '''<smiles> Hey guys! How are you today? How sweet does my voice sound?'''
88
  speaker_id = 0
89
  conversation = [
@@ -120,9 +124,9 @@ audio_values = model.generate(
120
  **inputs_for_length.to(device),
121
  max_new_tokens=max_new_tokens,
122
  output_audio=True,
123
- do_sample=True, # makes voice expressive
124
- temperature=0.9,
125
- top_p=0.9,
126
  )
127
 
128
  # -------------------------
@@ -136,3 +140,4 @@ display(Audio(audio, rate=24000))
136
 
137
  print("Saved example_voice_context.wav successfully!")
138
 
 
 
84
 
85
 
86
 
87
+ from IPython.display import Audio, display
88
+ import soundfile as sf
89
+ import torch
90
+
91
  text = '''<smiles> Hey guys! How are you today? How sweet does my voice sound?'''
92
  speaker_id = 0
93
  conversation = [
 
124
  **inputs_for_length.to(device),
125
  max_new_tokens=max_new_tokens,
126
  output_audio=True,
127
+ # do_sample=True, # makes voice expressive
128
+ # temperature=0.9,
129
+ # top_p=0.9,
130
  )
131
 
132
  # -------------------------
 
140
 
141
  print("Saved example_voice_context.wav successfully!")
142
 
143
+