Surface stage, percent, and elapsed time while jobs run, and ship Compose so local confidential transcription can use faster-whisper on port 8090.
18 lines
385 B
PHP
18 lines
385 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Models\Recording;
|
|
use Illuminate\Http\JsonResponse;
|
|
|
|
class TranscriptionStatusController extends Controller
|
|
{
|
|
/**
|
|
* Live transcription progress for polling.
|
|
*/
|
|
public function __invoke(Recording $recording): JsonResponse
|
|
{
|
|
return response()->json($recording->fresh()->transcriptionStatusPayload());
|
|
}
|
|
}
|