7.2 OCI Speech Service: Automatic Speech Recognition & Acoustic Processing

Key Takeaways

  • OCI Speech is a fully managed Automatic Speech Recognition (ASR) service that converts spoken audio from diverse media formats into normalized, punctuated, grammatically structured text using deep-learning acoustic models.
  • The service provides two primary operational modes: asynchronous batch transcription for files stored in OCI Object Storage, and low-latency real-time streaming transcription over bidirectional WebSockets for interactive voice response and live captioning.
  • OCI Speech incorporates hosted OpenAI Whisper foundation models to perform high-accuracy multilingual speech transcription and direct audio-to-English translation across dozens of spoken languages.
  • Advanced acoustic capabilities include speaker diarization ('who spoke when'), token-level and sentence-level time offsets, profanity filtering and masking, and custom vocabulary injection for out-of-vocabulary domain terminology and acronyms.
  • Transcription outputs include detailed JSON files containing word confidence scores and speaker tags, as well as industry-standard subtitle files including SubRip (.srt) and Web Video Text Tracks (.vtt) for video captioning.
Last updated: September 2026

7.2 OCI Speech Service: Automatic Speech Recognition & Acoustic Processing

Exam Tip: For the 1Z0-1122-26 examination, focus closely on the operational boundaries between batch transcription (asynchronous processing of audio stored in OCI Object Storage) and real-time streaming transcription (synchronous, low-latency audio transmission over bidirectional WebSockets). Candidates must memorize key acoustic features: speaker diarization addresses "who spoke when" in multi-speaker audio, custom vocabularies resolve out-of-vocabulary (OOV) errors for proprietary industry acronyms and brand names, and Whisper integration provides multilingual transcription alongside direct audio-to-English translation.


Overview of OCI Speech Service

The Oracle Cloud Infrastructure (OCI) Speech service is a fully managed cloud service that delivers advanced Automatic Speech Recognition (ASR) capabilities. It transforms spoken audio contained in recorded multimedia files or live audio streams into accurate, punctuated, normalized, and grammatically structured text.

Historically, converting human speech into text required specialized signal processing expertise, complex acoustic modeling, phonetic pronunciation dictionaries, and dedicated high-performance computing clusters to handle acoustic transformations. The OCI Speech service completely abstracts this underlying complexity. Developers can integrate speech-to-text functionality into business applications via standard Representational State Transfer (REST) APIs, OCI Software Development Kits (SDKs), and WebSocket connections.

Architectural Foundation & Security Governance

  • Deep Learning Acoustic Models: OCI Speech leverages state-of-the-art neural acoustic models trained on thousands of hours of diverse speech, handling regional accents, background acoustic noise, multi-speaker dialogue, and varying audio recording qualities.
  • Data Governance & Confidentiality: Audio files submitted for transcription remain the customer's exclusive property. Voice data and transcribed text are processed within the customer's designated tenancy and compartment, secured by OCI Identity and Access Management (IAM) policies, and are never retained or used by Oracle to train global models.
  • Enterprise Network Isolation: Transcription jobs and streaming channels can be accessed securely over encrypted Transport Layer Security (TLS 1.3) connections and integrated with private Virtual Cloud Network (VCN) endpoints.
