speaker_text 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -2
- data/examples/transcribe_youtube_video.rb +2 -2
- data/lib/speaker_text.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -28,7 +28,7 @@ Usage Examples
|
|
28
28
|
|
29
29
|
Install
|
30
30
|
|
31
|
-
gem install
|
31
|
+
gem install speaker_text
|
32
32
|
|
33
33
|
Initialize the API with a key
|
34
34
|
|
@@ -41,7 +41,7 @@ Submit a media file URL for transcription
|
|
41
41
|
|
42
42
|
Submit a media file hosted on a platform (e.g., YouTube, Vimeo, SoundCloud)
|
43
43
|
|
44
|
-
|
44
|
+
success, transcript_id = st.transcribe(platform: 'youtube', id: youtube_video_id)
|
45
45
|
|
46
46
|
Check the status of the transcription process
|
47
47
|
|
@@ -24,8 +24,8 @@ if !config.include?('api_key') || config['api_key']==''
|
|
24
24
|
end
|
25
25
|
|
26
26
|
st = SpeakerText.new(config['api_key'])
|
27
|
-
|
28
|
-
if
|
27
|
+
success, transcript_id = st.transcribe(platform: 'youtube', id: video_id)
|
28
|
+
if success
|
29
29
|
puts "Success: Transcript ID is #{transcript_id}"
|
30
30
|
else
|
31
31
|
puts "Error: #{transcript_id}"
|
data/lib/speaker_text.rb
CHANGED