Skip to content

Instantly share code, notes, and snippets.

View google_speech2text.md

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

View spoutcraft.log.0
[10:09:14] [INFO] Failed to poll device: Failed to poll device (8007000c)
[10:09:14] [INFO] Failed to poll device: Failed to poll device (8007000c)
[10:09:14] [INFO] Failed to poll device: Failed to poll device (8007000c)
... Repeated for about 1000 lines
[10:09:14] [INFO] Failed to poll device: Failed to poll device (8007000c)
View TreePopulator.java
/*
* This file is part of Vanilla (http://www.spout.org/).
*
* Vanilla is licensed under the SpoutDev License Version 1.
*
* Vanilla is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
@nevercast
nevercast / test.java
Created Jan 27, 2012
Test HDD speeds
View test.java
import java.io.File;
public class test {
/* Tests:
* 1. Time to create 2000 files
* 2. Time to list them
* 3. Time to delete all of them
* 4. Time to create 2000 files of 1kB each
* 5. Time to list them
* 6. Time to delete all of them