Skip to content

Commit bc26b19

Browse files
Fix default voice for elevenlabs (#153)
1 parent c31ae1a commit bc26b19

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

ts/elevenlabs/frontend/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function App() {
1919
const [showVoicesPanel, setShowVoicesPanel] = useState(false);
2020
const [showHistoryPanel, setShowHistoryPanel] = useState(false);
2121

22-
const [voice, setVoice] = useState<string>("Rachel");
22+
const [voice, setVoice] = useState<string>("Lily");
2323
const [stability, setStability] = useState<number>(50);
2424
const [similarity, setSimilarity] = useState<number>(75);
2525
const [exaggeration, setExaggeration] = useState<number>(0);

ts/elevenlabs/frontend/src/Suggestions.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ interface Suggestion {
66
}
77

88
const data: Suggestion[] = [
9-
{
10-
voice: "Rachel",
11-
text: "Have you ever wondered what lies beyond the stars? What mysteries does the universe hold?",
12-
},
139
{
1410
voice: "Paul",
1511
text: "The sunset painted the sky in hues of orange and pink, casting a warm glow over the tranquil sea.",

ts/elevenlabs/frontend/src/VoicesPanel.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const VoicesPanel: FC<{
2424
.getVoices()
2525
.then((response) => {
2626
setVoices(response.voices);
27+
setVoice(response.voices[0]);
2728
})
2829
.catch((err) => {
2930
console.error(err);

0 commit comments

Comments
 (0)