hmdshariati / persian-nts
a Laravel Number to Speech package for Persian language
dev-master
2022-09-07 08:43 UTC
Requires
- php: >=5.5.0
- illuminate/support: >=5.2.0
This package is auto-updated.
Last update: 2025-03-07 14:23:44 UTC
README
a Laravel Number to Speech package for Persian language
Usage
use Dena\PersianNTS\PersianNTS; $audio = (new PersianNTS) ->setNumber(1000) ->toToman() ->mergeInfront(storage_path('front.mp3')) ->mergeBehind(storage_path('behind.mp3')) ->getSpeech() ->setSavePath(storage_path('temp.mp3')) ->save() ->getSavePath(); return response()->file($audio, [ "Content-Type" => "audio/mpeg" ]);