public TranscriptionServiceTests(MockHttpClientFixture mockHttpClientFixture)
            : base(mockHttpClientFixture)
        {
            this.service = new CallTranscriptionService();

            this.stopOptions = new TranscriptionOptions()
            {
                ClientState = "aGF2ZSBhIG5pY2UgZGF5ID1d",
                CommandId   = "891510ac-f3e4-11e8-af5b-de00688a4901",
            };
            this.startOptions = new TranscriptionStartOptions
            {
                ClientState = this.stopOptions.ClientState,
                CommandId   = this.stopOptions.CommandId,
                Language    = Languages.English
            };
        }
Example #2
0
 public virtual async Task <TelnyxApiResponse> StartTranscriptionAsync(string id, TranscriptionStartOptions options, RequestOptions requestOptions = null, CancellationToken ct = default)
 {
     return(await this.transcriptionService.StartAsync(id, options, requestOptions, ct));
 }
Example #3
0
 public virtual TelnyxApiResponse StartTranscription(string id, TranscriptionStartOptions options, RequestOptions requestOptions = null)
 {
     return(this.transcriptionService.Start(id, options, requestOptions));
 }