Skip to content

Commit

Permalink
Add random quote functionality and integrate into default profile text
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardolat committed Feb 28, 2025
1 parent 5856945 commit 8b7d327
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib/shared/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { getFileFromUrl } from "./getFileFromUrl";
export * from "./models";
export * from "./voices";
export * from "./langs";
export * from "./quotes";

const downloadUrl =
"https://huggingface.co/onnx-community/Kokoro-82M-v1.0-ONNX/resolve/1939ad2a8e416c0acfeecc08a694d14ef25f2231";
Expand Down
106 changes: 106 additions & 0 deletions src/lib/shared/resources/quotes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
export function getRandomQuote(): string {
let index = Math.floor(Math.random() * quotes.length);
index = Math.min(index, quotes.length - 1);
return quotes[index];
}

const quotes = [
"Dream big, work hard, and never give up.",
"Stay humble, hustle hard, and trust the process.",
"Progress over perfection, always keep moving.",
"Keep going, keep growing, and keep believing.",
"Do more, worry less, and enjoy the journey.",
"Rise up, stay strong, and push forward.",
"No risk, no reward, so take the leap.",
"Work hard, stay kind, and inspire others.",
"Less doubt, more action, and watch success follow.",
"Stronger than yesterday, braver than ever.",
"Mistakes are lessons, growth is the reward.",
"Small steps lead to big results over time.",
"Grow through what you go through, always learn.",
"Learn, adapt, evolve, and keep improving.",
"Action beats intention, so take the first step.",
"Create, innovate, inspire, and change the world.",
"One step at a time, one goal at a time.",
"Fail fast, learn faster, and keep going.",
"Success loves preparation, so always be ready.",
"Believe, achieve, succeed, and repeat daily.",
"Effort equals progress, and progress equals success.",
"Push harder, shine brighter, and stand out.",
"Start now, not later, and make it count.",
"Your pace, your race, run it your way.",
"Mindset is everything, so think positively.",
"Failure fuels growth, and growth fuels success.",
"Focus on the solution, not the problem.",
"Learn daily, grow endlessly, and keep evolving.",
"Be fearless, be limitless, and chase your dreams.",
"Win or learn, never lose, always move forward.",
"Your limits are mental, break through them.",
"Stay patient, stay focused, and trust the timing.",
"Create your own luck through hard work.",
"Act with purpose, passion, and perseverance.",
"Make it happen, don't wait for it to happen.",
"Excuses change nothing, actions change everything.",
"Fear is temporary, regret lasts forever.",
"Master your mindset, master your destiny.",
"No challenge, no growth, embrace the struggle.",
"Turn obstacles into opportunities and thrive.",
"Stay hungry, stay foolish, and stay persistent.",
"Dreams require action, so start now.",
"Success starts with belief and hard work.",
"Discipline drives success, not just motivation.",
"Strive for progress, not overnight perfection.",
"Hard work beats talent when talent is lazy.",
"Trust the process, even when it's slow.",
"Commit to the journey, not just the goal.",
"Doubt kills more dreams than failure ever will.",
"Think big, start small, and keep going.",
"Turn pain into power and rise above.",
"Embrace the grind, enjoy the results.",
"Push past limits and redefine possible.",
"Your growth is your responsibility, own it.",
"Chase excellence, not just success.",
"No shortcuts to success, only hard work.",
"Work smart, stay consistent, and be patient.",
"Lead by example and inspire those around you.",
"Success is earned through dedication and effort.",
"Courage over comfort, always push yourself.",
"Failure is not the end, just a lesson.",
"Make every second count towards your dreams.",
"Struggle builds strength, so embrace the challenge.",
"Take action, get results, and never stop.",
"Small wins build momentum, celebrate them.",
"Be your own hero, no one will do it for you.",
"Stay consistent, stay unstoppable, and stay focused.",
"Dreams demand dedication, discipline, and patience.",
"Fear less, do more, and take bold steps.",
"Decide, commit, succeed, and stay on track.",
"Your time is now, don't waste it.",
"Step out of your comfort zone and grow.",
"Progress requires effort, not just wishes.",
"Focus, execute, succeed, and repeat daily.",
"Master the basics before chasing the complex.",
"Hustle with heart and passion every day.",
"Make today count, because tomorrow isn't promised.",
"Turn dreams into reality with determination.",
"Failure is a stepping stone, not a dead end.",
"Consistency beats intensity, so keep at it.",
"Your actions define you, not just your words.",
"Every day is a fresh start, use it well.",
"Winners never quit, and quitters never win.",
"Take the first step, and doors will open.",
"Never stop learning, growing, and improving.",
"Every setback is a setup for a comeback.",
"Create, don't wait, and make opportunities.",
"Stay focused, stay fearless, and chase greatness.",
"Break barriers, build dreams, and reach higher.",
"Your mindset shapes your world, so think big.",
"Be the change you seek in the world.",
"Opportunities don't wait, so take action now.",
"Embrace the struggle, it makes you stronger.",
"Growth begins at discomfort, push through it.",
"Push through the pain, and find your power.",
"Stay dedicated, stay disciplined, and stay driven.",
"Believe in your grind, and trust yourself.",
"Be unstoppable, nothing can hold you back.",
];
3 changes: 2 additions & 1 deletion src/routes/store.svelte.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { browser } from "$app/environment";
import { detectWebGPU } from "$lib/client/utils";
import {
getRandomQuote,
modelsMap,
voicesMap,
type LangId,
Expand Down Expand Up @@ -29,7 +30,7 @@ function getCurrentHost() {

export const defaultProfile: ProfileData = {
name: "default",
text: "Sometimes you win, sometimes you learn.",
text: getRandomQuote(),
lang: voicesMap["af_alloy"].lang.id,
voiceMode: "simple",
voiceFormula: voicesMap["af_alloy"].id,
Expand Down

0 comments on commit 8b7d327

Please sign in to comment.