Method: Deepgram::Read::Response#topics

Defined in:
lib/deepgram/read.rb

#topicsArray?

Extracts and returns the topics segments from the response data.

Returns:

  • (Array, nil)

    The topics segments, if present.



74
75
76
# File 'lib/deepgram/read.rb', line 74

def topics
  raw.dig('results', 'topics', 'segments')
end