Increase max duration to 600s, fix storage key return
This commit is contained in:
@@ -690,7 +690,7 @@ export const CreatePanel: React.FC<CreatePanelProps> = ({ onGenerate, isGenerati
|
||||
<input
|
||||
type="range"
|
||||
min="-1"
|
||||
max="240"
|
||||
max="600"
|
||||
step="5"
|
||||
value={duration}
|
||||
onChange={(e) => setDuration(Number(e.target.value))}
|
||||
@@ -1180,7 +1180,7 @@ export const CreatePanel: React.FC<CreatePanelProps> = ({ onGenerate, isGenerati
|
||||
<input
|
||||
type="range"
|
||||
min="-1"
|
||||
max="240"
|
||||
max="600"
|
||||
step="5"
|
||||
value={duration}
|
||||
onChange={(e) => setDuration(Number(e.target.value))}
|
||||
|
||||
@@ -18,7 +18,7 @@ export class LocalStorageProvider implements StorageProvider {
|
||||
const filepath = path.join(this.audioDir, key);
|
||||
await mkdir(path.dirname(filepath), { recursive: true });
|
||||
await writeFile(filepath, data);
|
||||
return `/audio/${key}`;
|
||||
return key;
|
||||
}
|
||||
|
||||
async getUrl(key: string, _expiresIn?: number): Promise<string> {
|
||||
|
||||
Reference in New Issue
Block a user