Batch uploads were only storing files as pending without dispatching Whisper jobs; queue them immediately, add a bulk pending action, and show human-readable status labels.
23 lines
626 B
PHP
23 lines
626 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Http\Requests\TranscribeRecordingRequest;
|
|
use App\Models\Recording;
|
|
use Illuminate\Http\RedirectResponse;
|
|
|
|
class TranscribeController extends Controller
|
|
{
|
|
/**
|
|
* Queue local faster-whisper transcription for the recording.
|
|
*
|
|
* Always allowed: stops any current run first, then starts a new one.
|
|
*/
|
|
public function __invoke(TranscribeRecordingRequest $request, Recording $recording): RedirectResponse
|
|
{
|
|
$recording->queueLocalTranscription();
|
|
|
|
return back()->with('success', 'Transcription started. Progress updates below.');
|
|
}
|
|
}
|