npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

baidu-reader

v1.0.7

Published

baidu-reader

Downloads

20

Readme

Baidu Reader

goto https://ai.baidu.com/ and reading https://ai.baidu.com/docs#/TTS-Online-Node-SDK/top create you self api key.

const Reader = require('baidu-reader')

const reader = Reader(
  {
    APP_ID: 'xxxxx',
    API_KEY: 'xxxxxxx',
    SECRET_KEY: 'xxxxxxxxx'
  },
  {
    save: true,
    path: __dirname
  }
)
;(async () => {
  await reader('新建一个对象,建议只保存一个对象调用服务接口')
  await reader(
    '为了使开发者更灵活的控制请求,模块提供了设置全局参数和全局请求拦截器的方法;本库发送网络请求依赖的是request模块,因此参数格式与request模块的参数相同 更多参数细节您可以参考request官方参数文档。'
  )
  await reader(null) // close
})()

api

initClient

initClient({ APP_ID, API_KEY, SECRET_KEY }) -> client

play = (next, opts, client) => async text => {}

next 是 reader 返回值

reader

命令行播放器,得到一个可以一直 push 音频数据的一个流

getMp3Data = async (text, client, opts)

拉取 MP3 数据

const saveFiles = async (datas, opts)

保存 datas 文件