Speech translation
Azure Speech translation provides real‑time speech‑to‑speech translation across dozens of languages. Seamlessly integrate with your applications to enable multilingual communication.
Key Features
- Real‑time speech translation
- Batch translation for audio files
- Custom voice models
- Support for 70+ languages
Get Started
Select source and target languages, speak or type, and see the translation instantly.
Translation:
Sample Code (C#)
// Install-Package Microsoft.CognitiveServices.Speech using Microsoft.CognitiveServices.Speech; using Microsoft.CognitiveServices.Speech.Audio; var config = SpeechConfig.FromSubscription("YOUR_KEY","YOUR_REGION"); config.SpeechRecognitionLanguage = "en-US"; using var audioInput = AudioConfig.FromDefaultMicrophoneInput(); using var recognizer = new SpeechRecognizer(config, audioInput); var result = await recognizer.RecognizeOnceAsync(); Console.WriteLine($"Recognized: {result.Text}");
Sample Code (Python)
# pip install azure-cognitiveservices-speech import azure.cognitiveservices.speech as speechsdk speech_config = speechsdk.SpeechConfig(subscription="YOUR_KEY", region="YOUR_REGION") speech_config.speech_recognition_language="en-US" audio_config = speechsdk.audio.AudioConfig(use_default_microphone=True) speech_recognizer = speechsdk.SpeechRecognizer(speech_config, audio_config) result = speech_recognizer.recognize_once() print(f"Recognized: {result.text}")
Pricing
Pay-as-you-go pricing based on the number of hours of audio processed. View detailed pricing.