+-----------------------------------------------------------------------------+
|                          OCI SPEECH SERVICE ARCHITECTURE                    |
|                                                                             |
|   Audio Inputs: Contact Center Calls, Video Lectures, Live Audio Streams    |
|                                      │                                      |
|                 OCI Identity and Access Management (IAM)                    |
|                                      ▼                                      |
|         ┌────────────────────────────┴────────────────────────────┐         |
|         ▼                                                         ▼         |
|   BATCH TRANSCRIPTION                                   REAL-TIME STREAMING |
|   - Asynchronous processing                             - Synchronous stream|
|   - Source: OCI Object Storage                          - Protocol: WebSockets
|   - JSON, WebVTT (.vtt), SubRip (.srt)                  - Sub-second latency|
|   - Large file backlogs & call centers                  - IVR, Voice Bots   |
|                                                                             |
|         ┌─────────────────────────────────────────────────────────┐         |
|         ▼                                                         ▼         |
|   ADVANCED ACOUSTIC FEATURES                            WHISPER INTEGRATION |
|   - Speaker Diarization ("Who Spoke When")              - OpenAI Whisper ASR|
|   - Token & Sentence Timestamps                         - Multilingual ASR  |
|   - Custom Vocabularies (Acronyms & Jargon)             - Audio-to-English  |
|   - Profanity Filtering & Content Masking               - Noise Robustness  |
+-----------------------------------------------------------------------------+

Core Processing Modes: Batch vs. Real-Time Streaming

To accommodate varying application architectures, latency requirements, and media formats, OCI Speech provides two primary operational modes—Batch Transcription and Real-Time Streaming Transcription—alongside native OpenAI Whisper integration.

1. Batch Transcription (Asynchronous)

Batch transcription is designed for processing pre-recorded audio and video files stored in the cloud:

  • Workflow Mechanics: Applications upload media files into an OCI Object Storage bucket. A client application initiates a transcription job specifying the input bucket, file object names or prefixes, target language, and desired acoustic features. The job processes asynchronously in the background.
  • Status Tracking: The service returns an asynchronous Work Request OCID. Clients can monitor job progress programmatically, poll job status, or register an OCI Events rule to trigger automated notifications or serverless OCI Functions upon job completion.
  • Output Formats:
    • Structured JSON Transcript: Contains the complete transcribed text, sentence-level structures, confidence scores (0.0 to 1.0), speaker identification tags, and start/end time offsets for every individual token.
    • Standard Subtitle Files: Automatically generates SubRip (.srt) and Web Video Text Tracks (.vtt) files for direct integration into video players, e-learning platforms, and digital media archives.
  • Supported Audio Formats: Natively ingests common audio containers and compression codecs including WAV (uncompressed PCM), MP3, AAC, FLAC, OGG, and MP4 video audio tracks.
  • Target Use Cases: Archival call center recording audits, recorded podcast transcription, broadcast media indexing, and academic lecture transcription.

2. Real-Time Streaming Transcription (Synchronous)

Real-time streaming transcription enables instantaneous speech-to-text conversion for live, interactive applications:

  • Workflow Mechanics: The client application establishes a persistent, bidirectional WebSocket connection with the OCI Speech streaming endpoint. As the speaker talks, the application captures raw audio frames (such as 16 kHz, 16-bit PCM audio) and streams them continuously across the WebSocket channel.
  • Incremental Token Delivery: The service processes audio frames in real time and streams back partial and final transcribed text tokens with sub-second latency (typically under a few hundred milliseconds).
  • Protocol Efficiency: Operating over WebSockets eliminates the HTTP request-response overhead, providing the low-latency communication required for live human-computer voice interaction.
  • Target Use Cases: Interactive Voice Response (IVR) telephone systems, live customer service agent assistance, conversational voice bots, real-time conference call transcription, and live closed captioning.

3. OpenAI Whisper Integration in OCI Speech

OCI Speech incorporates state-of-the-art OpenAI Whisper models hosted natively on Oracle Cloud Infrastructure hardware:

  • Multilingual Speech Recognition: Whisper expands OCI Speech's language coverage across dozens of global languages and regional dialects, handling code-switching (speakers alternating between languages) with high fidelity.
  • Direct Audio-to-English Translation: In addition to transcribing the native spoken language, Whisper can translate spoken foreign language audio directly into fluent English text in a single end-to-end inference pass, bypassing intermediate translation steps.
  • Exceptional Acoustic Robustness: Whisper's architecture is trained on extensive, weakly supervised web audio, making it exceptionally resilient against heavy background chatter, vehicle noise, reverberant rooms, and low-quality microphone hardware.

