Commit History

  1. Fix TTS language issue by dynamically updating model in /translate-audio endpoint

    Verified signature
    2b35bda

  1. Removed webrtcvad to avoid the build error.

    Verified signature
    49a0a85
  2. Replaced librosa with torchaudio for audio loading and resampling. Added speech detection (energy-based or webrtcvad for accuracy). Improved /translate-audio endpoint to handle silent audio gracefully.

    Verified signature
    b0c2331
  3. Updated title to Talklas API. Added description of /translate-audio endpoint with speech detection feature. Included Features section (speech detection, supported models) and Supported Languages section.

    Verified signature
    8157595
  4. Added apt-get install for libsndfile1 (required by soundfile) and ffmpeg (required by torchaudio).

    Verified signature
    04d442c
  5. Replaced librosa with torchaudio; removed librosa and numba. Added torchaudio (audio processing) and webrtcvad (optional voice activity detection).

    Verified signature
    40a94e0
  6. Pin librosa to a known stable version and ensure numba is compatible

    Verified signature
    824f995

  1. Fix TTS error by updating save_pcm_to_wav to handle 16-bit audio samples correctly using NumPy tobytes()

    Verified signature
    bf59705
  2. Fix PermissionError by changing AUDIO_DIR to /tmp/audio_output for Hugging Face Spaces

    Verified signature
    e79c9c5
  3. Fix PermissionError by setting AUDIO_DIR to /app/audio_output for Hugging Face Spaces compatibility

    Verified signature
    060630c
  4. Update audio handling: Save synthesized audio as WAV, return URL, set 10-min expiration with 5-min cleanup interval

    Verified signature
    eacfbe2

  1. Switch STT model to facebook/mms-1b-all with Whisper fallback

    Verified signature
    98d2781
  2. Fix STT error by removing return_attention_mask and address forced_decoder_ids warning

    Verified signature
    62f9c95
  3. Fix MT error by removing clean_up_tokenization_spaces and address STT warnings

    Verified signature
    e656c37
  4. Update app.py

    Verified signature
    989a3f5
  5. Add MT with NLLB-200-distilled-600M and TTS with MMS-TTS

    Verified signature
    f56283f
  6. Fix torch import error in translate-audio endpoint

    Verified signature
    f8dca01
  7. Add STT functionality with openai/whisper-tiny

    Verified signature
    faf4aa8
  8. Add STT functionality with openai/whisper-tiny

    Verified signature
    ec27d4d
  9. Update README.md

    Verified signature
    c10c930
  10. Update app.py

    Verified signature
    aef3d4f
  11. Deploy minimal FastAPI app to test Hugging Face Spaces compatibility

    Verified signature
    f5b1ec8
  12. Deploy minimal FastAPI app to test Hugging Face Spaces compatibility

    Verified signature
    5f26e89
  13. Update app.py

    Verified signature
    2fe79f5
  14. Added pydantic for speech translation system

    Verified signature
    55878bb
  15. Update Dockerfile with proper caching and environment variables

    Verified signature
    4a3f84d
  16. Implement lazy loading of ML models to fix startup timeout on HF Spaces

    Verified signature
    352aa0e
  17. Fix MT model loading: Revert to nllb-200-distilled-600M and add fallback⁠

    Verified signature
    6a1bf6c
  18. Further optimize memory usage: Switch to nllb-200-distilled-200M and add Uvicorn debug logging⁠

    Verified signature
    e868e42
  19. Optimize app for Hugging Face Spaces: Switch to whisper-tiny, add health check, and improve model loading⁠

    Verified signature
    1881cc0
  20. Replaced the openai/whisper-tiny references with openai/whisper-small

    Verified signature
    4279e53
  21. Modified the _initialize_tts_model method to include the clean_up_tokenization_spaces parameter; Added logging configuration to configure the logging level for transformers in app.py

    Verified signature
    f12e9dc
  22. Modified the tokenization step to include clean_up_tokenization_spaces=True; Added clean_up_tokenization_spaces=True in the text_to_speech method; Added a print statement to confirm the TTS model is loaded

    Verified signature
    5b5fc47
  23. Removed the TRANSFORMERS_CACHE environment variable

    Verified signature
    3cc49a2
  24. Removed the TRANSFORMERS_CACHE environment variable and its associated debug print statement.

    Verified signature
    741c20d
  25. Added python-multipart

    Verified signature
    fa5448d
  26. Update app.py

    Verified signature
    52830c5
  27. Set the Cache Directory Explicitly

    Verified signature
    de6eef4
  28. Update requirements.txt

    Verified signature
    43a7f05
  29. Create Dockerfile

    Verified signature
    cb67677
  30. Set sdk: docker

    Verified signature
    7e11802
  31. Removed SDK

    Verified signature
    77a6466
  32. Update requirements.txt

    Verified signature
    388f530
  33. Removed flask, and flask-cors; Added fastapi, and uvicorn

    Verified signature
    fba973c
  34. Modified the code with API endpoints

    Verified signature
    4763326
  35. Update app.py

    Verified signature
    fff0177
  36. Update README.md

    Verified signature
    6b19945
  37. Added flask, and flask-cors; Removed fastapi, uvicorn, and pydantic as dependencies

    Verified signature
    860aa9c
  38. API integration for the Talklas pipeline

    Verified signature
    de2c35e

  1. Added fastapi, uvicorn, and pydantic as dependencies

    Verified signature
    f24e508