Morse Code Audio To Text API

Morse Code Audio To Text API - MorseSonat (or Morse Code Sound To Text API) is a cross browsers REST API supporting now also Text To Morse Audio API (as normal text) or Morse Text To Morse Audio API and it may be used by any device that can connect to Internet and send the POST requests to our API as instructed in this website: smartphones, tablets, laptops, PC Desktops, other smart devices. It uses cloud infrastructure and artificial intelligence to solve the requests. With MorseSonat you can:

  • Decode Morse Audio wav file to text with requirements for the wav file format as follows: clear sound (without noises), 150 miliseconds per each morse unit (i.e. one dit is one unit, one dash is three units, space between parts of the same letter is one unit, space between letters is three units, space between words is seven units according to International Morse Code), Linear16 (uncompressed wav file), PCM, 44100 HZ, 32 BitsPerSample, IeeeFloat Encoding, BlockAlign 8, Stereo 2 Channels
  • Decode Morse Text To Normal Text (maximum 700 chars per request) and get also the audio wav file with the format requirements from the first point.
  • Encode Normal Text To Morse Text (maximum 700 chars per request) and get also the audio wav file with the format requirements from the first point.

Allthough this Morse Code Audio To Text API is intended for software development and therefore developers, we have also here an online application that may be used to get audio files from the input text either plain text or morse code text with characters here. Morse Code Audio To Text API - The necessary steps are written below, basically for Morse Code Audio To Text API you send an authorized POST request in JSON format to the API endpoint and you get as JSON response a a link to the saved audio file if you chose so or decoded text. The output audio file encoded as Linear16 (uncompressed .wav file), PCM, 44100 HZ, 32 BitsPerSample, IeeeFloat Encoding, BlockAlign 8, Stereo 2 Channels has to be clear (without noises) and it is saved on cloud at the link you get as response from our text to morse code audio API.

You own the commercial copyright of the resulted audio file(s) with no additional fee. Morse Code Audio To Text APP or API is useful for a large number of domains like: communications, bots, smart devices, robots, messaging, call centers, enthuziasts etc.

For using our Morse Code Audio To Text API and/or APP you must create an account (free of charge, no card required), activate it from your received email, login and then start your TRIAL package with no fees as you can see at our pricing packages. After you have tested the Morse Code Audio To Text API and/or APP and you are satisfied, you may buy a paid package. You will always see at your Admin Console page the real resources consumption in real time, your invoices, you may see/edit/delete your profile or export log consents as GDPR instructed, you may read our FAQs.

Morse Code Audio To Text APP & Back

Request Type:



WAV File

Requirements for input WAV File (*):
Clear sound (without noises), 150 miliseconds per each morse unit (i.e. one dit is one unit, one dash is three units, space between parts of the same letter is one unit, space between letters is three units, space between words is seven units according to International Morse Code), Linear16 (uncompressed wav file), PCM, 44100 Hz, 32 BitsPerSample, IeeeFloat Encoding, BlockAlign 8, Stereo 2 Channels
* Our MorseSonat API produces wav audio files that complies with the requirements above. Please do not choose a file if you want to get an audio file from our API, in that case you will use Normal Text To Morse Audi API or Morse Text To Morse Audio API as instructed below.




API Endpoint (method POST):
https://gatiosoft.ro/morsesonat.aspx
Headers:
Authorization: Basic //Your username:password are base64 encoded string
Content-Type: application/json
Accept: application/json
JSON Request Body (change inputs here and see in real time below):
{
"morse_wav_file":"JHGGGGGGGH...base64 encoded...GHJBJHBGFVF",
"normal_text":"NO",
"morse_text":"NO"
}
JSON Response From API (change inputs here to see the result in real time below - the real response string is much longer than the displayed string):
{
"normal_text":"hello world",
"morse_text":"..././.-../.-../---/|.--/---/.-./.-../-..",
"audioFileURL":"Not saved remotely"
}
JSON Response (Example) From API in case of ERROR:

{
"cd":1001,
"error":"The authorization header is either empty or isn't Basic."
}

Request Parameters Table

