Class: Cloudflare::AI::Results::AutomaticSpeechRecognition

Inherits:
Cloudflare::AI::Result
  • Object
show all
Defined in:
lib/cloudflare/ai/results/automatic_speech_recognition.rb

Instance Method Summary collapse

Instance Method Details

#textObject



2
3
4
# File 'lib/cloudflare/ai/results/automatic_speech_recognition.rb', line 2

def text
  result&.dig(:text) # nil if no shape
end

#word_countObject



6
7
8
# File 'lib/cloudflare/ai/results/automatic_speech_recognition.rb', line 6

def word_count
  result&.dig(:word_count) # nil if no shape
end

#wordsObject



10
11
12
# File 'lib/cloudflare/ai/results/automatic_speech_recognition.rb', line 10

def words
  result&.dig(:words) # nil if no shape
end