You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a GCP service account for the cloud TTS service.
Create a .env in this format: ```
GOOGLE_APPLICATION_CREDENTIALS="/app/service-account-filename.json"
GOOGLE_CLOUD_PROJECT="project name"
3. Build the container and run it.
4. Play the audio and submit a random piece of text.
5. Play the audio again
### Current vs. Expected behavior
I am trying to have speech for different words play. The API route should be returning a random word with its audio(and this occurs when I am testing in development). However, when I containerize my app, the API route keeps returning the same result.
### Provide environment information
```bash
Operating System:
Platform: linux
Arch: x64
Version: #20~22.04.1-Ubuntu SMP Wed Apr 3 03:28:18 UTC 2024
Available memory (MB): 7930
Available CPU cores: 2
Binaries:
Node: 20.12.1
npm: 10.5.0
Yarn: 1.22.19
pnpm: 8.15.6
Relevant Packages:
next: 14.2.3 // Latest available version is detected (14.2.3).
eslint-config-next: 14.2.3
react: 18.3.1
react-dom: 18.3.1
typescript: 5.4.5
Next.js Config:
output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next start (local)
Additional context
The code works as expected when running npm run dev but breaks after Dockerizing.
The text was updated successfully, but these errors were encountered:
Link to the code that reproduces this issue
https://github.com/sr5434/spelling-bee
To Reproduce
GOOGLE_APPLICATION_CREDENTIALS="/app/service-account-filename.json"
GOOGLE_CLOUD_PROJECT="project name"
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next start (local)
Additional context
The code works as expected when running
npm run dev
but breaks after Dockerizing.The text was updated successfully, but these errors were encountered: