Example #1
0
        private async void AnalyzeImageAsync(string imagePath)
        {
            CognitiveService.Instance.PlayAudio("Analizando foto");

            var imageDescription = await CognitiveService.Instance.AnalyzeImageAsync(imagePath);

            TranslatedDescription = await CognitiveService.Instance.TranslateTextAsync(imageDescription);

            FixTranslation();
            DescriptionView.Text = TranslatedDescription;

            await LoadingView.FadeTo(0, 500);

            await DescriptionView.FadeTo(1, 1000);

            await SpeakAgainView.FadeTo(1, 1000);

            SpeakDescriptionAsync();
        }