Jump to content

Recommended Posts

Posted

Hello 2600Hz,

Are you planning to allow audio upload of MPEG 4 audio file format .m4a in the near future? 

Most of our customers continue to send us .m4a audio files as this seems to be the norm these day and we end up having to convert them for upload to PBX even though we ask them to send .mp3 files.  

Thanks for your attention.

  • 7 months later...
Posted

Thought I'd try uploading a .m4a audio file today but this is still not an option.   Will 2600Hz be allowing the latest audio files in the future, soon?

Oops! Something went wrong!
Invalid Data:
"content_type": Value not found in enumerated list of values
More Information
Request ID: 527db12654d8ca63a52294da7b2bee48
POST //ui.zswitch.net/v2/accounts/52f6f2a22319f46160fec6aeaf41e785/media/29e3e71b8737af790c456f32b2775806/raw
 
Date: Tue Jan 12 2021 10:47:00 GMT-0600 (Central Standard Time) | URL: POST //ui.zswitch.net/v2/accounts/52f6f2a22319f46160fec6aeaf41e785/media/29e3e71b8737af790c456f32b2775806/raw | Message: Invalid Data:<br/>"content_type": Value not found in enumerated list of values | API Response {
    "version": "5.0.43",
    "timestamp": "2021-01-12T16:44:19Z",
    "node": "MOMi6ODR9aqwFBiNlZYxgQ",
    "request_id": "527db12654d8ca63a52294da7b2bee48",
    "tokens": {
        "consumed": 1,
        "remaining": 100
    },
    "auth_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImM2M2I1NjY5YmE0NTQzZWVmMTE5OTc3ZTUyNDYxYzRlIn0.eyJpc3MiOiJrYXpvbyIsImlkZW50aXR5X3NpZyI6IlFFc3BrSlVXYmNaYlI4aldHRWNrdUZscnhwam9oSlhLMG5wb2ZrUXA3MWsiLCJhY2NvdW50X2lkIjoiODJhYjM2MGEwY2MyOTE5MTBhMTU2ZmEzMzlhNDRmMmYiLCJvd25lcl9pZCI6ImQ2NTgxZDAwMDE3MGRjZjFhMjFhMTg4MDY3YzExZDdmIiwibWV0aG9kIjoiY2JfdXNlcl9hdXRoIiwiZXhwIjoxNjEwNDc1NzMwfQ.cpSH7zp3OAuH1sVc4oqYVvPHA1RU7oriU0vTe-ORCG-Tdqy2NKYQPjC4HdvJOaCIx1ANmtPlU5d5O_sssmntrLhpTzU873dr8RU46eQIOS4u_9otVVcRIaX3sY9xxmzBa1P2EwJd6NTzqi1__lVfIBDJF_SO9Fn_U0dCqmQ-ZCeX5UrbKgBfxDM_PWJtzVyyLqnuUX2cwrj-EQMfHYnYEa8vkuX0KekqqtDR-KwCRXFnV73bMF311Ac_zMjCk--Uimp8JLTGUHtfn48gr0IQ1jlA0Eo63NecQbxJ2LrfcjyVi3YEPICInfH_KdweFeEU80JIdK444bPKRmG8aNavSg",
    "data": {
        "content_type": {
            "enum": {
                "message": "Value not found in enumerated list of values",
                "target": [
                    "audio/mp3",
                    "audio/mpeg",
                    "audio/mpeg3",
                    "audio/x-wav",
                    "audio/wav",
                    "audio/ogg",
                    "video/x-flv",
                    "video/h264",
                    "video/mpeg",
                    "video/quicktime",
                    "video/mp4",
                    "video/webm"
                ],
                "value": "audio/x-m4a"
            }
        }
    },
    "error": "400",
    "message": "validation error",
    "status": "error"
}
Posted
4 minutes ago, mc_ said:

audio/x-m4a is NOT a valid mime type: https://www.iana.org/assignments/media-types/media-types.xhtml

As far as I can tell, it is proprietary to iOS. Hard to say if FreeSWITCH supports it - likely need to use mod_vlc to do so which I don't believe is installed typically.

Is there any possibility of 2600 introducing a conversion tool? As per the OP as well as my earlier post, it would be fantastic to be able to upload a variety of formats and have them automatically re-encode to the correct bitrate, format, and sample rate. Would save us a lot of time 🙂

  • Administrators
Posted

The process is straightforward with ffmpeg.

KAZOO does have some normalization routines, mostly for mp3<->wav normalizations. You could certainly sponsor work to support more source formats to normalize.

×
×
  • Create New...