Merge remote-tracking branch 'upstream/master' into ups
This commit is contained in:
@@ -63,9 +63,10 @@ public sealed class TTSManager
|
||||
{
|
||||
var url = _cfg.GetCVar(WhiteCVars.TtsApiUrl);
|
||||
var maxCacheSize = _cfg.GetCVar(WhiteCVars.TtsMaxCacheSize);
|
||||
if (string.IsNullOrWhiteSpace(url))
|
||||
if (string.IsNullOrWhiteSpace(url)) // zaebal padat
|
||||
{
|
||||
throw new Exception("TTS Api url not specified");
|
||||
_sawmill.Log(LogLevel.Error, nameof(TTSManager), "TTS Api url not specified");
|
||||
return null;
|
||||
}
|
||||
|
||||
WantedCount.Inc();
|
||||
@@ -193,4 +194,4 @@ public sealed class TTSManager
|
||||
[JsonPropertyName("audio")]
|
||||
public string Audio { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user