Converting mp4 to text

Good day,

Can I extract audio from an MP4 file and convert it to text?

Thanks

1 Like

You could do it with Python (also with Python script nodes in KNIME)
br

Hi @mmays and welcome to the forum.

There is this (older) example from the KNIME Hub, but if I recall the nodes used for speech to text require paid credentials to external services:

3 Likes

@Daniel_Weikert and @ScottF thank you for your help, I was able to execute in python with the following code:

from os import path
from pydub import AudioSegment

src = “transcript.mp3”
dst = “test.wav”

sound = AudioSegment.from_mp3(src)
sound.export(dst, format=“wav”)

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.