Phonetic Alphabet – Python Package

Programming, Python

I needed a way to read aviation reports out loud properly, so I built a python package to convert acronyms to their phonetic equivalents.

About The Project

The python phonetic-alphabet package allows you to easily convert aircraft callsigns, airport codes, and anything else you might need into their phonetic equivalents. It even handles the conversion of “9” to “niner”.

I built this package as a dependency for the FlyToday google assistant action. It allows the code for FlyToday to remain simple, and not worry about proper pronunciation for aviation terminology.

 

Example Use


import phonetic_alphabet as alpha

call_sign = 'CF-ABC'
response = alpha.read(call_sign)
>>> CHARLIE FOXTROT - ALPHA BRAVO CHARLIE

 


import phonetic_alphabet as alpha

heading = 290
response = alpha.read(heading)
>>> TWO NINER ZERO

Pull requests and feature-adds are always welcome.

Recent Projects