diff --git a/requirements.txt b/requirements.txt index ec74275..d7d3ffc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -20,4 +20,4 @@ google-api-python-client python-dotenv whisper-timestamped silero-vad -fastapi_versionizer +fastapi_versionizerß \ No newline at end of file diff --git a/service/README.md b/service/README.md index faa0da0..80bb3a3 100644 --- a/service/README.md +++ b/service/README.md @@ -22,9 +22,9 @@ For Windows: https://ollama.com/download/OllamaSetup.exe -Llama 3.1 model +Llama 3.2 model - ollama run llama3.1 + ollama run llama3.2 Setup Clone this github repository git clone @@ -52,7 +52,7 @@ uri: "/docs" method: "GET" description: swagger ui for api testing -uri: "/upload-audio +uri: "/v1/upload-audio mehtod: "POST" Content-Type: application/json body: { @@ -69,6 +69,32 @@ errorResponse: { } errorStatusCode: 500 +uri: "/latest/upload-audio +mehtod: "POST" +Content-Type: application/json +body: { + audio_file_link: saved audio file link (types accepted: 'm4a', 'mp4','mp3','webm','mpga','wav','mpeg') +} +successResponse: +{ + "message": "File processed successfully!", + "translation": transaction, + "segments": [ + { + "start": float, + "end": float, + "text": text + }, + + ], + "summary": text +} +successStatusCode: 200 +errorResponse: { + message: Error message +} +errorStatusCode: 500 + # exit virtual env deactivate