Skip to content

Instantly share code, notes, and snippets.

View gillesdemey's full-sized avatar
♥️
Be kind to others

Gilles De Mey gillesdemey

♥️
Be kind to others
View GitHub Profile
// Module to talk to the SHT21 temperature and humidity sensor over I2C
var i2c = require('i2c');
// Register addresses
const TRIGGER_T_MEASUREMENT_NO_HOLD = 0xF3;
const TRIGGER_RH_MEASUREMENT_NO_HOLD = 0xF5;
const WRITE_USER_REGISTER = 0xE6;
const READ_USER_REGISTER = 0xE7;
const SOFT_RESET = 0xFE;

Google Speech To Text API

Base URL: https://www.google.com/speech-api/v1/recognize
It accepts POST requests with voice file encoded in FLAC format, and query parameters for control.

Query Parameters

client
The client's name you're connecting from. For spoofing purposes, let's use chromium

lang
Speech language, for example, ar-QA for Qatari Arabic, or en-US for U.S. English