Skip to content

felipemarinho97/pinyin-word-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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