@@ -76,7 +76,7 @@ public async Task<TranscriptList> ListAsync(
7676        throw  new  ApiException ( 
7777            $ "Error with status code { response . StatusCode } ", 
7878            response . StatusCode , 
79-             JsonUtils . Deserialize < object > ( responseBody ) 
79+             responseBody 
8080        ) ; 
8181    } 
8282
@@ -114,7 +114,7 @@ public async Task<Transcript> SubmitAsync(
114114        throw  new  ApiException ( 
115115            $ "Error with status code { response . StatusCode } ", 
116116            response . StatusCode , 
117-             JsonUtils . Deserialize < object > ( responseBody ) 
117+             responseBody 
118118        ) ; 
119119    } 
120120
@@ -148,7 +148,7 @@ public async Task<Transcript> GetAsync(string transcriptId, RequestOptions? opti
148148        throw  new  ApiException ( 
149149            $ "Error with status code { response . StatusCode } ", 
150150            response . StatusCode , 
151-             JsonUtils . Deserialize < object > ( responseBody ) 
151+             responseBody 
152152        ) ; 
153153    } 
154154
@@ -183,7 +183,7 @@ public async Task<Transcript> DeleteAsync(string transcriptId, RequestOptions? o
183183        throw  new  ApiException ( 
184184            $ "Error with status code { response . StatusCode } ", 
185185            response . StatusCode , 
186-             JsonUtils . Deserialize < object > ( responseBody ) 
186+             responseBody 
187187        ) ; 
188188    } 
189189
@@ -202,13 +202,12 @@ public async Task<string> GetSubtitlesAsync(
202202        { 
203203            _query [ "chars_per_caption" ]  =  request . CharsPerCaption . ToString ( ) ; 
204204        } 
205-         var  formatSlug  =  subtitleFormat  ==  SubtitleFormat . Srt  ?  "srt"  :  "vtt" ; 
206205        var  response  =  await  _client . MakeRequestAsync ( 
207206            new  RawClient . JsonApiRequest 
208207            { 
209208                BaseUrl  =  _client . Options . BaseUrl , 
210209                Method  =  HttpMethod . Get , 
211-                 Path  =  $ "v2/transcript/{ transcriptId } /{ formatSlug } ", 
210+                 Path  =  $ "v2/transcript/{ transcriptId } /{ subtitleFormat } ", 
212211                Query  =  _query , 
213212                Options  =  options 
214213            } 
@@ -221,7 +220,7 @@ public async Task<string> GetSubtitlesAsync(
221220        throw  new  ApiException ( 
222221            $ "Error with status code { response . StatusCode } ", 
223222            response . StatusCode , 
224-             JsonUtils . Deserialize < object > ( responseBody ) 
223+             responseBody 
225224        ) ; 
226225    } 
227226
@@ -258,7 +257,7 @@ public async Task<SentencesResponse> GetSentencesAsync(
258257        throw  new  ApiException ( 
259258            $ "Error with status code { response . StatusCode } ", 
260259            response . StatusCode , 
261-             JsonUtils . Deserialize < object > ( responseBody ) 
260+             responseBody 
262261        ) ; 
263262    } 
264263
@@ -295,7 +294,7 @@ public async Task<ParagraphsResponse> GetParagraphsAsync(
295294        throw  new  ApiException ( 
296295            $ "Error with status code { response . StatusCode } ", 
297296            response . StatusCode , 
298-             JsonUtils . Deserialize < object > ( responseBody ) 
297+             responseBody 
299298        ) ; 
300299    } 
301300
@@ -336,7 +335,7 @@ public async Task<WordSearchResponse> WordSearchAsync(
336335        throw  new  ApiException ( 
337336            $ "Error with status code { response . StatusCode } ", 
338337            response . StatusCode , 
339-             JsonUtils . Deserialize < object > ( responseBody ) 
338+             responseBody 
340339        ) ; 
341340    } 
342341
@@ -373,7 +372,7 @@ public async Task<RedactedAudioResponse> GetRedactedAudioAsync(
373372        throw  new  ApiException ( 
374373            $ "Error with status code { response . StatusCode } ", 
375374            response . StatusCode , 
376-             JsonUtils . Deserialize < object > ( responseBody ) 
375+             responseBody 
377376        ) ; 
378377    } 
379378} 
0 commit comments