Skip to content

Commit 8b7d327

Browse files
committed
Add random quote functionality and integrate into default profile text
1 parent 5856945 commit 8b7d327

File tree

3 files changed

+109
-1
lines changed

3 files changed

+109
-1
lines changed

src/lib/shared/resources/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { getFileFromUrl } from "./getFileFromUrl";
55
export * from "./models";
66
export * from "./voices";
77
export * from "./langs";
8+
export * from "./quotes";
89

910
const downloadUrl =
1011
"https://huggingface.co/onnx-community/Kokoro-82M-v1.0-ONNX/resolve/1939ad2a8e416c0acfeecc08a694d14ef25f2231";

src/lib/shared/resources/quotes.ts

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
export function getRandomQuote(): string {
2+
let index = Math.floor(Math.random() * quotes.length);
3+
index = Math.min(index, quotes.length - 1);
4+
return quotes[index];
5+
}
6+
7+
const quotes = [
8+
"Dream big, work hard, and never give up.",
9+
"Stay humble, hustle hard, and trust the process.",
10+
"Progress over perfection, always keep moving.",
11+
"Keep going, keep growing, and keep believing.",
12+
"Do more, worry less, and enjoy the journey.",
13+
"Rise up, stay strong, and push forward.",
14+
"No risk, no reward, so take the leap.",
15+
"Work hard, stay kind, and inspire others.",
16+
"Less doubt, more action, and watch success follow.",
17+
"Stronger than yesterday, braver than ever.",
18+
"Mistakes are lessons, growth is the reward.",
19+
"Small steps lead to big results over time.",
20+
"Grow through what you go through, always learn.",
21+
"Learn, adapt, evolve, and keep improving.",
22+
"Action beats intention, so take the first step.",
23+
"Create, innovate, inspire, and change the world.",
24+
"One step at a time, one goal at a time.",
25+
"Fail fast, learn faster, and keep going.",
26+
"Success loves preparation, so always be ready.",
27+
"Believe, achieve, succeed, and repeat daily.",
28+
"Effort equals progress, and progress equals success.",
29+
"Push harder, shine brighter, and stand out.",
30+
"Start now, not later, and make it count.",
31+
"Your pace, your race, run it your way.",
32+
"Mindset is everything, so think positively.",
33+
"Failure fuels growth, and growth fuels success.",
34+
"Focus on the solution, not the problem.",
35+
"Learn daily, grow endlessly, and keep evolving.",
36+
"Be fearless, be limitless, and chase your dreams.",
37+
"Win or learn, never lose, always move forward.",
38+
"Your limits are mental, break through them.",
39+
"Stay patient, stay focused, and trust the timing.",
40+
"Create your own luck through hard work.",
41+
"Act with purpose, passion, and perseverance.",
42+
"Make it happen, don't wait for it to happen.",
43+
"Excuses change nothing, actions change everything.",
44+
"Fear is temporary, regret lasts forever.",
45+
"Master your mindset, master your destiny.",
46+
"No challenge, no growth, embrace the struggle.",
47+
"Turn obstacles into opportunities and thrive.",
48+
"Stay hungry, stay foolish, and stay persistent.",
49+
"Dreams require action, so start now.",
50+
"Success starts with belief and hard work.",
51+
"Discipline drives success, not just motivation.",
52+
"Strive for progress, not overnight perfection.",
53+
"Hard work beats talent when talent is lazy.",
54+
"Trust the process, even when it's slow.",
55+
"Commit to the journey, not just the goal.",
56+
"Doubt kills more dreams than failure ever will.",
57+
"Think big, start small, and keep going.",
58+
"Turn pain into power and rise above.",
59+
"Embrace the grind, enjoy the results.",
60+
"Push past limits and redefine possible.",
61+
"Your growth is your responsibility, own it.",
62+
"Chase excellence, not just success.",
63+
"No shortcuts to success, only hard work.",
64+
"Work smart, stay consistent, and be patient.",
65+
"Lead by example and inspire those around you.",
66+
"Success is earned through dedication and effort.",
67+
"Courage over comfort, always push yourself.",
68+
"Failure is not the end, just a lesson.",
69+
"Make every second count towards your dreams.",
70+
"Struggle builds strength, so embrace the challenge.",
71+
"Take action, get results, and never stop.",
72+
"Small wins build momentum, celebrate them.",
73+
"Be your own hero, no one will do it for you.",
74+
"Stay consistent, stay unstoppable, and stay focused.",
75+
"Dreams demand dedication, discipline, and patience.",
76+
"Fear less, do more, and take bold steps.",
77+
"Decide, commit, succeed, and stay on track.",
78+
"Your time is now, don't waste it.",
79+
"Step out of your comfort zone and grow.",
80+
"Progress requires effort, not just wishes.",
81+
"Focus, execute, succeed, and repeat daily.",
82+
"Master the basics before chasing the complex.",
83+
"Hustle with heart and passion every day.",
84+
"Make today count, because tomorrow isn't promised.",
85+
"Turn dreams into reality with determination.",
86+
"Failure is a stepping stone, not a dead end.",
87+
"Consistency beats intensity, so keep at it.",
88+
"Your actions define you, not just your words.",
89+
"Every day is a fresh start, use it well.",
90+
"Winners never quit, and quitters never win.",
91+
"Take the first step, and doors will open.",
92+
"Never stop learning, growing, and improving.",
93+
"Every setback is a setup for a comeback.",
94+
"Create, don't wait, and make opportunities.",
95+
"Stay focused, stay fearless, and chase greatness.",
96+
"Break barriers, build dreams, and reach higher.",
97+
"Your mindset shapes your world, so think big.",
98+
"Be the change you seek in the world.",
99+
"Opportunities don't wait, so take action now.",
100+
"Embrace the struggle, it makes you stronger.",
101+
"Growth begins at discomfort, push through it.",
102+
"Push through the pain, and find your power.",
103+
"Stay dedicated, stay disciplined, and stay driven.",
104+
"Believe in your grind, and trust yourself.",
105+
"Be unstoppable, nothing can hold you back.",
106+
];

src/routes/store.svelte.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { browser } from "$app/environment";
22
import { detectWebGPU } from "$lib/client/utils";
33
import {
4+
getRandomQuote,
45
modelsMap,
56
voicesMap,
67
type LangId,
@@ -29,7 +30,7 @@ function getCurrentHost() {
2930

3031
export const defaultProfile: ProfileData = {
3132
name: "default",
32-
text: "Sometimes you win, sometimes you learn.",
33+
text: getRandomQuote(),
3334
lang: voicesMap["af_alloy"].lang.id,
3435
voiceMode: "simple",
3536
voiceFormula: voicesMap["af_alloy"].id,

0 commit comments

Comments
 (0)