Skip to content

Commit fdd81f7

Browse files
committed
log fix
1 parent 5f3d20f commit fdd81f7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

EXILED/Exiled.API/Features/Audio/PcmSources/VoiceRssTtsSource.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private IEnumerator<float> DownloadRoutine(string text, string apiKey, string la
153153
}
154154
catch (Exception ex)
155155
{
156-
Log.Error($"[VoiceRssTtsSource] Web isteği başlatılamadı! URL: {url} | Hata: {ex.Message}");
156+
Log.Error($"[VoiceRssTtsSource] Failed to start web request! URL: {url} | Error: {ex.Message}");
157157
isFailed = true;
158158
yield break;
159159
}
@@ -164,7 +164,7 @@ private IEnumerator<float> DownloadRoutine(string text, string apiKey, string la
164164
{
165165
if (webRequest.result != UnityWebRequest.Result.Success)
166166
{
167-
Log.Error($"[VoiceRssTtsSource] İndirme başarısız! Hata: {webRequest.error}");
167+
Log.Error($"[VoiceRssTtsSource] Download failed! Error: {webRequest.error}");
168168
isFailed = true;
169169
yield break;
170170
}
@@ -173,7 +173,7 @@ private IEnumerator<float> DownloadRoutine(string text, string apiKey, string la
173173
if (!contentType.Contains("audio") && !contentType.Contains("wav") && !contentType.Contains("octet-stream"))
174174
{
175175
string apiError = webRequest.downloadHandler.text;
176-
Log.Error($"[VoiceRssTtsSource] API Hatası: {apiError}");
176+
Log.Error($"[VoiceRssTtsSource] API Error: {apiError}");
177177
isFailed = true;
178178
yield break;
179179
}
@@ -188,7 +188,7 @@ private IEnumerator<float> DownloadRoutine(string text, string apiKey, string la
188188
}
189189
catch (Exception e)
190190
{
191-
Log.Error($"[VoiceRssTtsSource] Ayrıştırma Hatası! API'nin geçerli PCM16 WAV döndürdüğünden emin olun.\nDetay: {e.Message}");
191+
Log.Error($"[VoiceRssTtsSource] Parsing Error! Ensure the API returns a valid PCM16 WAV.\nDetails: {e.Message}");
192192
isFailed = true;
193193
}
194194
finally

0 commit comments

Comments
 (0)