JSPM

zimujun

0.1.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 9
    • Score
      100M100P100Q48933F
    • License MIT

    CLI for the coze-js-api whisper speech-to-text endpoint

    Package Exports

      This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zimujun) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

      Readme

      zimujun

      zimujun 是一个独立的 npm CLI,用来调用:

      • POST https://coze-js-api.devtool.uk/whisper/speech-to-text

      请求体固定为:

      {
        "url": "<video_url>",
        "api_key": "<from ZMJ_API_KEY>"
      }

      Install

      Run with npx

      ZMJ_API_KEY=your_key npx zimujun "https://www.douyin.com/video/7616201138244799785"

      Global install

      npm i -g zimujun
      ZMJ_API_KEY=your_key zimujun "https://www.douyin.com/video/7616201138244799785"

      Usage

      ZMJ_API_KEY=your_key zimujun <url>

      示例:

      ZMJ_API_KEY=3ZGaqPiwz8eAw5Ea6cLHtEN2 zimujun "https://www.douyin.com/video/7616201138244799785"

      Options

      • --base-url 自定义接口地址,默认是 https://coze-js-api.devtool.uk
      • --timeout 自定义超时时间,单位毫秒,默认是 600000
      • -h, --help 查看帮助

      Local development

      cd zimujun
      node bin/zimujun.js --help

      Publish to npm

      cd zimujun
      npm login
      npm publish --access public