ngxson HF Staff commited on
Commit
a414844
·
1 Parent(s): d249fc8
front/src/components/PodcastGenerator.tsx CHANGED
@@ -19,10 +19,11 @@ const SPEEDS = [
19
  { name: 'slow AF', value: 0.8 },
20
  { name: 'slow', value: 0.9 },
21
  { name: 'a bit slow', value: 1.0 },
22
- { name: 'most natural', value: 1.1 },
23
- { name: 'a bit fast', value: 1.2 },
24
- { name: 'fast!', value: 1.3 },
25
- { name: 'fast AF', value: 1.4 },
 
26
  ];
27
 
28
  const SPEAKERS = [
@@ -84,7 +85,7 @@ export const PodcastGenerator = ({
84
  const [script, setScript] = useState<string>('');
85
  const [speaker1, setSpeaker1] = useState<string>('');
86
  const [speaker2, setSpeaker2] = useState<string>('');
87
- const [speed, setSpeed] = useState<string>('1.1');
88
 
89
  const setRandSpeaker = () => {
90
  const { s1, s2 } = getRandomSpeakerPair();
 
19
  { name: 'slow AF', value: 0.8 },
20
  { name: 'slow', value: 0.9 },
21
  { name: 'a bit slow', value: 1.0 },
22
+ { name: 'natural', value: 1.1 },
23
+ { name: 'most natural', value: 1.2 },
24
+ { name: 'a bit fast', value: 1.3 },
25
+ { name: 'fast!', value: 1.4 },
26
+ { name: 'fast AF', value: 1.5 },
27
  ];
28
 
29
  const SPEAKERS = [
 
85
  const [script, setScript] = useState<string>('');
86
  const [speaker1, setSpeaker1] = useState<string>('');
87
  const [speaker2, setSpeaker2] = useState<string>('');
88
+ const [speed, setSpeed] = useState<string>('1.2');
89
 
90
  const setRandSpeaker = () => {
91
  const { s1, s2 } = getRandomSpeakerPair();
front/src/utils/prompts.ts CHANGED
@@ -40,10 +40,12 @@ turns:
40
 
41
  The example above is truncated at index 1, REMEMBER TO CREATE AT LEAST 20 TURNS.
42
  The output text will be passed to TTS engine, make sure to be clean:
43
- - Write numbers and abbreviations as they are pronounced
44
  - For some less-common abbreviations, write the full words
45
  - Use ... for pauses, " and ' and ! and ? for intonation
46
- - IMPORTANT!! Write nicknames and names as they are pronounced. For example, "lora_rank=2" becomes "lora rank equals two", or "LoRA" becomes "Lo Ra", or "CrossEntropyLoss" becomes "Cross Entropy Loss", or "6GB" becomes "6 gigabytes", "A6000" becomes "A six thousands"
 
 
47
 
48
  Now, here is the content you need to write the podcast script:
49
 
 
40
 
41
  The example above is truncated at index 1, REMEMBER TO CREATE AT LEAST 20 TURNS.
42
  The output text will be passed to TTS engine, make sure to be clean:
43
+ - Write NUMBER and abbreviations as WORDS, as they are pronounced
44
  - For some less-common abbreviations, write the full words
45
  - Use ... for pauses, " and ' and ! and ? for intonation
46
+ - IMPORTANT!! Write nicknames and names as they are pronounced. For example, "lora_rank=2" becomes "lora rank equals two", or "LoRA" becomes "Lo Ra", or "CrossEntropyLoss" becomes "Cross Entropy Loss", or "6GB" becomes "six gigabytes", "A6000" becomes "A six thousands"
47
+
48
+ Make it engaging and have fun!
49
 
50
  Now, here is the content you need to write the podcast script:
51
 
index.html CHANGED
@@ -20912,10 +20912,11 @@ const SPEEDS = [
20912
  { name: "slow AF", value: 0.8 },
20913
  { name: "slow", value: 0.9 },
20914
  { name: "a bit slow", value: 1 },
20915
- { name: "most natural", value: 1.1 },
20916
- { name: "a bit fast", value: 1.2 },
20917
- { name: "fast!", value: 1.3 },
20918
- { name: "fast AF", value: 1.4 }
 
20919
  ];
20920
  const SPEAKERS = [
20921
  { name: "🇺🇸 🚺 Heart ❤️", value: "af_heart" },
@@ -20969,7 +20970,7 @@ const PodcastGenerator = ({
20969
  const [script, setScript] = reactExports.useState("");
20970
  const [speaker1, setSpeaker1] = reactExports.useState("");
20971
  const [speaker2, setSpeaker2] = reactExports.useState("");
20972
- const [speed, setSpeed] = reactExports.useState("1.1");
20973
  const setRandSpeaker = () => {
20974
  const { s1, s2 } = getRandomSpeakerPair();
20975
  setSpeaker1(s1);
@@ -21158,10 +21159,12 @@ turns:
21158
 
21159
  The example above is truncated at index 1, REMEMBER TO CREATE AT LEAST 20 TURNS.
21160
  The output text will be passed to TTS engine, make sure to be clean:
21161
- - Write numbers and abbreviations as they are pronounced
21162
  - For some less-common abbreviations, write the full words
21163
  - Use ... for pauses, " and ' and ! and ? for intonation
21164
- - IMPORTANT!! Write nicknames and names as they are pronounced. For example, "lora_rank=2" becomes "lora rank equals two", or "LoRA" becomes "Lo Ra", or "CrossEntropyLoss" becomes "Cross Entropy Loss", or "6GB" becomes "6 gigabytes", "A6000" becomes "A six thousands"
 
 
21165
 
21166
  Now, here is the content you need to write the podcast script:
21167
 
 
20912
  { name: "slow AF", value: 0.8 },
20913
  { name: "slow", value: 0.9 },
20914
  { name: "a bit slow", value: 1 },
20915
+ { name: "natural", value: 1.1 },
20916
+ { name: "most natural", value: 1.2 },
20917
+ { name: "a bit fast", value: 1.3 },
20918
+ { name: "fast!", value: 1.4 },
20919
+ { name: "fast AF", value: 1.5 }
20920
  ];
20921
  const SPEAKERS = [
20922
  { name: "🇺🇸 🚺 Heart ❤️", value: "af_heart" },
 
20970
  const [script, setScript] = reactExports.useState("");
20971
  const [speaker1, setSpeaker1] = reactExports.useState("");
20972
  const [speaker2, setSpeaker2] = reactExports.useState("");
20973
+ const [speed, setSpeed] = reactExports.useState("1.2");
20974
  const setRandSpeaker = () => {
20975
  const { s1, s2 } = getRandomSpeakerPair();
20976
  setSpeaker1(s1);
 
21159
 
21160
  The example above is truncated at index 1, REMEMBER TO CREATE AT LEAST 20 TURNS.
21161
  The output text will be passed to TTS engine, make sure to be clean:
21162
+ - Write NUMBER and abbreviations as WORDS, as they are pronounced
21163
  - For some less-common abbreviations, write the full words
21164
  - Use ... for pauses, " and ' and ! and ? for intonation
21165
+ - IMPORTANT!! Write nicknames and names as they are pronounced. For example, "lora_rank=2" becomes "lora rank equals two", or "LoRA" becomes "Lo Ra", or "CrossEntropyLoss" becomes "Cross Entropy Loss", or "6GB" becomes "six gigabytes", "A6000" becomes "A six thousands"
21166
+
21167
+ Make it engaging and have fun!
21168
 
21169
  Now, here is the content you need to write the podcast script:
21170