Skip to content
Snippets Groups Projects
Commit b4d3f03a authored by Ahmet Öner's avatar Ahmet Öner
Browse files

Add FFmpeg credits

parent fd70f787
No related branches found
No related tags found
No related merge requests found
...@@ -154,7 +154,7 @@ Unreleased ...@@ -154,7 +154,7 @@ Unreleased
- Fastapi init in #3 - Fastapi init in #3
- Avoid temp file in #4 - Avoid temp file in #4
- Translate init in #5 - Translate init in #5
- mp3 support by using ffmpeg instead of librosa in #8 - mp3 support by using FFmpeg instead of librosa in #8
- add language detection endpoint in #9 - add language detection endpoint in #9
[1.2.4]: https://github.com/ahmetoner/whisper-asr-webservice/releases/tag/v1.2.4 [1.2.4]: https://github.com/ahmetoner/whisper-asr-webservice/releases/tag/v1.2.4
......
...@@ -32,5 +32,9 @@ for more information: ...@@ -32,5 +32,9 @@ for more information:
- [Documentation/Run](https://ahmetoner.github.io/whisper-asr-webservice/run) - [Documentation/Run](https://ahmetoner.github.io/whisper-asr-webservice/run)
- [Docker Hub](https://hub.docker.com/r/onerahmet/openai-whisper-asr-webservice) - [Docker Hub](https://hub.docker.com/r/onerahmet/openai-whisper-asr-webservice)
# Documentation ## Documentation
Explore the documentation by clicking [here](https://ahmetoner.github.io/whisper-asr-webservice). Explore the documentation by clicking [here](https://ahmetoner.github.io/whisper-asr-webservice).
## Credits
- This software uses libraries from the [FFmpeg](http://ffmpeg.org) project under the [LGPLv2.1](http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)
...@@ -87,7 +87,7 @@ async def asr( ...@@ -87,7 +87,7 @@ async def asr(
@app.post("/detect-language", tags=["Endpoints"]) @app.post("/detect-language", tags=["Endpoints"])
async def detect_language( async def detect_language(
audio_file: UploadFile = File(...), audio_file: UploadFile = File(...),
encode: bool = Query(default=True, description="Encode audio first through ffmpeg") encode: bool = Query(default=True, description="Encode audio first through FFmpeg")
): ):
detected_lang_code = language_detection(load_audio(audio_file.file, encode)) detected_lang_code = language_detection(load_audio(audio_file.file, encode))
return {"detected_language": tokenizer.LANGUAGES[detected_lang_code], "language_code": detected_lang_code} return {"detected_language": tokenizer.LANGUAGES[detected_lang_code], "language_code": detected_lang_code}
......
...@@ -24,3 +24,7 @@ for more information: ...@@ -24,3 +24,7 @@ for more information:
- [Documentation/Run](https://ahmetoner.github.io/whisper-asr-webservice/run) - [Documentation/Run](https://ahmetoner.github.io/whisper-asr-webservice/run)
- [Docker Hub](https://hub.docker.com/r/onerahmet/openai-whisper-asr-webservice) - [Docker Hub](https://hub.docker.com/r/onerahmet/openai-whisper-asr-webservice)
## Credits
- This software uses libraries from the [FFmpeg](http://ffmpeg.org) project under the [LGPLv2.1](http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment