locaal-ai / obs-localvocal

OBS plugin for local speech recognition and captioning using AI
https://obsproject.com/forum/resources/localvocal-live-stream-ai-assistant.1769/
GNU General Public License v2.0
440 stars 35 forks source link

OBS split file, with renaming of .srt to filename #137

Open TheTawnyFool opened 2 months ago

TheTawnyFool commented 2 months ago

This would be a nice enhancement. OBS has a split file under Output->Recording. There is an option to split by time or hotkey. When this happens OBS stops the current recording and creates a new one immediately with a new filename. I believe this exists to create a frame perfect split in the output, as opposed to stop recording then start recording, which would miss some frames.

I use this option quite often and notices that the .srt files do not get split. The one .srt file created does however seem to contain all the info from all split files after recording is started, so I believe it just does not see the event/callback of the filenames changing. I do not see a callback in the API for this functionality.

There is a callback to initiate the split in OBS, which with some hotkey code could create a workaround perhaps for the LocalVocal code to do a hotkey split and work with the .srt (bool obs_frontend_recording_split_file(void)) This might be out of the scope of the plugin.

If so might be worth mentioning in the docs somewhere about this limitation.

Thank you!!!