import { Chat } from '@/models/Chat' ; import engines from '@/engines' ; export default function getTextFromAudio ( flacPath , chat , duration , ogaPath , userId ? , forwardedFrom ? ) { const engineObject = engines [ chat . engine ] ; return engineObject . recognize ( { flacPath , chat , duration , ogaPath , userId , forwardedFrom , } ) ; }