Ejemplo n.º 1
0
        public static SpeechFragement CreateAudioFragment(string audioFile)
        {
            SpeechFragement frag = new SpeechFragement();

            frag.AudioFileName = audioFile;
            frag.FragmentType  = SpeechFramgementType.AudioFile;

            return(frag);
        }
Ejemplo n.º 2
0
        public static SpeechFragement CreateAudioLibraryFragment(string audioLibTag)
        {
            SpeechFragement frag = new SpeechFragement();

            frag.AudioLibraryTag = audioLibTag;
            frag.FragmentType    = SpeechFramgementType.AudioLibrary;

            return(frag);
        }
Ejemplo n.º 3
0
        public static SpeechFragement CreateTextFragment(string speechText, string voiceId)
        {
            SpeechFragement frag = new SpeechFragement();

            frag.Text         = speechText;
            frag.FragmentType = SpeechFramgementType.Text;
            frag.VoiceId      = voiceId;
            return(frag);
        }