Advanced Acoustic Features & Capabilities

OCI Speech incorporates specialized acoustic features that transform raw speech-to-text into rich, contextual transcripts ready for enterprise analytics.

1. Speaker Diarization: "Who Spoke When"

In conversations involving multiple participants, a continuous block of text without speaker attribution is difficult to interpret. Speaker Diarization solves the acoustic challenge of determining "who spoke when".

  • Mechanism: The acoustic engine extracts vocal biometric embeddings from the audio stream and clusters them into distinct speaker profiles. It partitions the recording into sequential turns and labels each utterance with a speaker identifier (e.g., Speaker 0, Speaker 1, Speaker 2).
  • Zero Prior Enrollment: Diarization operates unsupervised—it does not require prior voice registration or enrollment samples from the participants.
  • Enterprise Contact Center Value: Distinguishes customer statements from customer service agent responses. This separation is mandatory for downstream sentiment analysis, agent compliance verification, and dispute resolution.
Raw Audio Stream:  [=== Speaker A ===] [====== Speaker B ======] [=== Speaker A ===]
                          │                     │                     │
Diarized Output:   Speaker 0:            Speaker 1:            Speaker 0:
                   "Hello, I need help   "I can certainly      "My account number
                   with my account."     assist with that."    is AC-99482."

2. Time Offsets & Timestamps

Accurate temporal alignment is critical for multimedia synchronization and audio navigation:

  • Dual-Level Precision: OCI Speech outputs millisecond-level start and end timestamps at both the sentence level and the individual token/word level.
  • Interactive Video Seeking: Media players can implement click-to-seek functionality, allowing users to search a transcript for a keyword and jump directly to that exact millisecond in the video.
  • Video Subtitle Alignment: Powers automated generation of .srt and .vtt caption tracks where each subtitle line aligns precisely with spoken words on screen.

3. Profanity Filtering & Content Moderation

Enterprise transcripts must comply with corporate conduct guidelines, broadcast regulations, and brand safety standards:

  • Automated Detection: Detects profane, abusive, or offensive terms from built-in lexicons.
  • Configurable Moderation Modes:
    • Masking: Replaces the interior letters of offensive words with asterisks (e.g., f***, d***) while preserving sentence readability.
    • Removal: Completely strips the offensive word from the generated transcript.
  • Compliance Assurance: Ensures that transcripts displayed on public portals, customer portals, or distributed to internal stakeholders remain professional and compliant.

4. Custom Vocabularies: Resolving Out-of-Vocabulary (OOV) Terms

Standard acoustic models are trained on general language and frequently misinterpret specialized enterprise terminology as common words that sound phonetically similar (e.g., transcribing a proprietary drug name "CardioZest" as "cardio zest", or transcribing technical acronym "OCI VCN" as "oh see eye we see in").

Custom Vocabularies eliminate these Out-of-Vocabulary (OOV) recognition errors:

  • Custom Term Glossaries: Administrators upload lists of enterprise-specific terminology, product brand names, technical jargon, medical classifications, and proprietary acronyms.
  • Phonetic Pronunciations ("Sounds-Like"): Administrators can provide custom phonetic mappings (e.g., mapping the acronym "K8s" to the pronunciation "kay-eights" or "kubernetes").
  • Language Model Biasing: During decoding, the ASR engine biases its probabilistic language model toward the terms defined in the custom vocabulary, dramatically increasing transcription accuracy on proprietary enterprise nomenclature without requiring acoustic retraining.

5. Multi-Channel Audio Support

Contact center telephone systems frequently record conversations across dual channels (stereo audio), isolating the customer on Channel 0 (left channel) and the customer service representative on Channel 1 (right channel):

  • OCI Speech supports multi-channel transcription, processing each channel independently to eliminate acoustic crosstalk and deliver pristine speaker attribution.

