Beispiel #1
0
        public async Task <Stream> GetParsedSentAudioAsync(string sentId)
        {
            var parsedSent = await _parsedSentRepository.FindAsync(x => x.Id == sentId);

            var audioStream = await _textToSpeechService.SpeakTextAsync(parsedSent.Sent);

            return(audioStream);
        }
Beispiel #2
0
        public async Task <ParsedSentModel> GetById(string id)
        {
            var entity = await _parsedSentRepository.FindAsync(x => x.Id == id);

            return(_mapper.Map <ParsedSentModel>(entity));
        }