Parameter Name
Parameter Description
morse_wav_file
This is the input base64 encoded string [String] content of the wav audio file to be converted in normal_text, also in morse_text. For each request there is a limit of 700 characters of input/output text. If you input this parameter, the other 2 parameters values described below must be set to "NO".
normal_text
This is the input with normal text [String] that has to be encoded in Morse text, also in a wav audio file that will be saved on cloud and you will get also the link to that file in order to download it. The audio wav file complies with the requirements described above. For each request there is a limit of 700 characters of input/output text. If you input this parameter, the other 2 parameters values described below and above must be set to "NO".
morse_text
This is the input with Morse text [String] that has to be decoded in normal text, also in a wav audio file that will be saved on cloud and you will get also the link to that file in order to download it. The audio wav file complies with the requirements described above. For each request there is a limit of 700 characters of input/output text. For better processing we put "/" between parts of the same letter and "|" between words. If you input this parameter, the other 2 parameters values described above must be set to "NO". A complete list of Morse International Code characters including audio samples is written on this page, just click here.

Response Parameter Table

Parameter Name
Parameter Description
normal_text
This is the output of normal text [String] that has been obtained as a result to encoded Morse text input or wav audio file input.
morse_text
This is the output of Morse text [String] that has been obtained as a result to normal text input or wav audio file input.
audioFileURL
This is the output link to the cloud saved audio file which may be downloaded locally if you used normal_text input or morse_text input.

Response Error Codes Table

Parameter Name
Parameter Description
cd

This is the error code which may be:

  • 1001
  • 1002
  • 1003
  • 1004
  • 1005
  • 1006
  • 1007
  • 1008
  • 1009
  • 1010
  • 1011
  • 1012
  • 1013
  • 1014
  • 1015
  • 1016
  • 2001
description

This is the description of the error code which may be:

  • 1001 - The authorization header is either empty or isn't Basic.
  • 1002 - Daily requests number exceeded in TRIAL mode!
  • 1003 - Trial expired!
  • 1004 - Characters number exceeded!
  • 1005 - Package expired!
  • 1006 - No invoice!
  • 1007 - Reader is NULL for TRIAL!
  • 1008 - Cannot Read if TRIAL exists!
  • 1009 - Error connecting to database looking for TRIAL! (and a detailed description message of the encountered error)
  • 1010 - Reader is NULL for Invoice!
  • 1011 - Cannot Read if Invoice exists!
  • 1012 - Error connecting to database! (and a detailed description message of the encountered error)
  • 1013 - Input request string too long! Maximum 700 characters per request are allowed
  • 1014 - Invalid request data! (and a detailed description message of the encountered error)
  • 1015 - Cannot initialize BLOB permissions for saving audio file! (and a detailed description message of the encountered error)
  • 1016 - Cannot create and save the audio file! (and a detailed description message of the encountered error)
  • 2001 - Invalid request data after passing to the API (and a detailed description message of the encountered error)

Morse International Code

The rules of International Morse Code are as foillows: a dit is one unit, a dash is three units, the space between parts of the same letter is is one unit, the space between letters is three units and the space between words is seven units. Regarding Morse text input, for an easy processing we put and require using "/" between letters of the same word and we put and require using of "|" between words.

a .-
b -...
c -.-.
d -..
e .
f ..-.
g --.
h ....
i ..
j .---
k -.-
l .-..
m --
n -.
o ---
p .--.
q --.-
r .-.
s ...
t -
u ..-
v ...-
w .--
x -..-
y -.--
z --..
1 .----
2 ..---
3 ...--
4 ....-
5 .....
6 -....
7 --...
8 ---..
9 ----.
0 -----

Source Code Examples for Using Our Morse Code Audio To Text API

                       
Imports System.IO
Imports System.Net
Imports System.Web.Script.Serialization

Public Class morse_code_audio_to_text_api
    Inherits System.Web.UI.Page 
    Public Structure RequestFields
        Dim morse_wav_file As String
        Dim normal_text As String
        Dim morse_text As String
    End Structure
    
    Public Structure ResponseField
        Dim normal_text As String
        Dim morse_text As String
        Dim audioFileURL As String
    End Structure

    Public Structure ErrorFields
        Dim cd As String
        Dim description As String
    End Structure
    
