Skip to content

Commit

Permalink
Add message about not supported Italian language
Browse files Browse the repository at this point in the history
  • Loading branch information
Danil Skachkov committed Oct 14, 2015
1 parent 9382bce commit bd73a9e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ApiAiSDK/ApiAi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ public AIResponse TextRequest(string text, RequestExtras requestExtras)

public AIResponse VoiceRequest(Stream voiceStream, RequestExtras requestExtras = null)
{
if (config.Language == SupportedLanguage.Italian)
{
throw new AIServiceException("Sorry, but Italian language now is not supported in Speaktoit recognition. Please use some another speech recognition engine.");
}

return dataService.VoiceRequest(voiceStream, requestExtras);
}

Expand Down

0 comments on commit bd73a9e

Please sign in to comment.