Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 14, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 14, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 14, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 14, 2025

      I test a lot of AI coding tools, and this stunning new OpenAI release just saved me days of work

      May 14, 2025

      How to use your Android phone as a webcam when your laptop’s default won’t cut it

      May 14, 2025

      The 5 most customizable Linux desktop environments – when you want it your way

      May 14, 2025

      Gen AI use at work saps our motivation even as it boosts productivity, new research shows

      May 14, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Strategic Cloud Partner: Key to Business Success, Not Just Tech

      May 14, 2025
      Recent

      Strategic Cloud Partner: Key to Business Success, Not Just Tech

      May 14, 2025

      Perficient’s “What If? So What?” Podcast Wins Gold at the 2025 Hermes Creative Awards

      May 14, 2025

      PIM for Azure Resources

      May 14, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Windows 11 24H2’s Settings now bundles FAQs section to tell you more about your system

      May 14, 2025
      Recent

      Windows 11 24H2’s Settings now bundles FAQs section to tell you more about your system

      May 14, 2025

      You can now share an app/browser window with Copilot Vision to help you with different tasks

      May 14, 2025

      Microsoft will gradually retire SharePoint Alerts over the next two years

      May 14, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Artificial Intelligence»Introducing the AssemblyAI Ruby SDK

    Introducing the AssemblyAI Ruby SDK

    August 12, 2024

    We are thrilled to release the AssemblyAI Ruby SDK, making it easier to use the latest Speech AI models from AssemblyAI with Ruby. Use the SDK to transcribe audio, analyze audio using our audio intelligence models, and apply LLMs to your audio data using LeMUR.

    Here are a couple of examples showcasing the Ruby SDK.

    1. Transcribe an audio file

    require ‘assemblyai’

    client = AssemblyAI::Client.new(api_key: ‘YOUR_API_KEY’)

    transcript = client.transcripts.transcribe(
    audio_url: ‘https://storage.googleapis.com/aai-docs-samples/nbc.mp3’
    )

    abort transcript.error if transcript.status == AssemblyAI::Transcripts::TranscriptStatus::ERROR

    puts transcript.text

    You can also transcribe a local file, as shown here.

    uploaded_file = client.files.upload(file: ‘/path/to/your/file’)
    transcript = client.transcripts.transcribe(
    audio_url: uploaded_file.upload_url
    )

    Learn how to transcribe audio files by following the step-by-step instructions in our docs.

    2. Use LeMUR to build LLM apps on voice data

    response = client.lemur.task(
    transcript_ids: [transcript.id],
    prompt: ‘Summarize this transcript.’
    )

    puts response.response

    Learn how to use LLMs with audio data using LeMUR in our docs.

    3. Use audio intelligence models

    transcript = client.transcripts.transcribe(
    audio_url: ‘https://storage.googleapis.com/aai-docs-samples/nbc.mp3’,
    sentiment_analysis: true
    )

    abort transcript.error if transcript.status == AssemblyAI::Transcripts::TranscriptStatus::ERROR

    transcript.sentiment_analysis_results.each do |result|
    puts result.text
    puts result.sentiment
    puts result.confidence
    printf(“%<start>d – %<end>dn”, start: result.start, end: result.end_)
    end

    Learn more about our audio intelligence models in our docs.

    Get started with the Ruby SDK

    You can find installation instructions and more information in the README of the Ruby SDK GitHub repository. File an issue or contact us with any feedback.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleRajeev’s Viral Success: How Opportunities Today Took His Business to the Next Level?
    Next Article How to convert PDF to QBO

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 15, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-4695 – PHPGurukul Cyber Cafe Management System SQL Injection

    May 15, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Data Leak Exposes TopSec’s Role in China’s Censorship-as-a-Service Operations

    Development

    Summer Olympics: What IT Teams Need to Do Before & During the Event for Their Businesses

    Development

    CVE-2025-2816 – WordPress Page View Count Unauthorized Data Modification Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Who knew a controller could make THIS much difference? I tested a new mobile controller for Xbox Cloud Gaming and was pleasantly surprised.

    News & Updates

    Highlights

    20+ Top Heavy Metal Fonts: Free & Paid Options for Bands, Logos & More

    January 2, 2025

    Heavy metal fonts are more than just letters on a page; they’re a visual representation of…

    This Self-Driving Taxi Could Replace Uber by 2025 — And It’s Backed by Toyota

    April 24, 2025

    CVE-2025-4363 – iSourcecode Gym Management System SQL Injection Vulnerability

    May 6, 2025

    Western Digital’s new 6TB external hard drive is fantastic, but one of its two variants is even better than the other

    July 7, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.