Taking Claude Platform 101

  • Run the same workload through different models to evaluate 
  • In real apps, you’d route models base on task, eg. Haiku for classifying incoming files, Sonnet for drafting updates, Opus for RFP responses
    • the right model is the cheapest one whose output you’d actually ship

AI on the Edge LESSON 8: Text to Speech (TTS) On the Raspberry Pi 

AI on the Edge LESSON 8: Text to Speech (TTS) on the Raspberry Pi | Technology Tutorials  

Learning about voice interaction on the AI Fusion Hat

from fusion_hat.tts import Piper
tts = Piper()
voiceDict = tts.available_models('en_US')
# print(voiceDict)
# tts.set_model('en_US-amy-low')
# msg = "Hello World. I'm Piper TTS."
# 
# tts.say(msg, stream=False)
allVoices = []
for voice in voiceDict.values():
    for var in voice:
        allVoices.append(var)
# print(allVoices)
for voice in allVoices:
    speakableName = voice.replace("en_US-",'').replace('-',' ').replace('_',' ')
    print(speakableName)
    tts.set_model(voice)
    tts.say('This is the voice of' +speakableName+".")

Posted in , , , ,

Leave a Reply