Spaces:
Sleeping
Sleeping
Commit History
-
Fix printing of GOOGLE_APPLICAION_CREDENTIAL with printf (not echo)
Mike Wf46c356 -
Fix GOOGLE_APPLICATION_CREDENTIALS in Dockerfile
Mike W1a93a30 -
Fix GOOGLE_APPLICATION_CREDENTIALS in Dockerfile
Mike W2f10ec0 -
feat: Create web application for voice translator
google-labs-jules[bot]This commit transforms the command-line voice translator into a web application with a FastAPI backend and a simple HTML/JS frontend. Key changes include: - Refactoring the `VoiceTranslator` class into a separate `translator.py` module and adapting it to use asyncio queues for audio I/O. - Creating a `server.py` with a WebSocket endpoint to handle real-time audio streaming. - Implementing server-side audio conversion from WebM to PCM using FFmpeg. - Adding an `index.html` file for the user interface. - Including a `Dockerfile` and `packages.txt` for deployment on HuggingFace Spaces. - Updating `requirements.txt` with the necessary web and audio processing dependencies. - Revising the `README.md` with instructions for running the web app locally and deploying it.d6fcf92