Nearsighted Paramecium Multiverse

    @aws-sdk/polly-request-presigner
    TypeScript icon, indicating that this package has built-in type declarations

    3.264.0 • Public • Published

    @aws-sdk/polly-request-presigner

    NPM version NPM downloads

    This package provides a presigner based on signature V4 that will attempt to generate signed url for polly audio.

    Get Presigned URL with Client and Command

    Example Usage:

    import { Polly, PollyClient } from "@aws-sdk/client-polly";
    
    import { getSynthesizeSpeechUrl } from "@aws-sdk/polly-request-presigner";
    
    const synthesizeSpeechParams = {
      Text: "Hello world, the polly presigner is really cool!",
      OutputFormat: "mp3",
      VoiceId: "Kimberly",
    };
    
    // Synthesize with full polly.
    (async () => {
      let url = await getSynthesizeSpeechUrl({
        client: new Polly({ region: "us-east-1" }),
        params: synthesizeSpeechParams,
      });
      console.log(url);
    })();
    
    // Synthesize with polly client.
    (async () => {
      let url = await getSynthesizeSpeechUrl({
        client: new PollyClient({ region: "us-east-1" }),
        params: synthesizeSpeechParams,
      });
      console.log(url);
    })();

    Keywords

    none

    Install

    npm i @aws-sdk/polly-request-presigner

    DownloadsWeekly Downloads

    7,147

    Version

    3.264.0

    License

    Apache-2.0

    Unpacked Size

    23.3 kB

    Total Files

    19

    Last publish

    Collaborators

    • mattsb42-aws
    • kuhe
    • amzn-oss
    • aws-sdk-bot
    • trivikr-aws