Enterprise Voice Architectures & Downstream Workflows

In enterprise architectures, OCI Speech acts as the foundational acoustic intake layer, feeding downstream perceptual and generative AI services:

[Customer Phone Call / IVR / Web Audio]
                   │
                   ▼
      [OCI Speech Service (ASR)]
      ├── Real-Time Streaming / Batch Transcription
      ├── Speaker Diarization (Agent vs. Customer)
      ├── Custom Vocabulary (Product Terms & Acronyms)
      └── Millisecond Timestamps
                   │
                   ▼ (Structured JSON Transcript)
     [OCI Language Service (NLP)]
     ├── Aspect-Based Sentiment Analysis (Customer Frustration)
     ├── Named Entity Recognition (Account & Order Numbers)
     └── PII Redaction (Masking Credit Cards & SSNs)
                   │
                   ▼
   [Autonomous Database 23ai & OCI GenAI]
   ├── Automated Case Resolution & Agent Summaries (Cohere Command R+)
   └── Customer Churn Risk Analytics & Executive Dashboards
  • Contact Center Conversation Intelligence: Thousands of customer service calls are transcribed daily via batch transcription. Transcripts are passed to OCI Language to evaluate agent compliance, detect emerging product defects, and identify churn risks.
  • Automated Meeting Summarization: Diarized meeting recordings are processed by OCI Speech, and the resulting structured transcripts are passed to OCI Generative AI (Cohere Command R+) to automatically extract action items, decisions, and executive summaries.
  • Accessibility & Media Archival: Media publishers automatically transcribe broadcast catalogs using Whisper integration, generating multi-language .vtt subtitles that satisfy international accessibility regulations (such as the Americans with Disabilities Act, ADA).

OCI Speech Capabilities & Processing Modes Comparison

| Feature Dimension | Batch Transcription | Real-Time Streaming | OpenAI Whisper Integration | | :--- | :--- | :--- | :--- | :--- | | Operational Protocol | Asynchronous REST API | Synchronous WebSockets | Asynchronous REST API | | Audio Source | OCI Object Storage bucket | Live raw PCM audio stream | OCI Object Storage bucket | | Latency Profile | Minutes (background job) | Sub-second (< 500 ms) | Minutes (background job) | | Speaker Diarization | Supported (multi-speaker) | Single-stream processing | Supported | | Timestamp Precision | Token-level & Sentence-level | Token-level streaming chunks | Token-level & Sentence-level | | Custom Vocabularies | Supported (glossaries & phonetic) | Supported | Base Whisper vocabulary | | Multilingual Translation | Transcription only | Transcription only | Direct Audio-to-English translation | | Output Formats | JSON, WebVTT (.vtt), SRT (.srt) | Incremental text stream | JSON, WebVTT (.vtt), SRT (.srt) | | Ideal Enterprise Workload | Call center archives, podcasts | IVR systems, live voice bots | Multilingual audio, noisy media |

Loading diagram...
OCI Speech Service Architecture & Processing Pipeline
Test Your Knowledge

A telecommunications provider is engineering an automated Interactive Voice Response (IVR) customer self-service assistant. The system requires live, sub-second transcription of caller speech to power an interactive conversational dialogue agent. Which operational processing mode of the OCI Speech service must the architecture implement?

A
B
C
D
Test Your Knowledge

A financial contact center records thousands of customer service calls daily. The compliance and quality assurance team needs to distinguish between statements made by the customer and statements made by the customer service representative in the final written transcript. Which feature of the OCI Speech service should be enabled?

A
B
C
D
Test Your Knowledge

A pharmaceutical research corporation uses OCI Speech to transcribe recorded scientific symposiums. The system frequently misinterprets patented drug compounds and specialized medical acronyms as common phonetic words. How can the engineering team improve recognition accuracy for these domain-specific terms without retraining the base acoustic model?

A
B
C
D