diff --git a/README.md b/README.md index 564c80c..f07bc45 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ You can now use the `client` object to interact with the AssemblyAI API. ```ruby transcript = client.transcripts.transcribe( - audio_url: 'https://storage.googleapis.com/aai-web-samples/espn-bears.m4a', + audio_url: 'https://assembly.ai/espn.m4a', ) ``` @@ -60,7 +60,7 @@ If you don't want to wait until the transcript is ready, you can use `submit`: ```ruby transcript = client.transcripts.submit( - audio_url: 'https://storage.googleapis.com/aai-web-samples/espn-bears.m4a' + audio_url: 'https://assembly.ai/espn.m4a' ) ``` diff --git a/lib/assemblyai/transcripts/client.rb b/lib/assemblyai/transcripts/client.rb index 4829bc7..472c6d3 100644 --- a/lib/assemblyai/transcripts/client.rb +++ b/lib/assemblyai/transcripts/client.rb @@ -156,7 +156,7 @@ def list(limit: nil, status: nil, created_on: nil, before_id: nil, after_id: nil # base_url: "https://api.example.com", # api_key: "YOUR_API_KEY" # ) - # api.transcripts.submit(audio_url: "https://github.com/AssemblyAI-Examples/audio-examples/raw/main/20230607_me_canadian_wildfires.mp3") + # api.transcripts.submit(audio_url: "https://assembly.ai/wildfires.mp3") def submit(audio_url:, language_code: nil, language_detection: nil, language_confidence_threshold: nil, speech_model: nil, punctuate: nil, format_text: nil, disfluencies: nil, dual_channel: nil, webhook_url: nil, webhook_auth_header_name: nil, webhook_auth_header_value: nil, auto_highlights: nil, audio_start_from: nil, audio_end_at: nil, word_boost: nil, boost_param: nil, filter_profanity: nil, redact_pii: nil, redact_pii_audio: nil, redact_pii_audio_quality: nil, redact_pii_policies: nil, redact_pii_sub: nil, speaker_labels: nil, speakers_expected: nil, content_safety: nil, content_safety_confidence: nil, iab_categories: nil, custom_spelling: nil, sentiment_analysis: nil, auto_chapters: nil, entity_detection: nil, speech_threshold: nil, summarization: nil, summary_model: nil, summary_type: nil, custom_topics: nil, topics: nil, request_options: nil) response = @request_client.conn.post do |req| @@ -503,7 +503,7 @@ def list(limit: nil, status: nil, created_on: nil, before_id: nil, after_id: nil # base_url: "https://api.example.com", # api_key: "YOUR_API_KEY" # ) - # api.transcripts.submit(audio_url: "https://github.com/AssemblyAI-Examples/audio-examples/raw/main/20230607_me_canadian_wildfires.mp3") + # api.transcripts.submit(audio_url: "https://assembly.ai/wildfires.mp3") def submit(audio_url:, language_code: nil, language_detection: nil, language_confidence_threshold: nil, speech_model: nil, punctuate: nil, format_text: nil, disfluencies: nil, dual_channel: nil, webhook_url: nil, webhook_auth_header_name: nil, webhook_auth_header_value: nil, auto_highlights: nil, audio_start_from: nil, audio_end_at: nil, word_boost: nil, boost_param: nil, filter_profanity: nil, redact_pii: nil, redact_pii_audio: nil, redact_pii_audio_quality: nil, redact_pii_policies: nil, redact_pii_sub: nil, speaker_labels: nil, speakers_expected: nil, content_safety: nil, content_safety_confidence: nil, iab_categories: nil, custom_spelling: nil, sentiment_analysis: nil, auto_chapters: nil, entity_detection: nil, speech_threshold: nil, summarization: nil, summary_model: nil, summary_type: nil, custom_topics: nil, topics: nil, request_options: nil) Async do diff --git a/test/test_assemblyai.rb b/test/test_assemblyai.rb index 248c946..29a9d39 100644 --- a/test/test_assemblyai.rb +++ b/test/test_assemblyai.rb @@ -77,20 +77,20 @@ def test_pagination end def test_transcribe - transcript = client.transcripts.transcribe(audio_url: "https://storage.googleapis.com/aai-web-samples/espn-bears.m4a") + transcript = client.transcripts.transcribe(audio_url: "https://assembly.ai/espn.m4a") assert transcript.status == AssemblyAI::Transcripts::TranscriptStatus::COMPLETED end def test_submit # Transcribe - transcript_submission = client.transcripts.submit(audio_url: "https://storage.googleapis.com/aai-web-samples/espn-bears.m4a") + transcript_submission = client.transcripts.submit(audio_url: "https://assembly.ai/espn.m4a") assert !transcript_submission.id.nil? gotten_transcript = client.transcripts.get(transcript_id: transcript_submission.id) assert gotten_transcript.id == transcript_submission.id end def test_polling - transcript = client.transcripts.submit(audio_url: "https://storage.googleapis.com/aai-web-samples/espn-bears.m4a") + transcript = client.transcripts.submit(audio_url: "https://assembly.ai/espn.m4a") assert !transcript.id.nil? transcript = client.transcripts.wait_until_ready(transcript_id: transcript.id)