Protected Sub SendRequest()
        Dim Client As WebClient = New WebClient()
        Dim credentials As String = Convert.ToBase64String(Encoding.ASCII.GetBytes("your_username:your_password"))
        Client.Headers(HttpRequestHeader.Authorization) = String.Format("Basic {0}", credentials)
        Client.Headers(HttpRequestHeader.Accept) = "application/json"
        Client.Headers(HttpRequestHeader.ContentType) = "application/json"
        Client.BaseAddress = "https://gatiosoft.ro/morsesonat.aspx"
        Dim j As RequestFields = New RequestFields()
        j.morse_wav_file = "UYGUYFGFUUHK...base64 encoded...JHUIHGGG" 
        j.normal_text="NO" 
        j.morse_text = "NO"
        
        Try
            Dim js As String = (New JavaScriptSerializer()).Serialize(j)
            Dim reqString As Byte() = Encoding.[UTF8].GetBytes(js)
            Dim url As Uri = New Uri(Client.BaseAddress)
            Dim resByte As Byte() = Client.UploadData(url, "post", reqString)
            'The resString below is your needed JSON output
            Dim resString As String = Encoding.[UTF8].GetString(resByte)
            If Instr(resString,"normal_text") >0 Then 'In case we got it right without errors
               Dim r as ResponseField = New ResponseField()
               Dim j1 As JavaScriptSerializer = New JavaScriptSerializer()
               'Below we find in r.audioFileURL the link to wav audio file which may be
               'used as source for html5 Audio control for example and play the file.
               r = j1.Deserialize(Of ResponseField)(resString)
            Else 'So in case of error occurence
               Dim e as ErrorFields = New ErrorFields()
               Dim j2 As JavaScriptSerializer = New JavaScriptSerializer()
               'Below we find in e.cd (error code) and e.description (error description)
               e = j1.Deserialize(Of ErrorFields)(resString)
            End If
            Client.Dispose()
        Catch exception As System.Exception
            Dim ex As System.Exception = exception
            Console.Writeline("ERROR: " & ex.Message)
        End Try
    End Sub
End Class



MorseSonat Online Video Presentation

Morse Code Audio To Text online, MorseSonat, is in the video presentation below. Our Morse Code Audio To Text API or Morse Code Text To Audio functions as a translator. This Morse Sound To text API is for users and developers, Other searches of interested people on this issue are: morse code text to sound, morse audio to text converter, morse audio to text decoder..

 



Pricing Packages

Please choose one of the below pricing packages for start using our Morse Code Audio To Text API and online APP!

Start TRIAL
No catches

  • 7 days TRIAL
  • Use our cloud REST API and online APP
  • Maximum 700 characters per each request
  • Maximum 50 requests per DAY in trial period
  • You do NOT own the commercial copyright of the resulted audio file(s) in trial period.
  • Get audio file uncompressed as Linear16 format (.wav)
  • Get normal text
  • Get morse encoded text
  • Administration console
  • Support through online chat and/or tickets
  • We do NOT allow spam accounts for TRIAL



Monthly TIER
Popular

  • 95 USD per month
  • Use our cloud REST API and online APP
  • Maximum 700 characters per each request(*)
  • Maximum 50 requests per MINUTE
  • You own the commercial copyright of the resulted audio file(s) with NO additional fee.
  • Maximum 1.000.000 input characters per MONTH
  • Get audio file uncompressed as Linear16 format (.wav)
  • Get normal text
  • Get morse encoded text
  • Administration console
  • Support through online chat and/or tickets




Yearly TIER
(15% Discount)

  • 969 USD per year
  • Use our cloud REST API and online APP
  • Maximum 700 characters per each request(*)
  • Maximum 50 requests per MINUTE
  • You own the commercial copyright of the resulted audio file(s) with NO additional fee.
  • Maximum 1.000.000 input characters per MONTH
  • Get audio file uncompressed as Linear16 format (.wav)
  • Get normal text
  • Get morse encoded text
  • Administration console
  • Support through online chat and/or tickets




Note: VAT rate may be added or not, function to your country and/or if you are a taxable person or company.
* For enterprise tier please contact us through our chat window to get a personalized offer!