These instructions are for installing and running SPM12 (standalone) on macOS with Apple Silicon.
- Download SPM12 (standalone) here
export DIGITAL_OCEAN_TOKEN='' | |
curl -X GET --silent "https://api.digitalocean.com/v2/images?per_page=999" -H "Authorization: Bearer $DIGITAL_OCEAN_TOKEN" |
import json | |
import paho.mqtt.client as mqtt | |
# MQTT client to connect to the bus | |
mqtt_client = mqtt.Client() | |
def on_connect(client, userdata, flags, rc): | |
print('Connected') | |
mqtt_client.subscribe('#') # subscribe to all messages | |
mqtt_client.publish('hermes/asr/toggleOn') # Start recording audio |
open class GoogleSpeechToTextStreamingTap { | |
internal var converter: AVAudioConverter! | |
@objc public init(_ input: AKNode?, sampleRate: Double = 16000.0) { | |
let format = AVAudioFormat(commonFormat: AVAudioCommonFormat.pcmFormatInt16, sampleRate: sampleRate, channels: 1, interleaved: false)! | |
self.converter = AVAudioConverter(from: AudioKit.format, to: format) | |
self.converter?.sampleRateConverterAlgorithm = AVSampleRateConverterAlgorithm_Normal |
These instructions are for installing and running SPM12 (standalone) on macOS with Apple Silicon.