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.
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 …
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.
Pour suivre ce tutoriel, vous devez disposer des éléments suivants :
- Java 11 ou version ultérieure. Je recommande SDKMAN ! pour la gestion des versions Java
- Un compte Twilio et un compte Azure
- Ngrok ou la CLI Twilio
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 …
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.
In order to follow along, you will need to have:
- Java 11 or later. I recommend SDKMAN! for managing Java versions
- A Twilio account and an Azure account.
- Ngrok or the Twilio CLI
If you want to skip ahead, you can find the completed code in my repo on GitHub.
To get a Java w …
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!
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!
Prerequisites and setting up Azure Cognitive Services
To follow along with this post, you need three things:
- A Twilio account - sign up for a free one here and receive an extra $10 if you upgrade through this link
- A Twilio phone number with SMS capabilities - configure one here
- Microsoft Azure - make a free account here if you don't have one already
To use Azure Cognitive Services, …
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.
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.
Windows 10 version: …
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:
- Setting up …
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:
In this tutorial I’m going to show you how to create a countdown SMS that sends a …
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 new
System.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 …
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.
To follow along, you’ll need the following:
- A Twilio Account. If you use this link to register, you will receive $10 credit when you upgrade to a paid account.
- An Azure Account
- Python 3.6 or Python 3.7 - At the time of writing this article, these are the Python versions, Azure Functions currently supports.
- VS Code - The Python extension for VS code needs to be installed as well.
Set up an Azure Function App
To get started, we need to create an …