OCI Language and OCI Speech
OCI AI Foundations · Lesson 15 of 16 · 1:55:21
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Oracle Cloud Infrastructure AI Foundations Associate exam (1Z0-1122-26). In this lesson: OCI Language (language detection, text classification, named entity recognition, key phrase extraction, sentiment by aspect, sentence, and document, translation, and PII detection), custom language models evaluated with precision, recall, and F1, and OCI Speech (JSON and SRT transcriptions, timestamps, confidence scores, normalization, diarization, the profanity filter, the Whisper model, and Live Transcribe). Includes three original practice questions, with Willowmere Motors, a fictional network of car dealerships and repair shops, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Too much to read
Willowmere receives thousands of customer emails and reviews every week, in many languages. Its service desk also keeps recordings of phone calls with customers, about repairs and bookings. Nobody can read and hear all of it, so Willowmere turns to two of OCI's AI services: one for text, and one for speech.
What OCI Language finds
OCI Language is a serverless AI service that analyzes text through its REST API, with pretrained models that need no machine learning expertise. Language detection names the language of a text, with a confidence score, and the documentation now lists more than one hundred languages. Text classification sorts a text into categories and subcategories, from a large taxonomy. Named entity recognition finds entities like people, places, dates, amounts of money, or email addresses. And key phrase extraction pulls out the main ideas of a text, as short phrases.
Sentiment, translation, and personal data
Sentiment analysis tells whether a text is positive, negative, or neutral, at three levels: for each aspect, like the price or the service, for each sentence, and for the whole document. A review that says the repair was fast, but the price was too high, is positive about the repair, and negative about the price. Translation uses neural machine translation, to translate text between many languages. And PII detection finds personal data, like names, phone numbers, or account numbers, classifies it, and can de-identify it, by masking it, replacing it, or removing it.
Custom language models
When the pretrained models do not know your categories or your entities, you can train custom models, for text classification, and for named entity recognition. You prepare labeled data, train the model, evaluate it with metrics like precision, recall, and the F1 score, and then deploy it to an endpoint. For example, Willowmere could train a custom classification model that sorts emails into its own warranty categories.
OCI Speech
OCI Speech uses automatic speech recognition to turn audio files into text: you put the files in Object Storage, and you get transcriptions back, in JSON and SRT formats. Each word comes with a timestamp and a confidence score, and the text gets punctuation, and normalization, which writes numbers, amounts, and addresses in a readable form. Diarization tells the speakers apart, so that you know who said what, and a profanity filter can remove, mask, or tag offensive words. Besides Oracle's own models, for languages like English, Spanish, French, German, or Hindi, a Whisper model covers more than fifty languages, through the same API. And Live Transcribe turns a live audio stream into text, in real time.
Recap
Let's recap. OCI Language is serverless, and its pretrained models detect the language, classify text, find named entities, and pull out key phrases. Sentiment analysis works by aspect, by sentence, and by document, translation is neural, and PII detection can mask, replace, or remove personal data. Custom models for classification and entities are trained on labeled data, evaluated with precision, recall, and F1, and deployed to an endpoint. OCI Speech turns audio files into JSON and SRT transcriptions, with timestamps, confidence scores, diarization, and a profanity filter. And a Whisper model adds more than fifty languages, while Live Transcribe works in real time.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Before sharing its support emails with a research partner, Willowmere wants to hide the customers’ names and phone numbers. Which feature of OCI Language fits?
- Detection of the language
- Extraction of key phrases
- Neural machine translation
- PII detection and masking
Show the answer
PII detection and masking
PII detection finds personal data, like names and phone numbers, and can mask it, replace it, or remove it. “Detection of the language” only names the language of each email. “Extraction of key phrases” would pull out the main ideas, and leave the personal data in place. And “Neural machine translation” would translate the emails, names and numbers included.
Willowmere’s support emails mention its own part numbers, which the pretrained entity model does not recognize. What should Willowmere do?
- Run language detection first
- Train a custom named entity model
- Switch to text classification
- Translate the emails first
Show the answer
Train a custom named entity model
A custom named entity recognition model, trained on labeled emails, learns to find Willowmere's own part numbers. “Run language detection first” would only name the language of each email. “Switch to text classification” would sort whole emails into categories, without finding the part numbers inside them. And “Translate the emails first” would change the language, and the part numbers would stay unrecognized.
Willowmere’s call recordings have two people talking, and each transcript must show which words the customer said, and which the advisor said. Which feature of OCI Speech fits?
- Diarization
- Normalization
- The profanity filter
- Word timestamps
Show the answer
Diarization
Diarization tells the speakers apart, so the transcript shows who said what. “Normalization” would write numbers and addresses in a readable form, without separating the speakers. “The profanity filter” would only remove, mask, or tag offensive words. And “Word timestamps” gives the time of each word, but not the person who said it.