From b4d3f03aff3a9addac378073a52436baed4965bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20=C3=96ner?= <ahmet.oener@iais.fraunhofer.de> Date: Thu, 15 Feb 2024 23:17:56 +0100 Subject: [PATCH] Add FFmpeg credits --- CHANGELOG.md | 2 +- README.md | 6 +++++- app/webservice.py | 2 +- docs/index.md | 4 ++++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 52493e3..02d09bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -154,7 +154,7 @@ Unreleased - Fastapi init in #3 - Avoid temp file in #4 - 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 [1.2.4]: https://github.com/ahmetoner/whisper-asr-webservice/releases/tag/v1.2.4 diff --git a/README.md b/README.md index 47a7e0c..7496425 100644 --- a/README.md +++ b/README.md @@ -32,5 +32,9 @@ for more information: - [Documentation/Run](https://ahmetoner.github.io/whisper-asr-webservice/run) - [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). + +## 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) diff --git a/app/webservice.py b/app/webservice.py index 4fc7be8..75bd497 100644 --- a/app/webservice.py +++ b/app/webservice.py @@ -87,7 +87,7 @@ async def asr( @app.post("/detect-language", tags=["Endpoints"]) async def detect_language( 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)) return {"detected_language": tokenizer.LANGUAGES[detected_lang_code], "language_code": detected_lang_code} diff --git a/docs/index.md b/docs/index.md index 660b4eb..c13def5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -24,3 +24,7 @@ for more information: - [Documentation/Run](https://ahmetoner.github.io/whisper-asr-webservice/run) - [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) -- GitLab