Skip to main content

Speech

Speech provides microphone-based streaming speech recognition and AI voice conversation capabilities.

Signature:

Speech(robot: Robot, *, provider: str = "booster", **kwargs: Any) -> Speech

Description:

Create and initialize a Speech client.

Parameters:

Parameter

Type

Default

Description

robot

Robot

Required

The bound robot instance.

provider

str

"booster"

Speech service provider name; currently only "booster" is supported.

**kwargs

Any

-

Additional configuration passed to the selected provider.

Returns:

Speech

An initialized Speech instance.

Raises:

ValueError: provider is not a registered speech service provider name.

Example:

from boosteros.brain import Speech
from boosteros.robots.booster import BoosterRobot

robot = BoosterRobot()
speech = Speech(robot)