From 768b3f216fc45ae380b8d6f301d84a0bfecdd070 Mon Sep 17 00:00:00 2001 From: Mathieu B Date: Mon, 28 Nov 2022 22:15:28 +0100 Subject: [PATCH] corrected urls --- .../ch/mathieubroillet/jarvis/android/utils/RequestsUtils.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/ch/mathieubroillet/jarvis/android/utils/RequestsUtils.kt b/app/src/main/java/ch/mathieubroillet/jarvis/android/utils/RequestsUtils.kt index 13081ed..ffa7494 100644 --- a/app/src/main/java/ch/mathieubroillet/jarvis/android/utils/RequestsUtils.kt +++ b/app/src/main/java/ch/mathieubroillet/jarvis/android/utils/RequestsUtils.kt @@ -1,11 +1,9 @@ package ch.mathieubroillet.jarvis.android.utils -import okhttp3.Headers import okhttp3.MediaType.Companion.toMediaType import okhttp3.OkHttpClient import okhttp3.Request import okhttp3.RequestBody.Companion.asRequestBody -import okhttp3.internal.http1.HeadersReader import java.io.File import java.io.IOException @@ -13,7 +11,7 @@ fun contactServerWithFileAudioRecording(file: File): String { val client = OkHttpClient() val request = Request.Builder() - .url("https://whisper.broillet.ch/process_audio_request_file") + .url("https://jarvis-server.broillet.ch/process_audio_request_file") .post(file.asRequestBody("audio/x-wav; charset=utf-8".toMediaType())) .build()