1
This commit is contained in:
53
packages/shared/src/contracts/creationAudio.ts
Normal file
53
packages/shared/src/contracts/creationAudio.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
export type CreationAudioGenerationKind =
|
||||
| 'background_music'
|
||||
| 'sound_effect';
|
||||
|
||||
export interface CreationAudioAsset {
|
||||
taskId: string;
|
||||
provider: string;
|
||||
assetObjectId?: string | null;
|
||||
assetKind?: string | null;
|
||||
audioSrc: string;
|
||||
prompt?: string | null;
|
||||
title?: string | null;
|
||||
updatedAt?: string | null;
|
||||
}
|
||||
|
||||
export interface CreateBackgroundMusicRequest {
|
||||
prompt: string;
|
||||
title: string;
|
||||
tags?: string | null;
|
||||
model?: string | null;
|
||||
}
|
||||
|
||||
export interface CreateSoundEffectRequest {
|
||||
prompt: string;
|
||||
duration?: number | null;
|
||||
seed?: number | null;
|
||||
}
|
||||
|
||||
export interface AudioGenerationTaskResponse {
|
||||
kind: CreationAudioGenerationKind;
|
||||
taskId: string;
|
||||
provider: string;
|
||||
status: string;
|
||||
}
|
||||
|
||||
export interface PublishGeneratedAudioAssetRequest {
|
||||
entityKind: string;
|
||||
entityId: string;
|
||||
slot: string;
|
||||
assetKind: string;
|
||||
profileId?: string | null;
|
||||
storagePrefix?: 'puzzle_assets' | 'match3d_assets' | 'custom_world_scenes' | null;
|
||||
}
|
||||
|
||||
export interface GeneratedAudioAssetResponse {
|
||||
kind: CreationAudioGenerationKind;
|
||||
taskId: string;
|
||||
provider: string;
|
||||
status: string;
|
||||
assetObjectId?: string | null;
|
||||
assetKind?: string | null;
|
||||
audioSrc?: string | null;
|
||||
}
|
||||
Reference in New Issue
Block a user