My `wrangler.toml` defines `AUDIO_PROCESSOR` as a Durable Object, and the code uses this.env.AI,

My
wrangler.toml
defines AUDIO_PROCESSOR as a Durable Object, and the code uses this.env.AI,


# Define the Durable Objects
[[durable_objects.bindings]]
name = "AUDIO_PROCESSOR"
class_name = "AudioProcessor"

# External DO binding for LLM worker
[[durable_objects.bindings]]
name = "LLM_PROCESSOR"
class_name = "LlmProcessor"
script_name = "llm"

# Add queue consumers with explicit handler functions
[[queues.consumers]]

[vars]


# Define the Durable Object class
[[migrations]]
tag = "v1"
new_classes = ["AudioProcessor"]

[[kv_namespaces]]


[[d1_databases]]


[[queues.consumers]]


[[queues.producers]]


[ai]
binding = "AI"

[observability]
enabled = true
head_sampling_rate = 1


i removed the other bindings that were not relevant....



The sample code provided for Typsescipt uses the api only
https://developers.cloudflare.com/workers-ai/models/whisper-large-v3-turbo/

So im kinda confused and vibing use groq and claude to find the right way to do it thx
Cloudflare Docs
Whisper is a pre-trained model for automatic speech recognition (ASR) and speech translation.
Was this page helpful?