Exemplo n.º 1
0
    public async Task <SpeechInfo> GetSpeechInfo()
    {
        var user = await _userManager.GetUserAsync(User);

        return(new SpeechInfo
        {
            Token = await _speechService.GetToken(),
            Region = _speechService.GetRegion(),
            UserLanguage = user.SpeechRecognitionLanguage ?? "en-US"
        });
    }