IN THIS ARTICLE
Subscribe to Our Newsletter
What is Chirp?
Chirp’s SDKs allow you to send small amounts of data over sound. It is designed to work in noisy everyday environments and doesn’t require perfect silence to work. In my experiments, I found that my chirps were received in almost every reasonable scenario I tested.
Chirp offers several different protocols you can use. You can select from audible or inaudible near-ultrasonic frequencies.
The Chirp WebAssembly SDK used in this tutorial only supports the
How Can I Use Chirp?
In this tutorial, we are using chirps to transmit a channel and connect users in a chat. Some use cases with Chirp and PubNub could include:
- Connecting players to the same multiplayer lobby
- Provisioning IoT devices
- Sending payment data
- Creating interactive screen experiences
In this tutorial we’ll cover:
- How to use the Chirp SDK to send and receive the channel name.
Our app will work like this:
- Users will first need to enable their microphone.
- A user creates a new chat and becomes the host.
- The host transmits a chirp to another user.
- The users are now in the same chat channel and can send messages using PubNub.
There are a few requirements before you can get started:
- Sign up for a Chirp account. Get your Chirp key from the applications page.
- Download the Chirp WebAssembly SDK.
- Sign up for a PubNub account. Once you sign up, you can get your unique PubNub keys from the PubNub Admin Dashboard. Sign up using the form below.
Continue with part two of this tutorial, Creating a Chat App with PubNub and Chirp.