Snowflake AI_TRANSCRIBE – Transform Audio to Insights with SQL in Seconds
Introduction
Snowflake’s unstructured knowledge analytics has taken one other leap ahead! After increasing Cortex AI capabilities for photos and paperwork all through 2025, we will now work with audio knowledge immediately from SQL!
The new AI_TRANSCRIBE perform, launched in Public Preview as a part of Snowflake Cortex AISQL, transforms how we deal with audio knowledge. Customer help calls, assembly recordings, interviews – all these beforehand hard-to-leverage audio belongings can now be transcribed with a single SQL question and mixed with different AISQL features for superior analytics.
With help for photos, paperwork, and now audio – the three main unstructured knowledge codecs – Snowflake has dramatically expanded the chances for enterprise knowledge analytics. Let’s discover how AI_TRANSCRIBE works, its sensible purposes, and I’ll even share a voice-enabled AI chatbot constructed with Streamlit in Snowflake!
Note: AI_TRANSCRIBE is presently in Public Preview, so options could endure vital updates sooner or later.
Note: This article represents my private views and never these of Snowflake.
What is AI_TRANSCRIBE?
AI_TRANSCRIBE is Snowflake Cortex AISQL’s audio-to-text transcription perform. Previously, leveraging audio knowledge required exterior providers or third-party packages, however AI_TRANSCRIBE permits direct audio transcription inside SQL queries.
Key Features
- SQL Native: Call immediately from SQL like different AISQL features for easy integration
- Multi-language Support: Supports quite a few languages together with English, Spanish, French, German, Chinese, and plenty of extra
- Speaker Identification: Distinguishes and labels a number of audio system
- Timestamp Generation: Provides timestamps at phrase or speaker stage
- Secure Processing: All knowledge processing happens inside Snowflake’s safe surroundings
Part of the Cortex AISQL Family
AI_TRANSCRIBE turns into much more highly effective when mixed with present Cortex AISQL features:
- AI_SENTIMENT: Analyze sentiment in transcribed audio
- AI_CLASSIFY: Automatically categorize audio content material
- AI_COMPLETE: Summarize or reply questions on audio content material
- AI_AGG: Extract insights from grouped audio knowledge
- AI_EMBED: Vectorize audio transcripts for similarity search
Basic Usage
The primary syntax for AI_TRANSCRIBE is simple:
AI_TRANSCRIBE( <audio_file> [ , <options> ] )
Parameters
-
audio_file: FILE sort object representing the audio file. Use
TO_FILEperform to create a reference to staged information -
choices: Optional OBJECT sort with the next fields:
-
timestamp_granularity: Specifies timestamp granularity -
"phrase": Timestamps for every phrase -
"speaker": Timestamps and labels for every speaker
-
Example 1: Simple Text Transcription
The easiest use case is changing audio to textual content:
-- Convert audio file to textual content
SELECT AI_TRANSCRIBE(
TO_FILE('@audio_stage', 'customer_call_001.wav')
);
{
"audio_duration": 19.08,
"textual content": "Hi, I'd wish to inquire in regards to the product I bought final week. The packaging was broken when it arrived, and I'd wish to request an alternate if doable. Could you assist me with this? Thank you."
}
Processing time for this 19-second audio file was roughly 2 seconds – impressively quick for analytics eventualities!
Example 2: Word-Level Timestamps
For detailed evaluation, add word-level timestamps:
-- Transcribe with word-level timestamps
SELECT AI_TRANSCRIBE(
TO_FILE('@audio_stage', 'meeting_recording.wav'),
{'timestamp_granularity': 'phrase'}
);
{
"audio_duration": 19.08,
"segments": [
{
"end": 1.254,
"start": 0.993,
"text": "Hi"
},
{
"end": 1.434,
"start": 1.254,
"text": "I'd"
},
{
"end": 1.514,
"start": 1.434,
"text": "like"
}
// ... more segments
],
"textual content": "Hi I'd wish to inquire in regards to the product..."
}
Example 3: Speaker Identification
For conferences or interviews with a number of audio system, use speaker identification:
-- Transcribe with speaker identification
SELECT AI_TRANSCRIBE(
TO_FILE('@audio_stage', 'interview_2025.mp3'),
{'timestamp_granularity': 'speaker'}
);
{
"audio_duration": 16.2,
"segments": [
{
"end": 8.461,
"speaker_label": "SPEAKER_00",
"start": 0.511,
"text": "Good morning, thank you for joining us today. My name is Sarah."
},
{
"end": 15.153,
"speaker_label": "SPEAKER_01",
"start": 9.048,
"text": "Thank you for having me. I'm John, pleased to be here."
}
],
"textual content": "Good morning, thanks for becoming a member of us at the moment. My identify is Sarah. Thank you for having me. I'm John, happy to be right here."
}
Supported Languages and Formats
Supported Languages
AI_TRANSCRIBE helps an intensive checklist of languages:
- English, Spanish, French, German
- Mandarin Chinese, Cantonese
- Japanese, Korean
- Arabic, Bulgarian, Catalan
- Czech, Dutch, Greek
- Hungarian, Indonesian, Italian
- Latvian, Polish, Portuguese
- Romanian, Russian, Serbian
- Slovenian, Swedish, Thai
- Turkish, Ukrainian
Supported Audio Formats
Major audio codecs are supported:
- MP3: Most frequent audio format
- WAV: Uncompressed high-quality audio
- FLAC: Lossless compressed audio
- Ogg: Open-source format
- WebM: Web commonplace format
Limitations and Considerations
Technical Limitations
| Limitation | Details |
|---|---|
| Maximum File Size | 700MB |
| Maximum Duration (with out timestamps) | 120 minutes |
| Maximum Duration (with timestamps) | 60 minutes |
| Concurrent Processing | Depends on account compute assets |
Usage Considerations
- Audio Quality Impact: Background noise or poor audio high quality could cut back transcription accuracy
- Technical Terminology: Industry-specific phrases or correct nouns might not be precisely transcribed
- Language-Specific Behavior: Some languages could have distinctive behaviors with word-level timestamps
- Real-time Processing: Currently helps batch processing solely, not real-time streaming
Regional Availability
AI_TRANSCRIBE is natively out there in:
- AWS US West 2 (Oregon)
- AWS US East 1 (N. Virginia)
- AWS EU Central 1 (Frankfurt)
- Azure East US 2 (Virginia)
For different areas: Use cross-region inference to entry AI_TRANSCRIBE performance with doubtlessly slight latency.
Business Use Cases
AI_TRANSCRIBE excels in varied enterprise eventualities:
1. Customer Service Quality Enhancement
Transform name middle recordings into actionable insights:
- Sentiment Analysis: Use AI_SENTIMENT to research professionalism, downside decision, and wait time views
- Call Classification: Automatically categorize calls as complaints, inquiries, or reward with AI_CLASSIFY
- Speaker Separation: Analyze operator and buyer speech individually for detailed insights
- Real-time Dashboards: Visualize evaluation outcomes for fast service high quality enhancements
2. Meeting Automation and Action Item Extraction
Transform assembly recordings into productiveness instruments:
- Automatic Meeting Minutes: Instantly get hold of full textual content from prolonged conferences
- Summary Generation: Use AI_COMPLETE to create concise assembly summaries
- Action Item Extraction: Automatically determine selections and to-dos for environment friendly follow-up
- Participant Analysis: Track who stated what utilizing speaker identification
3. Legal and Compliance Automation
Strengthen danger administration with transcribed authorized conversations:
- Complete Documentation: Preserve all contract negotiations and authorized discussions as textual content
- Compliance Risk Detection: Classify dialog content material by danger stage utilizing AI_CLASSIFY
- Evidence Preservation: Accurately file who stated what and when with speaker identification and timestamps
- Automated Audit Reports: Extract key factors and generate audit-ready documentation
4. Education and Training Enhancement
Maximize studying effectiveness with transcribed instructional content material:
- Lecture Archives: Save course content material as searchable textual content
- Subtitle Creation: Add captions to video supplies utilizing word-level timestamps
- Training Feedback Analysis: Identify enchancment areas in coaching methodologies
- Multilingual Support: Transcribe overseas language programs for simpler assessment
5. Healthcare Documentation (with correct privateness controls)
Streamline medical documentation workflows:
- Automated Clinical Notes: Generate structured medical records from doctor-patient conversations
- EHR Integration: Extract related info for digital well being records
- Multilingual Patient Care: Support worldwide sufferers with transcription and translation
- Quality Assurance: Analyze session content material for healthcare enchancment
Building a Voice-Enabled AI Chatbot with Streamlit in Snowflake
Let’s construct a easy voice-enabled AI chatbot utilizing AI_TRANSCRIBE in Streamlit in Snowflake. Users can ask questions through voice, which will get transcribed and answered by AI (together with the newly added OpenAI GPT-5!).
Application Overview
This utility supplies:
- Voice Recording: Record audio immediately from browser and save to stage
- Audio Transcription: Convert to textual content utilizing AI_TRANSCRIBE
- AI Response Generation: Generate solutions utilizing AI_COMPLETE
Prerequisites
Environment Requirements
- Python Version: 3.11 or larger
- Additional Packages: None required (works with commonplace packages solely)
- Streamlit in Snowflake: Environment to create and run purposes
Regional Verification
Ensure your area helps AI_TRANSCRIBE and AI_COMPLETE features, or allow cross-region inference.
Implementation Steps
1. Create a New Streamlit in Snowflake App
Navigate to ‘Streamlit’ in Snowsight’s left pane and click on ‘+ Streamlit’ to create a brand new app.
2. Paste the Sample Code
Copy and paste the pattern code under immediately into the app editor. No modifications wanted – stage names are robotically configured.
3. Run the Application
Click the "Run" button to launch the app. The stage will likely be created robotically on first run.
4. Use the Application
- Voice Input: Click the microphone button to talk
- Model Selection: Choose your most popular AI mannequin from the sidebar
- Text Input: Regular chat enter can be out there
Sample Code
import streamlit as st
import io
import uuid
import json
from datetime import datetime
from snowflake.snowpark.context import get_active_session
from snowflake.snowpark.features import ai_complete, to_file
# Get Snowflake session
session = get_active_session()
# Constants
STAGE_NAME = "AUDIO_TRANSCRIBE_STAGE"
# Page configuration
st.set_page_config(format="broad")
st.title("AI Voice Chatbot")
# Sidebar: Model choice
st.sidebar.title("⚙️ Settings")
# Model choices
model_options = [
"━━━ 🟢 OpenAI ━━━",
"openai-gpt-oss-120b",
"openai-gpt-oss-20b",
"openai-gpt-5",
"openai-gpt-5-mini",
"openai-gpt-5-nano",
"openai-gpt-5-chat",
"openai-gpt-4.1",
"openai-o4-mini",
"━━━ 🔵 Claude ━━━",
"claude-4-opus",
"claude-4-sonnet",
"claude-3-7-sonnet",
"claude-3-5-sonnet",
"━━━ 🦙 Llama ━━━",
"llama4-maverick",
"llama4-scout",
"llama3.3-70b",
"llama3.2-3b",
"llama3.2-1b",
"llama3.1-405b",
"llama3.1-70b",
"llama3.1-8b",
"llama3-70b",
"llama3-8b",
"━━━ 🟣 Mistral ━━━",
"mistral-large2",
"mistral-large",
"mixtral-8x7b",
"mistral-7b",
"━━━ ❄️ Snowflake ━━━",
"snowflake-arctic",
"snowflake-llama-3.3-70b",
"snowflake-llama-3.1-405b",
"━━━ 🔴 Others ━━━",
"deepseek-r1",
"reka-core",
"reka-flash",
"jamba-1.5-large",
"jamba-1.5-mini",
"jamba-instruct",
"gemma-7b"
]
# Default mannequin setting
default_model = "llama4-maverick"
default_index = model_options.index(default_model) if default_model in model_options else 1
llm_model = st.sidebar.radio(
"Select AI Model",
choices=model_options,
index=default_index,
format_func=lambda x: x if "━━━" in x else f" • {x}"
)
# Use subsequent mannequin if separator is chosen
if "━━━" in llm_model:
llm_model = "llama4-maverick"
# Stage setup
@st.cache_resource
def setup_stage():
"""Setup stage for audio file storage"""
attempt:
session.sql(f"DESC STAGE {STAGE_NAME}").accumulate()
besides:
session.sql(f"""
CREATE STAGE IF NOT EXISTS {STAGE_NAME}
ENCRYPTION = (TYPE = 'SNOWFLAKE_SSE')
DIRECTORY = (ENABLE = TRUE)
""").accumulate()
setup_stage()
# Initialize session state
if 'messages' not in st.session_state:
st.session_state.messages = []
st.session_state.chat_history = ""
def extract_text_from_transcript(transcript_result):
"""Extract textual content from AI_TRANSCRIBE outcome"""
if isinstance(transcript_result, str) and transcript_result.startswith('{'):
attempt:
return json.masses(transcript_result).get('textual content', '')
besides:
return transcript_result
return transcript_result
def clean_ai_response(response):
"""Clean up AI response"""
if isinstance(response, str):
response = response.strip('"')
response = response.change('n', 'n')
return response
def generate_ai_response(immediate, mannequin):
"""Generate AI response"""
df = session.vary(1).choose(
ai_complete(mannequin=mannequin, immediate=immediate).alias("response")
)
return clean_ai_response(df.accumulate()[0]['RESPONSE'])
# Display chat historical past
for message in st.session_state.messages:
with st.chat_message(message["role"]):
st.markdown(message["content"])
# Voice enter part
st.subheader("Voice Input")
audio_value = st.audio_input("Click the microphone button to talk")
if st.button("📤 Send Voice", disabled=(audio_value is None), use_container_width=True):
if audio_value:
attempt:
# Upload audio file
with st.spinner("🎤 Uploading audio..."):
audio_filename = f"audio_{datetime.now().strftime('%Ypercentmpercentd_percentHpercentMpercentS')}_{uuid.uuid4().hex[:8]}.wav"
audio_stream = io.BytesIO(audio_value.getvalue())
session.file.put_stream(
audio_stream,
f"@{STAGE_NAME}/{audio_filename}",
auto_compress=False,
overwrite=True
)
# Transcribe
with st.spinner("📝 Transcribing audio..."):
question = f"""
SELECT AI_TRANSCRIBE(
TO_FILE('@{STAGE_NAME}/{audio_filename}')
) as transcript
"""
outcome = session.sql(question).accumulate()
if outcome and len(outcome) > 0:
transcribed_text = extract_text_from_transcript(outcome[0]['TRANSCRIPT'])
if transcribed_text:
# Add person message
st.session_state.messages.append({"function": "person", "content material": transcribed_text})
st.session_state.chat_history += f"User: {transcribed_text}n"
# Generate AI response
with st.spinner("🤖 AI is producing response..."):
full_prompt = st.session_state.chat_history + "AI: "
response = generate_ai_response(full_prompt, llm_model)
st.session_state.messages.append({"function": "assistant", "content material": response})
st.session_state.chat_history += f"AI: {response}n"
st.rerun()
else:
st.warning("Transcription failed. Please attempt once more.")
besides Exception as e:
st.error(f"Error occurred: {str(e)}")
# Text enter
if immediate := st.chat_input("Enter your message..."):
# Add and show person message
st.session_state.messages.append({"function": "person", "content material": immediate})
st.session_state.chat_history += f"User: {immediate}n"
with st.chat_message("person"):
st.markdown(immediate)
# Generate and show AI response
attempt:
with st.spinner("🤖 AI is producing response..."):
full_prompt = st.session_state.chat_history + "AI: "
response = generate_ai_response(full_prompt, llm_model)
st.session_state.messages.append({"function": "assistant", "content material": response})
st.session_state.chat_history += f"AI: {response}n"
with st.chat_message("assistant"):
st.markdown(response)
besides Exception as e:
st.error(f"Error occurred: {str(e)}")
# Clear chat historical past
if st.button("🗑️ Clear Chat History"):
st.session_state.messages = []
st.session_state.chat_history = ""
st.rerun()
Application Screenshots
Implementation Highlights
- Simple Implementation: No extra packages required, works with commonplace libraries solely
- Audio Management: Store audio knowledge in phases and course of with AI_TRANSCRIBE
- Multimodal Support: Supports each voice and textual content enter
- Rich Model Selection: Choose from newest fashions together with OpenAI GPT-5
Cost Considerations
AI_TRANSCRIBE pricing follows the identical token-based mannequin as different AISQL features:
Token Consumption and Pricing
- 50 tokens per second of audio: Consistent throughout languages and timestamp granularities
- 1 hour of audio = 180,000 tokens
- Estimated value: At 1.3 credit per million tokens and assuming $3 per credit score, 1 hour of audio processing prices roughly $0.117
For instance, a 60-second audio file:
- 60 seconds × 50 tokens = 3,000 tokens
Note: Audio information below 1 minute are billed as 1 minute (3,000 tokens) minimal. For processing many quick audio information, take into account batching them collectively for value optimization.
For newest pricing info, check with the Snowflake Service Consumption Table.
Summary
AI_TRANSCRIBE represents a breakthrough perform that opens the door to audio knowledge analytics. Combined with Snowflake’s enhanced help for photos and paperwork in 2025, the addition of audio – the third main unstructured knowledge format – really positions Snowflake as a complete multimodal knowledge platform.
Key Benefits
- Unified Data Processing: Process all knowledge sorts together with audio inside Snowflake
- AISQL Function Integration: Combine with sentiment evaluation, classification, summarization, and vectorization
- Secure Environment: No exterior knowledge motion required, sustaining governance
- Development Efficiency: Build audio analytics pipelines with simply SQL, no third-party packages wanted
From customer support and assembly transcription to healthcare documentation and authorized compliance, AI_TRANSCRIBE unlocks worthwhile insights from beforehand untapped audio knowledge. Start exploring how this perform can remodel what you are promoting analytics at the moment!
Have you tried audio analytics in your knowledge workflows? What use circumstances are you most enthusiastic about? Share your experiences within the feedback under!
Promotion
Snowflake What’s New Updates on X
I share Snowflake What’s New updates on X. Follow for the most recent insights:
English Version
Snowflake What’s New Bot (English Version)
Japanese Version
Snowflake’s What’s New Bot (Japanese Version)
Change Log
(20250810) Initial submit
Original Japanese Article
https://zenn.dev/tsubasa_tech/articles/65e96e2bd257ec
HI-FI News
through DEV Community https://dev.to
August 10, 2025 at 12:47PM
-
Product on sale
Audiophile Vinyl Records Cleaning BundleOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Product on sale
Easy Start Vinyl Records Cleaning KitOriginal price was: €69.90.€59.90Current price is: €59.90. incl. VAT -
Vinyl Records Cleaner Easy Groove Concentrate€34.95 incl. VAT -
Easy Groove Super Set€199.00 incl. VAT -
Easy Groove Enzycaster – vinyl records prewash cleaner€34.95 incl. VAT -
Easy Groove Extreme MK. II- vinyl records prewash cleaner€45.00 incl. VAT -
Vinyl Records Cleaner – Easy Groove Virgin Concentrate€35.00 incl. VAT -
Easy Groove Spray&Wipe vinyl records cleaner€34.95 incl. VAT










