Skip to content

fix(kokoro): own exact PCM and cancellation on mobile #46

Description

@lalalune

Problem

The Capacitor Kokoro bridge does not own the exact synthesized PCM buffer across the native boundary. Mobile callers can incur avoidable copies and cannot reliably couple cancellation to the synthesis operation, which increases time-to-audio and permits abandoned work to continue.

Required behavior

  • return the exact PCM samples and sample rate produced by Kokoro
  • avoid redundant buffer conversions/copies on the mobile path
  • propagate cancellation into the native synthesis lifecycle
  • preserve deterministic cleanup and failure reporting
  • verify the Android/NDK bridge and native tests

This is the native dependency for elizaOS/eliza#17308.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions