|
53 | 53 |
|
54 | 54 | prompts = [' '.join(prompts)] + prompts
|
55 | 55 |
|
| 56 | +long_prompt = """French onion soup is a classic and delicious dish that is easy to make at home. Here's a simple recipe for French onion soup that you can try: |
| 57 | +
|
| 58 | +Ingredients: |
| 59 | +
|
| 60 | +* 1 onion, 1/4 cup, chopped |
| 61 | +* 2 tablespoons butter |
| 62 | +* 1/4 cup white wine (optional) |
| 63 | +* 4 cups beef broth |
| 64 | +* 2 tablespoons tomato paste |
| 65 | +* 1 teaspoon dried thyme |
| 66 | +* 1/2 teaspoon dried oregano |
| 67 | +* 1/2 teaspoon salt |
| 68 | +* 1/4 teaspoon black pepper |
| 69 | +* 2 tablespoons all-purpose flour |
| 70 | +* 2 tablespoons butter |
| 71 | +* 1/2 cup grated Gruyère cheese |
| 72 | +* 1/2 cup grated Swiss cheese |
| 73 | +* 1/4 cup chopped fresh parsley |
| 74 | +
|
| 75 | +Instructions: |
| 76 | +
|
| 77 | +1. Heat 2 tablespoons of butter in a large saucepan over medium heat. |
| 78 | +2. Add the chopped onion and cook until it is softened and translucent, about 5 minutes. |
| 79 | +3. Add the white wine (if using) and 4 cups of beef broth to the saucepan. Bring to a boil, then reduce the heat to low and let it simmer for 10 minutes. |
| 80 | +4. In a small bowl, mix the tomato paste, thyme, oregano, salt, and pepper. |
| 81 | +5. Stir the tomato paste mixture into the broth and let it simmer for 5 more minutes. |
| 82 | +6. In a small bowl, mix the flour and 2 tablespoons of butter. |
| 83 | +7. Stir the flour mixture into the broth and let it cook for 1-2 minutes, or until the soup thickens. |
| 84 | +8. Stir in the Gruyère and Swiss cheese, and let it melt and thicken the soup. |
| 85 | +9. Taste and adjust the seasoning as needed. |
| 86 | +10. Serve the French onion soup hot, garnished with chopped fresh parsley and a side of crusty bread or a salad. |
| 87 | +
|
| 88 | +Enjoy your""" |
| 89 | + |
| 90 | +#prompts = [long_prompt[:500]] |
| 91 | + |
56 | 92 | for prompt_idx, prompt in enumerate(prompts):
|
57 | 93 | wav_path = f"/data/audio/tts/{model_name}_streaming_{speaker.lower().replace(' ', '_')}_{prompt_idx}.wav"
|
58 | 94 | logging.info(f'\nstreaming "{prompt}" speaker="{speaker}" lang="{language}" wav="{wav_path}"\n')
|
|
66 | 102 | gpt_cond_latent,
|
67 | 103 | speaker_embedding,
|
68 | 104 | enable_text_splitting=False, #True,
|
69 |
| - overlap_len=128, |
| 105 | + #overlap_len=128, |
70 | 106 | #stream_chunk_size=20,
|
71 |
| - do_sample=False, |
| 107 | + #do_sample=False, |
72 | 108 | speed=0.9,
|
73 | 109 | )
|
74 | 110 |
|
|
0 commit comments