Skip to content

Commit

Permalink
Merge pull request #7 from hinagiku-dev/feat/backend/stt
Browse files Browse the repository at this point in the history
feat: stt API endpoint & R2 upload object lib function
  • Loading branch information
JacobLinCool authored Nov 26, 2024
2 parents 382744a + 38d1fbb commit bb93fcb
Show file tree
Hide file tree
Showing 5 changed files with 1,785 additions and 135 deletions.
6 changes: 6 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ PUBLIC_FIREBASE_MESSAGING_SENDER_ID="585902608528"
PUBLIC_FIREBASE_APP_ID="1:585902608528:web:908698a423651bb865c815"
PUBLIC_FIREBASE_MEASUREMENT_ID="G-QFXF543DV8"

CLOUDFLARE_ACCOUNT_ID="CLOUDFLARE_ACCOUNT_ID"
CLOUDFLARE_R2_BUCKET="CLOUDFLARE_R2_BUCKET"
CLOUDFLARE_R2_ACCESS_KEY_ID="CLOUDFLARE_R2_ACCESS_KEY_ID"
CLOUDFLARE_R2_SECRET_ACCESS_KEY="CLOUDFLARE_R2_SECRET_ACCESS_KEY"
CLOUDFLARE_PUBLIC_URL="https://hinagiku-dev-storage.csie.cool"

GOOGLE_APPLICATION_CREDENTIALS="service-account-file.example.json"
HUGGINGFACE_TOKEN="hf_xxx"
OPENAI_BASE_URL="https://api.openai.com/v1"
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@
"stt": "tsx scripts/speech2text.ts"
},
"devDependencies": {
"@aws-sdk/client-s3": "^3.699.0",
"@sveltejs/adapter-auto": "^3.3.1",
"@sveltejs/kit": "^2.8.2",
"@sveltejs/vite-plugin-svelte": "^4.0.1",
"@tailwindcss/typography": "^0.5.15",
"@types/debug": "^4.1.12",
"@types/eslint": "^9.6.1",
"@types/qrcode": "^1.5.5",
"@types/rfc2047": "^2.0.3",
"autoprefixer": "^10.4.20",
"debug": "^4.3.7",
"dotenv": "^16.4.5",
Expand All @@ -44,11 +46,13 @@
"prettier-plugin-svelte": "^3.3.2",
"prettier-plugin-tailwindcss": "^0.6.9",
"qrcode": "^1.5.4",
"rfc2047": "^4.0.1",
"svelte": "^5.2.7",
"svelte-check": "^4.1.0",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"typescript-eslint": "^8.15.0",
"uuid": "^11.0.3",
"vite": "^5.4.11",
"zod": "^3.23.8"
},
Expand Down
Loading

0 comments on commit bb93fcb

Please sign in to comment.