- Notifications
You must be signed in to change notification settings - Fork22
Send Morse code via ⏮️ ⏸️ ⏯️
EtherDream/headphone-morse-transmitter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Many headphones can send ⏮️ ⏸️ ⏯️ commands, such as Airpods, with a single press to pause or resume, double press to play the next track, and triple press to play the previous track.
Using this feature, we can use headphones as morse transmitters.
https://etherdream.github.io/headphone-morse-transmitter/
Due to browser limitations, you must click anywhere to init the audio (which plays an almost silent BGM) so that the headphone command can be received.
Please close the other players first, otherwise the headphone command may not be sent to this page. If the page still can't receive the headphone command, you can clickDebug
to check if the audio is playing, if not, you can play it manually.
demo.mp4
The sound in this video comes from headphones, so it's very light.
⏸️ = dit (.)
⏯️ = dah (-)
⏮️ = flush or backspace
When ⏮️ is pressed, ifInput
buffer is not empty, it will be flush immediately; otherwise, it is equivalent to the backspace key, which is used to delete the last character ofWords
.
WhenDelay
time has passed since the last key press,Input
buffer will be flush automatically.
This program supportsInternational Morse Code,Wabun Code,Chinese telegraph code and some private features.
<AA>
: New line (.-.-
)<HH>
: Delete the last line (.
x8)<DO>
: Change to Wabun Code (-..---
)<SN>
: Return to International Code (...-.
)\d{2,4}
: Input 2~4 digits and output 1 Chinese character.Refer to theChinese telegraph code/Mainland 1983.
<SS>
: Say the last line (.
x6)<LO>
: Change to lowercase/hiragana (.-..---
)<UP>
: Change to uppercase/katakana (..-.--.
)<SP>
: Add a space (....--.
)<X>
+ kana = small kana (-..- ?
)Supports
っ ゃゅょ ぁぃぅぇぉ ゕゖ
and the corresponding katakana.
If you don't want to use a headphone, you can also use ⏮️ ⏸️ ⏯️ keys on your keyboard, which is actually faster:
keyboard.mp4
Alternatively, you can click ⏮️ ⏸️ ⏯️ buttons in the media control popup.
media-popup.mp4
This program can run in the background, even if the browser is minimized or the screen is locked. So you can use this program on your phone to practice Morse code, using only your fingers and ears, without eyes!
114514.mp4
About
Send Morse code via ⏮️ ⏸️ ⏯️
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.