Skip to content

Commit 3447327

Browse files
author
Frank Natividad
committed
Speech quickstart changed fileName -> file_name
1 parent b7eef07 commit 3447327

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

speech/quickstart.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
speech = gcloud.speech
2525

2626
# The name of the audio file to transcribe
27-
fileName = "./audio_files/audio.raw"
27+
file_name = "./audio_files/audio.raw"
2828

2929
# The audio file's encoding and sample rate
30-
audio = speech.audio fileName, encoding: :raw, sample_rate: 16000
30+
audio = speech.audio file_name, encoding: :raw, sample_rate: 16000
3131

3232
# Detects speech in the audio file
3333
results = audio.recognize

0 commit comments

Comments
 (0)