Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 908 Bytes

README.md

File metadata and controls

31 lines (19 loc) · 908 Bytes

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