Giter Site home page Giter Site logo

aphexus / pinyin-word-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from felipemarinho97/pinyin-word-api

0.0 0.0 0.0 14.36 MB

Get audio pronunciation from chinese words. ex: /api/可以

Home Page: https://pinyin-word-api.vercel.app

JavaScript 76.11% HTML 23.89%

pinyin-word-api's Introduction

pinyin-word-api

GET /api/:hanzi
Response: { url: "string" }

Get a link for a audio pronunciation of a given hanzi from Yabla.com

GET /api/audio/:hanzi
Response: Audio Blob

Get a audio pronunciation file of a given hanzi from Yabla.com

GET /api/audio/pod/:hanzi
Response: Audio Blob (From ChinesePod)

Get a audio pronunciation file of a given hanzi from ChinesePod.com

POST /api/segment
body: { text: string }
Response: { segment: string[] }

Segment the given chinese phrase into words. ex: "我在青岛市崂山区工作。" returns [ '我', '在', '青岛市', '崂山区', '工作', '。' ]

GET /api/links/:hanzi
Response: { "Wikitionary": string , "HSK Academy": string , "AllSetLearning": string }

Get links for more in depth explanation from a given word. Supported websites: Wikitionary, AllSetLearning and HSK Academy.

Author

@FelipeMarinho97

pinyin-word-api's People

Contributors

felipemarinho97 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.