Skip to content

Commit

Permalink
print entire response
Browse files Browse the repository at this point in the history
  • Loading branch information
DamienDeepgram committed Jul 13, 2024
1 parent 50c1a18 commit 69cd345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions examples/make_prerecorded_request_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ async fn main() -> reqwest::Result<()> {
// That way it knows what type to deserialize the JSON into
let response: Response = customized_request_builder.send().await?.json().await?;

let transcript = &response.results.channels[0].alternatives[0].transcript;
println!("{}", transcript);
println!("{:?}", response);

Ok(())
}
3 changes: 1 addition & 2 deletions examples/prerecorded_from_file/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ async fn main() -> Result<(), DeepgramError> {
.prerecorded(source, &options)
.await?;

let transcript = &response.results.channels[0].alternatives[0].transcript;
println!("{}", transcript);
println!("{:?}", response);

Ok(())
}

0 comments on commit 69cd345

Please sign in to comment.