- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 223
 
Open
Description
I am trying to use mlx-audio 0.2.5 and build on iPhone 13 Pro Max with iOS 26.0.1.
Experiment 1
Here is a minimum reproducable code: https://github.com/hongbo-miao/hongbomiao.com/pull/34934/files
import Foundation
import Swift_TTS
func speakJokeText(jokeText: String) async throws {
  let trimmedJokeText = jokeText.trimmingCharacters(in: .whitespacesAndNewlines)
  guard !trimmedJokeText.isEmpty else {
    return
  }
  let sesameSession = try await SesameSession(voice: .conversationalA)
  _ = try await sesameSession.generate(for: trimmedJokeText)
}failed to build and gives me error
Cannot find 'SesameSession' in scope
How can I use SesameSession correctly? Thanks! 😃
Experiment 2
Since SesameSession does not exist in experiment 1, I tried another way basically using the model directly. And this succeed building.
import Foundation
import Swift_TTS
func speakJokeText(jokeText: String) {
  let trimmedJokeText = jokeText.trimmingCharacters(in: .whitespacesAndNewlines)
  guard !trimmedJokeText.isEmpty else {
    return
  }
  let kokoroTTSModel = KokoroTTSModel()
  kokoroTTSModel.say(trimmedJokeText, .afSarah)
}However when using, I got below error. I guess because of the model not auto download?

Metadata
Metadata
Assignees
Labels
No labels