RF: Speech2Text internals

- cache FLAC_PATH to avoid multiple calls
- avoid 'file' as var name
- use NamedTemporaryFile for wav -> flac conversion
- remove obsolete references to core.runningThreads