Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now
Build the future of communications.
Start building for free

Azure posts

  • By Niels Swimberghe
    How to send SMS with C# .NET and Azure Functions using the Twilio Output Binding How to send SMS with C# .NET & Azure Functions using Twilio Output Binding

    Azure Functions has its own opinionated way of developing applications based on triggers, input bindings and output bindings. Azure supports two Twilio products using output bindings: Twilio Programmable Messaging for sending SMS and Twilio SendGrid for sending emails.
    In this tutorial, you'll learn how to send text messages with C# .NET using Azure Functions and Twilio binding.

    Prerequisites

    You will need these items to follow along:

    • OS that supports .NET (Windows/Mac/Linux)
    • .NET 6 SDK
    • Azure Functions Core Tools
    • A code editor or IDE (Recommended: VS Code with C# plugin, Visual Studio, or JetBrains Rider)
    • A free Twilio account (If you register here, you'll receive $10 in Twilio credit when you upgrade to a paid account!)

    Get started with Twilio

    You will need to set up a couple of things with Twilio before developing the Azure function:

    • If you don't already have a Twilio phone number, go and buy a …
    Read More
  • By Matthew Gilliard
    Transcription live avec Twilio Media Streams, Azure cognitive Services et Java Transcription en direct avec Twilio Media Streams, Azure cognitive Services et Java

    Twilio Media Streams peut être utilisé pour diffuser des données audio en temps réel d'un appel téléphonique vers votre serveur à l'aide de WebSockets. Associé à un système de synthèse vocale, il peut être utilisé pour générer une transcription en temps réel d'un appel téléphonique. Dans ce post, je vais vous montrer comment configurer un serveur Java WebSocket pour gérer les données audio de Twilio Media Streams et utiliser Azure cognitive Services Speech pour la transcription.

    Prérequis

    Pour suivre ce tutoriel, vous devez disposer des éléments suivants :

    Si vous souhaitez passer à l'étape suivante, vous pouvez trouver le code complété dans mon répertoire sur GitHub.

    Mise en route

    Pour qu'un projet Web Java soit rapidement opérationnel, je vous recommande d'utiliser …

    Read More
  • By Matthew Gilliard
    Live transcription with Twilio Media Streams, Azure Cognitive Services and Java Live transcription with Twilio Media Streams, Azure Cognitive Services and Java

    Twilio Media Streams can be used to stream real-time audio data from a phone call to your server using WebSockets. Combined with a Speech-to-Text system this can be used to generate a real-time transcription of a phone call. In this post I’ll show how to set up a Java WebSocket server to handle audio data from Twilio Media Streams and use Azure Cognitive Services Speech for transcription.

    Requirements

    In order to follow along, you will need to have:

    If you want to skip ahead, you can find the completed code in my repo on GitHub.

    Getting Started

    To get a Java w …

    Read More
  • By Carla Morral Martín
    How to Build a WhatsApp Translator with Twilio, Python, Flask and Microsoft Azure header - How to Build a WhatsApp Translator with Twilio, Python, Flask and Microsoft Azure

    WhatsApp is a growing social media platform that's available on web browsers (like Chrome), iPhone, and Android devices. If you use WhatsApp daily, you've likely encountered difficulties while chatting with a person who doesn’t speak your language. And you may be tired of having to quit WhatsApp to open a translator app like the Google Translate app to translate your text messages in real-time! If you want to translate directly from within your Android device or iOS device, you’re in the right place!

    I will guide you through the following steps in order to get your WhatsApp translator up and running!

    Tutorial Requirements

    • Python 3.7 or newer.
    • Flask. We will create a web application that responds to incoming WhatsApp messages with it.
    • ngrok. We will use this localhost tunneling tool to connect the Flask application running on your system to a public URL that Twilio can connect to. …
    Read More
  • By Lizzie Siegle
    Build a Hamilton Song Recommendation SMS Bot with Machine Learning ham header

    Hamilton the Musical will start streaming on Disney Plus this Friday, so happy Hamilfilm week! To celebrate, learn how to build a SMS chatbot that recommends the Hamilton song most relevant to you right now using Twilio Programmable SMS and Functions, Microsoft Azure Cognitive Services, and JavaScript.

    See it in-action: text how you’re feeling to +13364295064. The longer and more descriptive your message is, the more data the app has to analyze what Hamilton song you need now!

    sms example

    Prerequisites and setting up Azure Cognitive Services

    To follow along with this post, you need three things:

    To use Azure Cognitive Services, …

    Read More
  • By David Pine
    Running a Video Chat App Built with ASP.NET Core 3.1 and Twilio Programmable Video on Microsoft Azure video-chat-dot-net-3-1-deploy.png

    With Twilio Programmable Video you can add robust video chat functionality to web applications built with Angular and ASP.NET Core. With Microsoft’s Azure App Service you can host your video-enabled apps on a fully managed, enterprise-grade cloud platform. Deployment and configuration are easy and take just minutes.

    The post Building a Video Chat App with ASP.NET Core 3.1, Angular 9, and Twilio demonstrated how to integrate the Twilio JavaScript SDK and the Twilio .NET SDK with ASP.NET Core and Angular. The next step in implementing a video chat application is learning to deploy it to the cloud with Microsoft Azure.

    In this post you’ll learn how to publish a video chat application to the Azure App Service and securely configure it to use the Twilio Video Chat API. You’ll be able to try out the production application’s video chat features and verify that it’s configured correctly.

    Prerequisites

    Windows 10 version: …

    Read More
  • By David Pine
    Retweeting Twitter Mentions On Demand with Twilio Programmable SMS, ASP.NET Core 3.1, the Twitter API, and Azure retweeting-twitter-mentions-on-demand.png

    If you’re a developer, chances are you are on Twitter. It’s where all the cool developers like to tweet code snippets, ideas, and boasts about programming projects!

    If you’re like me, you probably don’t like notifications on your phone.

    I mean, text messages, sure, those are fine, but not notifications from apps.

    Fortunately, there’s a way to get important Twitter notifications and respond to them without leaving the comfort of your texting environment. You can retweet mentions without having to install an app on your phone or open your phone’s browser.

    This post demonstrates how to leverage Twilio Programmable SMS in conjunction with ASP.NET Core, the Twitter API, and Microsoft Azure to receive a text message when someone mentions you on Twitter. You’ll also be able to retweet the Twitter mention directly from your SMS client with a quick reply. There are four parts to the project:

    1. Setting up …
    Read More
  • By April Speight
    Create a NASA Astronomy Picture of the Day Scheduled SMS with Python, Twilio and Azure Functions Create a NASA Astronomy Picture of the Day Scheduled SMS with Python and Azure Functions

    Recently, my friends and I were invited to NASA to take part in a behind-the-scenes tour and briefing on five new research campaigns that will take to the field in 2020 to explore questions critical to understanding our home planet!

    With so much to look forward to, I decided to create a countdown for the days leading up to our road trip! Rather than execute the group chat countdown manually, I decided to get a little help from my friends at Twilio, Azure Functions and NASA's astronomy picture of the day API. My goal was to accomplish the following:

    • Countdown the number of days remaining until the trip to NASA
    • Include NASA's astronomy picture of the day
    • Schedule a message to be sent every morning at 9AM

    Here's an example of a message:

    scheduled sms demo

    In this tutorial I’m going to show you how to create a countdown SMS that sends a …

    Read More
  • By Layla Porter
    Dependency Injection in Azure Functions with C# Title image: Dependency Injection in Azure Functions with C#

    One of my favourite features of Azure Functions v2 and above is the ability to include a Startup class. Why is this cool you may ask? Well, it means that you can use .NET Core's built-in Dependency Injection (DI). This then means that project architecture can look remarkably like ASP.NET Core web apps. DI also makes testing easier as dependencies can be mocked. In this post, I'll show you how you can quickly add DI to an Azure Function.

    Note: Azure Functions v3.0 became GA in January 2020. This means that you can now use .NET 3.1 and Node 12 in your Azure Functions. They still don't support the newSystem.Text.Json but that should come in time.

    If you would like to see a full integration of Twilio APIs in a .NET Core application then checkout this free 5-part video series I created. It's separate from this blog post tutorial …

    Read More
  • By Dotun Jolaoso
    How to Validate Phone Numbers using Python, Azure Functions and Twilio How to Validate Phone Numbers using Python, Azure Functions and Twilio

    Phone number validation is the process of verifying a phone number is valid and in the right format. It’s an important aspect and a popular measure for applications and services that deal with collecting phone numbers from users. In this tutorial we’ll use Python and Azure Functions to develop a simple serverless HTTP function that integrates with Twilio’s Lookup API to validate phone numbers.

    Technical Requirements

    To follow along, you’ll need the following:

    Set up an Azure Function App

    To get started, we need to create an …

    Read More
  • Newer
    Older
    Sign up and start building
    Not ready yet? Talk to an expert.