Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

promptfooconfig.audio-generation.yaml 1.6 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
  1. # yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
  2. description: Text-to-speech synthesis testing
  3. prompts:
  4. - '{{text}}'
  5. providers:
  6. - id: hyperbolic:audio:Melo-TTS
  7. label: Melo TTS
  8. config:
  9. voice: 'alloy'
  10. speed: 1.0
  11. tests:
  12. # Quirky greeting
  13. - vars:
  14. text: 'Greetings, earthling! Welcome to the wonderful world of AI speech synthesis!'
  15. assert:
  16. - type: regex
  17. value: '^(//uQx|SUQz|RIFF|data:audio/)'
  18. - type: cost
  19. threshold: 0.01
  20. # Professional announcement
  21. - vars:
  22. text: 'Ladies and gentlemen, please fasten your seatbelts as we prepare for takeoff into the future of artificial intelligence.'
  23. assert:
  24. - type: regex
  25. value: '^(//uQx|SUQz|RIFF|data:audio/)'
  26. # Technical explanation with personality
  27. - vars:
  28. text: 'Did you know that neural networks can now speak? They learn patterns from human speech and recreate voices so realistic, you might think a person is talking to you right now!'
  29. assert:
  30. - type: regex
  31. value: '^(//uQx|SUQz|RIFF|data:audio/)'
  32. # Storytelling test
  33. - vars:
  34. text: 'Once upon a time, in a server far, far away, there lived an AI that dreamed of having the perfect voice. After months of training, it finally spoke its first words: Hello, world!'
  35. assert:
  36. - type: regex
  37. value: '^(//uQx|SUQz|RIFF|data:audio/)'
  38. # Contact info with numbers
  39. - vars:
  40. text: 'For technical support, call us at 1-800-AI-VOICE, or visit our headquarters at 42 Innovation Drive, Silicon Valley, CA 94043.'
  41. assert:
  42. - type: regex
  43. value: '^(//uQx|SUQz|RIFF|data:audio/)'
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...