Morse Code Translator API
Translate text to International Morse code or Morse back to text, with the playback duration at a given speed.
POST /api/v1/tools/morse-code-translatorMCP morse_code_translatorText & WritingTranslate text to Morse code and Morse back to text, with letters, numbers, punctuation and prosigns like <SK>. Play the result as audio at the speed you choose.
Input
Send these as a JSON object. Unknown fields are rejected.
- input
- Text to encode, or Morse to decode (dots and dashes, letters separated by spaces, words by / or a line break). (string, required)
- direction
- encode (text → Morse), decode (Morse → text) or auto (decode if the input is only dots, dashes, spaces and slashes). (string, one of auto, encode, decode, default "auto")
- wpm
- Speed in words per minute, used for durationMs. (integer, 5 to 60, default 20)
curl https://pithlab.com/api/v1/tools/morse-code-translator \n -H "Authorization: Bearer $PITHLAB_KEY" \n -H "Content-Type: application/json" \n -d '{"input":"SOS help","direction":"encode"}'Example response
{
"ok": true,
"result": {
"direction": "encode",
"output": "... --- ... / .... . .-.. .--.",
"unknown": [],
"durationMs": null
}
}