All Projects → chirp → chirp-flutter

chirp / chirp-flutter

Licence: other
Chirp for Flutter

Programming Languages

objective c
16641 projects - #2 most used programming language
dart
5743 projects
kotlin
9241 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to chirp-flutter

chirp-arduino
Chirp for Arduino
Stars: ✭ 43 (+30.3%)
Mutual labels:  chirp, data-over-sound
AstroMech
Protocol for exchanging small amounts of data over audio.
Stars: ✭ 21 (-36.36%)
Mutual labels:  chirp
qrtone
Allows your device to communicate in an electronic sound language. Follow us on twitter: https://twitter.com/qrtone
Stars: ✭ 39 (+18.18%)
Mutual labels:  data-over-sound
wave-gui
Yet another data-over-sound tool
Stars: ✭ 64 (+93.94%)
Mutual labels:  data-over-sound
Ozzillate
Data over sound file transfer web application
Stars: ✭ 124 (+275.76%)
Mutual labels:  data-over-sound
Wave Share
Serverless, peer-to-peer, local file sharing through sound
Stars: ✭ 1,641 (+4872.73%)
Mutual labels:  data-over-sound

ChirpSDK (Beta)

Send data with sound.

Getting Started

Sign up at the Chirp Developer Hub

Copy and paste your Chirp app key, secret and chosen configuration into the example application

await ChirpSDK.init(_appKey, _appSecret);
await ChirpSDK.setConfig(_appConfig);
await ChirpSDK.start();

Please see the example for a more detailed run through of how to use the Chirp SDK. For example the Chirp SDK async methods must called inside a Future async parent method.

Permissions

To grant iOS apps permission to use the microphone, you will need to add a Privacy - Microphone Usage Description statement to the Info.plist in the Runner xcode project.

For Android you will need to edit the AndroidManifest.xml file to include

<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Sending

Chirp SDKs accept data as an array of bytes, creating a versatile interface for all kinds of data. However in most cases, Chirp is used to send a short identifier. Here is an example of how to send a short string with the Chirp SDK.

String identifier = "hello";
var payload = new Uint8List.fromList(identifier.codeUnits);
await ChirpSDK.send(payload);

It is worth noting here that the send method will not block until the entire payload has been sent, but just as long as it takes to pass the message to the SDK. Please use the onSent callback for this purpose.

Receiving

To receive data you can listen for received events like so

ChirpSDK.onReceived.listen((e) {
    String identifier = new String.fromCharCodes(e.payload);
});

A received event includes the payload and the channel for multichannel configurations. There are several other callbacks available which are illustrated in the example.

Contributions

This project aims to be a community driven project and is open to contributions. Please file any issues and pull requests at GitHub Thank you!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].