@openfloor/protocol - v0.0.4
    Preparing search index...

    Function createTextUtterance

    • Creates a simple text utterance event

      Parameters

      • options: {
            confidence?: number;
            lang?: string;
            speakerUri: string;
            text: string;
            to?: { private?: boolean; serviceUrl?: string; speakerUri?: string };
        }

        Utterance options

      Returns UtteranceEvent

      UtteranceEvent instance

      const utterance = createTextUtterance({
      speakerUri: 'tag:example.com,2025:user1',
      text: 'Hello world',
      to: { speakerUri: 'tag:example.com,2025:bot1' }
      });