@scalemule/sdk 0.0.48 → 0.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +95 -2
- package/dist/index.d.ts +95 -2
- package/dist/index.js +33 -1
- package/dist/index.mjs +32 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4630,7 +4630,7 @@ declare class PhotoService extends ServiceModule {
|
|
|
4630
4630
|
}
|
|
4631
4631
|
|
|
4632
4632
|
/**
|
|
4633
|
-
* Audio service — typed wrapper over `/v1/
|
|
4633
|
+
* Audio service — typed wrapper over `/v1/audio`.
|
|
4634
4634
|
*
|
|
4635
4635
|
* Phase 5 MVP scope:
|
|
4636
4636
|
* - `uploadViaStorage()` — presigned-direct-to-S3 upload + register flow,
|
|
@@ -4704,6 +4704,98 @@ declare class AudioService extends ServiceModule {
|
|
|
4704
4704
|
}, requestOptions?: RequestOptions): Promise<ApiResponse<AudioUploadViaStorageResult>>;
|
|
4705
4705
|
}
|
|
4706
4706
|
|
|
4707
|
+
type TtsAccessMode = 'owner_private' | 'tenant_shared' | 'public';
|
|
4708
|
+
type TtsSpeechProfile = 'private_default' | 'developer_summary' | 'public_blog' | 'enterprise_strict';
|
|
4709
|
+
interface TtsAudioInfo {
|
|
4710
|
+
id: string;
|
|
4711
|
+
status: string;
|
|
4712
|
+
access_mode: TtsAccessMode;
|
|
4713
|
+
codec?: string | null;
|
|
4714
|
+
duration_ms?: number | null;
|
|
4715
|
+
bit_rate_kbps?: number | null;
|
|
4716
|
+
waveform_peaks?: unknown;
|
|
4717
|
+
url?: string | null;
|
|
4718
|
+
expires_at?: string | null;
|
|
4719
|
+
}
|
|
4720
|
+
interface TtsSpeechMetadata {
|
|
4721
|
+
speech_profile: TtsSpeechProfile;
|
|
4722
|
+
speech_profile_version: string;
|
|
4723
|
+
prepared_char_count: number;
|
|
4724
|
+
}
|
|
4725
|
+
interface TtsSynthesizeReadyResult {
|
|
4726
|
+
status: 'ready';
|
|
4727
|
+
audio_id: string;
|
|
4728
|
+
cached: boolean;
|
|
4729
|
+
provider: string;
|
|
4730
|
+
chunks: number;
|
|
4731
|
+
speech_profile: TtsSpeechMetadata['speech_profile'];
|
|
4732
|
+
speech_profile_version: TtsSpeechMetadata['speech_profile_version'];
|
|
4733
|
+
prepared_char_count: TtsSpeechMetadata['prepared_char_count'];
|
|
4734
|
+
access_mode: TtsAccessMode;
|
|
4735
|
+
audio: TtsAudioInfo;
|
|
4736
|
+
}
|
|
4737
|
+
interface TtsSynthesizeQueuedResult {
|
|
4738
|
+
status: 'queued';
|
|
4739
|
+
job_id: string;
|
|
4740
|
+
speech_profile: TtsSpeechMetadata['speech_profile'];
|
|
4741
|
+
speech_profile_version: TtsSpeechMetadata['speech_profile_version'];
|
|
4742
|
+
prepared_char_count: TtsSpeechMetadata['prepared_char_count'];
|
|
4743
|
+
}
|
|
4744
|
+
type TtsSynthesizeResult = TtsSynthesizeReadyResult | TtsSynthesizeQueuedResult;
|
|
4745
|
+
interface TtsJobStatus {
|
|
4746
|
+
id: string;
|
|
4747
|
+
access_mode: TtsAccessMode;
|
|
4748
|
+
provider: string;
|
|
4749
|
+
voice: string;
|
|
4750
|
+
model: string;
|
|
4751
|
+
format: string;
|
|
4752
|
+
status: 'queued' | 'chunking' | 'synthesizing' | 'concatenating' | 'ready' | 'failed';
|
|
4753
|
+
chunk_total: number;
|
|
4754
|
+
chunk_done: number;
|
|
4755
|
+
audio_id?: string | null;
|
|
4756
|
+
audio?: TtsAudioInfo | null;
|
|
4757
|
+
error?: string | null;
|
|
4758
|
+
created_at: string;
|
|
4759
|
+
updated_at: string;
|
|
4760
|
+
}
|
|
4761
|
+
interface TtsVoice {
|
|
4762
|
+
provider: string;
|
|
4763
|
+
id: string;
|
|
4764
|
+
display_name: string;
|
|
4765
|
+
language?: string | null;
|
|
4766
|
+
gender?: string | null;
|
|
4767
|
+
preview_url?: string | null;
|
|
4768
|
+
}
|
|
4769
|
+
interface TtsVoicesResponse {
|
|
4770
|
+
provider: string;
|
|
4771
|
+
voices: TtsVoice[];
|
|
4772
|
+
}
|
|
4773
|
+
interface TtsSynthesizeParams {
|
|
4774
|
+
text: string;
|
|
4775
|
+
/**
|
|
4776
|
+
* Built-in narration profile:
|
|
4777
|
+
* - private_default: pasted prose and private summaries
|
|
4778
|
+
* - developer_summary: technical summaries with safe spoken rewrites
|
|
4779
|
+
* - public_blog: public article narration
|
|
4780
|
+
* - enterprise_strict: stricter redaction for sensitive identifiers
|
|
4781
|
+
*/
|
|
4782
|
+
speechProfile?: TtsSpeechProfile;
|
|
4783
|
+
voice?: string;
|
|
4784
|
+
model?: string;
|
|
4785
|
+
provider?: string;
|
|
4786
|
+
async?: boolean;
|
|
4787
|
+
accessMode?: TtsAccessMode;
|
|
4788
|
+
}
|
|
4789
|
+
interface TtsListVoicesParams {
|
|
4790
|
+
provider?: string;
|
|
4791
|
+
}
|
|
4792
|
+
declare class TtsService extends ServiceModule {
|
|
4793
|
+
protected basePath: string;
|
|
4794
|
+
synthesize(params: TtsSynthesizeParams, options?: RequestOptions): Promise<ApiResponse<TtsSynthesizeResult>>;
|
|
4795
|
+
getJob(id: string, options?: RequestOptions): Promise<ApiResponse<TtsJobStatus>>;
|
|
4796
|
+
listVoices(params?: TtsListVoicesParams, options?: RequestOptions): Promise<ApiResponse<TtsVoicesResponse>>;
|
|
4797
|
+
}
|
|
4798
|
+
|
|
4707
4799
|
/**
|
|
4708
4800
|
* Queue Service Module
|
|
4709
4801
|
*
|
|
@@ -6429,6 +6521,7 @@ declare class ScaleMule {
|
|
|
6429
6521
|
readonly functions: FunctionsService;
|
|
6430
6522
|
readonly photo: PhotoService;
|
|
6431
6523
|
readonly audio: AudioService;
|
|
6524
|
+
readonly tts: TtsService;
|
|
6432
6525
|
readonly flagContent: FlagContentService;
|
|
6433
6526
|
readonly creatorMaker: CreatorMakerService;
|
|
6434
6527
|
readonly compliance: ComplianceService;
|
|
@@ -6503,4 +6596,4 @@ declare class ScaleMule {
|
|
|
6503
6596
|
getClient(): ScaleMuleClient;
|
|
6504
6597
|
}
|
|
6505
6598
|
|
|
6506
|
-
export { type AccountBalance, type AccountSwitcherPrivacy, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, type Conversation, type CostReportDay, type CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, type Credential, type CredentialScope, type Customer, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DeviceInfo, type DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type JoinCallResponse, type KnownAccount, type KnownAccountDisplay, type Leaderboard, type LeaderboardEntry, LeaderboardService, type Like, type ListNotificationsParams, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, type MediaPolicy, type MessageCallback, type MessagePin, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type Notification, type NotificationListResponse, NotificationsService, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type PinnedMessagesResponse, type Pipeline, type PipelineVersion, type Policy, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type ReadStatus, RealtimeService, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SearchUsersParams, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StorageSettings, type StrategyResult, type StylePreset, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type UnreadCountResponse, type UpdateFlagRequest, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type WebrtcStats, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, extractClientContext, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
|
|
6599
|
+
export { type AccountBalance, type AccountSwitcherPrivacy, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, type Conversation, type CostReportDay, type CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, type Credential, type CredentialScope, type Customer, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DeviceInfo, type DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type JoinCallResponse, type KnownAccount, type KnownAccountDisplay, type Leaderboard, type LeaderboardEntry, LeaderboardService, type Like, type ListNotificationsParams, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, type MediaPolicy, type MessageCallback, type MessagePin, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type Notification, type NotificationListResponse, NotificationsService, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type PinnedMessagesResponse, type Pipeline, type PipelineVersion, type Policy, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type ReadStatus, RealtimeService, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SearchUsersParams, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StorageSettings, type StrategyResult, type StylePreset, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type TtsAccessMode, type TtsAudioInfo, type TtsJobStatus, type TtsListVoicesParams, TtsService, type TtsSpeechMetadata, type TtsSpeechProfile, type TtsSynthesizeParams, type TtsSynthesizeQueuedResult, type TtsSynthesizeReadyResult, type TtsSynthesizeResult, type TtsVoice, type TtsVoicesResponse, type UnreadCountResponse, type UpdateFlagRequest, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type WebrtcStats, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, extractClientContext, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
|
package/dist/index.d.ts
CHANGED
|
@@ -4630,7 +4630,7 @@ declare class PhotoService extends ServiceModule {
|
|
|
4630
4630
|
}
|
|
4631
4631
|
|
|
4632
4632
|
/**
|
|
4633
|
-
* Audio service — typed wrapper over `/v1/
|
|
4633
|
+
* Audio service — typed wrapper over `/v1/audio`.
|
|
4634
4634
|
*
|
|
4635
4635
|
* Phase 5 MVP scope:
|
|
4636
4636
|
* - `uploadViaStorage()` — presigned-direct-to-S3 upload + register flow,
|
|
@@ -4704,6 +4704,98 @@ declare class AudioService extends ServiceModule {
|
|
|
4704
4704
|
}, requestOptions?: RequestOptions): Promise<ApiResponse<AudioUploadViaStorageResult>>;
|
|
4705
4705
|
}
|
|
4706
4706
|
|
|
4707
|
+
type TtsAccessMode = 'owner_private' | 'tenant_shared' | 'public';
|
|
4708
|
+
type TtsSpeechProfile = 'private_default' | 'developer_summary' | 'public_blog' | 'enterprise_strict';
|
|
4709
|
+
interface TtsAudioInfo {
|
|
4710
|
+
id: string;
|
|
4711
|
+
status: string;
|
|
4712
|
+
access_mode: TtsAccessMode;
|
|
4713
|
+
codec?: string | null;
|
|
4714
|
+
duration_ms?: number | null;
|
|
4715
|
+
bit_rate_kbps?: number | null;
|
|
4716
|
+
waveform_peaks?: unknown;
|
|
4717
|
+
url?: string | null;
|
|
4718
|
+
expires_at?: string | null;
|
|
4719
|
+
}
|
|
4720
|
+
interface TtsSpeechMetadata {
|
|
4721
|
+
speech_profile: TtsSpeechProfile;
|
|
4722
|
+
speech_profile_version: string;
|
|
4723
|
+
prepared_char_count: number;
|
|
4724
|
+
}
|
|
4725
|
+
interface TtsSynthesizeReadyResult {
|
|
4726
|
+
status: 'ready';
|
|
4727
|
+
audio_id: string;
|
|
4728
|
+
cached: boolean;
|
|
4729
|
+
provider: string;
|
|
4730
|
+
chunks: number;
|
|
4731
|
+
speech_profile: TtsSpeechMetadata['speech_profile'];
|
|
4732
|
+
speech_profile_version: TtsSpeechMetadata['speech_profile_version'];
|
|
4733
|
+
prepared_char_count: TtsSpeechMetadata['prepared_char_count'];
|
|
4734
|
+
access_mode: TtsAccessMode;
|
|
4735
|
+
audio: TtsAudioInfo;
|
|
4736
|
+
}
|
|
4737
|
+
interface TtsSynthesizeQueuedResult {
|
|
4738
|
+
status: 'queued';
|
|
4739
|
+
job_id: string;
|
|
4740
|
+
speech_profile: TtsSpeechMetadata['speech_profile'];
|
|
4741
|
+
speech_profile_version: TtsSpeechMetadata['speech_profile_version'];
|
|
4742
|
+
prepared_char_count: TtsSpeechMetadata['prepared_char_count'];
|
|
4743
|
+
}
|
|
4744
|
+
type TtsSynthesizeResult = TtsSynthesizeReadyResult | TtsSynthesizeQueuedResult;
|
|
4745
|
+
interface TtsJobStatus {
|
|
4746
|
+
id: string;
|
|
4747
|
+
access_mode: TtsAccessMode;
|
|
4748
|
+
provider: string;
|
|
4749
|
+
voice: string;
|
|
4750
|
+
model: string;
|
|
4751
|
+
format: string;
|
|
4752
|
+
status: 'queued' | 'chunking' | 'synthesizing' | 'concatenating' | 'ready' | 'failed';
|
|
4753
|
+
chunk_total: number;
|
|
4754
|
+
chunk_done: number;
|
|
4755
|
+
audio_id?: string | null;
|
|
4756
|
+
audio?: TtsAudioInfo | null;
|
|
4757
|
+
error?: string | null;
|
|
4758
|
+
created_at: string;
|
|
4759
|
+
updated_at: string;
|
|
4760
|
+
}
|
|
4761
|
+
interface TtsVoice {
|
|
4762
|
+
provider: string;
|
|
4763
|
+
id: string;
|
|
4764
|
+
display_name: string;
|
|
4765
|
+
language?: string | null;
|
|
4766
|
+
gender?: string | null;
|
|
4767
|
+
preview_url?: string | null;
|
|
4768
|
+
}
|
|
4769
|
+
interface TtsVoicesResponse {
|
|
4770
|
+
provider: string;
|
|
4771
|
+
voices: TtsVoice[];
|
|
4772
|
+
}
|
|
4773
|
+
interface TtsSynthesizeParams {
|
|
4774
|
+
text: string;
|
|
4775
|
+
/**
|
|
4776
|
+
* Built-in narration profile:
|
|
4777
|
+
* - private_default: pasted prose and private summaries
|
|
4778
|
+
* - developer_summary: technical summaries with safe spoken rewrites
|
|
4779
|
+
* - public_blog: public article narration
|
|
4780
|
+
* - enterprise_strict: stricter redaction for sensitive identifiers
|
|
4781
|
+
*/
|
|
4782
|
+
speechProfile?: TtsSpeechProfile;
|
|
4783
|
+
voice?: string;
|
|
4784
|
+
model?: string;
|
|
4785
|
+
provider?: string;
|
|
4786
|
+
async?: boolean;
|
|
4787
|
+
accessMode?: TtsAccessMode;
|
|
4788
|
+
}
|
|
4789
|
+
interface TtsListVoicesParams {
|
|
4790
|
+
provider?: string;
|
|
4791
|
+
}
|
|
4792
|
+
declare class TtsService extends ServiceModule {
|
|
4793
|
+
protected basePath: string;
|
|
4794
|
+
synthesize(params: TtsSynthesizeParams, options?: RequestOptions): Promise<ApiResponse<TtsSynthesizeResult>>;
|
|
4795
|
+
getJob(id: string, options?: RequestOptions): Promise<ApiResponse<TtsJobStatus>>;
|
|
4796
|
+
listVoices(params?: TtsListVoicesParams, options?: RequestOptions): Promise<ApiResponse<TtsVoicesResponse>>;
|
|
4797
|
+
}
|
|
4798
|
+
|
|
4707
4799
|
/**
|
|
4708
4800
|
* Queue Service Module
|
|
4709
4801
|
*
|
|
@@ -6429,6 +6521,7 @@ declare class ScaleMule {
|
|
|
6429
6521
|
readonly functions: FunctionsService;
|
|
6430
6522
|
readonly photo: PhotoService;
|
|
6431
6523
|
readonly audio: AudioService;
|
|
6524
|
+
readonly tts: TtsService;
|
|
6432
6525
|
readonly flagContent: FlagContentService;
|
|
6433
6526
|
readonly creatorMaker: CreatorMakerService;
|
|
6434
6527
|
readonly compliance: ComplianceService;
|
|
@@ -6503,4 +6596,4 @@ declare class ScaleMule {
|
|
|
6503
6596
|
getClient(): ScaleMuleClient;
|
|
6504
6597
|
}
|
|
6505
6598
|
|
|
6506
|
-
export { type AccountBalance, type AccountSwitcherPrivacy, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, type Conversation, type CostReportDay, type CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, type Credential, type CredentialScope, type Customer, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DeviceInfo, type DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type JoinCallResponse, type KnownAccount, type KnownAccountDisplay, type Leaderboard, type LeaderboardEntry, LeaderboardService, type Like, type ListNotificationsParams, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, type MediaPolicy, type MessageCallback, type MessagePin, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type Notification, type NotificationListResponse, NotificationsService, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type PinnedMessagesResponse, type Pipeline, type PipelineVersion, type Policy, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type ReadStatus, RealtimeService, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SearchUsersParams, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StorageSettings, type StrategyResult, type StylePreset, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type UnreadCountResponse, type UpdateFlagRequest, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type WebrtcStats, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, extractClientContext, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
|
|
6599
|
+
export { type AccountBalance, type AccountSwitcherPrivacy, AccountsService, type ActiveUsers, type ActivityItem, AgentAuthService, AgentModelsService, type AgentProfile, AgentProjectsService, type AgentResponse, type AgentSecurityPolicy, AgentSessionsService, type AgentSigningKey, type AgentToken, type AgentToolEntitlement, AgentToolsService, type Workspace as AgentWorkspace, AgentsService, type AggregateOptions, type AggregateResult, type AnalyticsEvent, AnalyticsService, type ApiError, type ApiKey, type ApiResponse, type Appeal, type Application, type Attachment, type Attendee, type AudioRegisterResult, AudioService, type AudioUploadViaStorageResult, type AuditLog, type AuthRegisterAgentRequest, type AuthRegisterAgentResponse, AuthService, type AuthSession, type AuthUser, type BackupCodes, BillingService, type CacheEntry, CacheService, type CalendarEvent, type CallParticipant, type CallSession, type CatalogEntry, CatalogService, type ChatMessage, type ChatReaction, ChatService, type ClaimResult, type Client, type ClientContext, type Collection, type Comment, CommunicationService, type CompletedPart, ComplianceService, type CompressionConfig, ConferenceService, type ConferenceSettings, type ConnectedAccount, type ConnectedAccountSubscription, type ConnectedSetupIntentResponse, type ConnectedSubscriptionListParams, type ConnectionStatus, type ContentFlag, type ContentPolicy, type Conversation, type CostReportDay, type CreateProjectInput as CreateCreatorProjectInput, type CreateFlagRequest, type CreateRuleRequest, type CreateSegmentRequest, type CreateSessionResponse, type CreateVariantRequest, type GenerationJob as CreatorJob, CreatorMakerService, type GenerationOutput as CreatorOutput, type CreatorProject, type CreatorUsage, type Credential, type CredentialScope, type Customer, type DataAccessPolicy, type DataExport, DataService, type DataSource, type DeadLetterJob, type DeviceInfo, type DirectoryUser, type DirectoryUserDetail, type DirectoryUsersListResponse, type Document, type ErrorCode, ErrorCodes, type EventAggregation, EventsService, type FileInfo, type FileStatus, type FlagAuditEntry, type FlagCheck, type FlagCondition, FlagContentService, type FlagDefinition, type FlagDetail, type FlagEnvironment, type FlagEvaluation, type FlagSegment, type FlagVariant, FlagsService, type FollowStatus, type FunctionExecution, type FunctionMetrics, FunctionsService, type Funnel, type FunnelConversion, type GdprRequest, type GenerateInput, type GrantInfo, type GraphEdge, type GraphNode, GraphService, IdentityService, type IdentityType, type IncomingRequestLike, type Invoice, type JobExecution, type JobStats, type JoinCallResponse, type KnownAccount, type KnownAccountDisplay, type Leaderboard, type LeaderboardEntry, LeaderboardService, type Like, type ListNotificationsParams, type Listing, ListingsService, type LogEntry, type LogInput, type LogQueryParams, type LogQueryResponse, type LogRecord, LoggerService, type LoginActivitySummary, type LoginDeviceInfo, type LoginHistoryEntry, type LoginRiskInfo, type MediaPolicy, type MessageCallback, type MessagePin, type MessageStatus, type MetricDataPoint, type MfaStatus, type Model, type ModelEntitlement, type ModelPricing, type ModelProvider, type UsageSummary as ModelUsageSummary, type MultipartCompleteResponse, type MultipartConfig, type MultipartPartUrl, type MultipartPartUrlsResponse, type MultipartStartResponse, type NetworkClass, type Notification, type NotificationListResponse, NotificationsService, type OAuthProvider, type OAuthUrl, OrchestratorService, PHOTO_BREAKPOINTS, type PaginatedResponse, type PaginationMetadata, type PaginationParams, type PartResult, type PartUrl, type Participant, type Payment, type PaymentListParams, type PaymentMethod, type PaymentStatusResponse, type Payout, type PayoutSchedule, type PermissionCheck, type PermissionMatrix, PermissionsService, type PhotoInfo, PhotoService, type PinnedMessagesResponse, type Pipeline, type PipelineVersion, type Policy, type PresenceCallback, type PresenceEvent, type PresignedUploadResponse, type Price, type Product, type Project, type ProjectDocument, type ProjectGrant, type ProjectMember, type PushApiFetcher, type PushPreferences, type PushSettings, type PushSubscriptionInfo, type PushToken, type PushTokenAssociationResult, type PushTopic, type QueryFilter, type QueryOptions, type QuerySort, type QueueJob, QueueService, type ReadStatus, RealtimeService, type RedeemResult, type ReferralAnalytics, type ReferralCampaign, type ReferralProfile, type ReferralStats, ReferralsService, type Refund, type RegisterAgentRequest, type RegisterAgentResponse, type RegisterPushTokenData, type RequestOptions, type ResolvedReferral, type ResumeSession, type Role, type RuntimeTemplate, type RuntimeTemplateVersion, type S3MultipartOptions, type S3MultipartResult, type S3SingleUploadOptions, type S3SingleUploadResult, type S3UploadProgress, ScaleMule, ScaleMuleClient, type ScaleMuleConfig, type SchedulerJob, SchedulerService, type SearchResult, SearchService, type SearchUsersParams, type SecurityLayers, type ServerlessFunction, type ServiceHealth, ServiceModule, type Session, type SessionArtifact, type SessionInfo, type SessionLog, type SessionPoolEntry, type Severity, type ShareLink, type ShortestPathResult, type SignedUrlResponse, type SocialPost, SocialService, type SocialUser, type SsoConfig, type StatusCallback, type StorageAdapter, StorageService, type StorageSettings, type StrategyResult, type StylePreset, type SubmitResult, type Subscription, type TargetingRule, type Task, type TaskAttempt, type TaskTransition, type Team, type TeamInvitation, type TeamMember, TeamsService, type TelemetryPayload, type Tool, type ToolCapability, type ToolIntegration, type TopEvent, type TotpSetup, type Transaction, type TransactionListParams, type TransactionSummary, type TransactionSummaryParams, type Transfer, type TransformOptions, type TransformResult, type TraversalResult, type TtsAccessMode, type TtsAudioInfo, type TtsJobStatus, type TtsListVoicesParams, TtsService, type TtsSpeechMetadata, type TtsSpeechProfile, type TtsSynthesizeParams, type TtsSynthesizeQueuedResult, type TtsSynthesizeReadyResult, type TtsSynthesizeResult, type TtsVoice, type TtsVoicesResponse, type UnreadCountResponse, type UpdateFlagRequest, type UpdateRuleRequest, type UpdateSegmentRequest, type UpdateVariantRequest, type UploadCompleteResponse, type UploadEngineConfig, type UploadFailureReport, type UploadFailureReportResponse, type UploadOptions, type UploadPlan, UploadResumeStore, type UploadStrategy, UploadTelemetry, type UploadTelemetryConfig, type UploadTelemetryEvent, type UpsertEnvironmentRequest, type UsageRecord, type UsageSummary$1 as UsageSummary, type UserRank, type VideoInfo, VideoService, type VideoUploadOptions, WEB_PUSH_SERVICE_WORKER, WebPushManager, type WebPushManagerOptions, type WebPushSubscriptionData, type Webhook, WebhooksService, type WebrtcStats, type Workflow, type WorkflowExecution, type Workspace$1 as Workspace, type WorkspaceInvitation, type WorkspaceMember, WorkspacesService, buildClientContextHeaders, calculateTotalParts, canPerform, createUploadPlan, ScaleMule as default, detectNetworkClass, extractClientContext, generateUploadSessionId, getMeasuredBandwidthMbps, getPartRange, hasMinRoleLevel, resolveStrategy, uploadMultipartToS3, uploadSingleToS3, validateIP };
|
package/dist/index.js
CHANGED
|
@@ -339,6 +339,7 @@ __export(index_exports, {
|
|
|
339
339
|
SocialService: () => SocialService,
|
|
340
340
|
StorageService: () => StorageService,
|
|
341
341
|
TeamsService: () => TeamsService,
|
|
342
|
+
TtsService: () => TtsService,
|
|
342
343
|
UploadResumeStore: () => UploadResumeStore,
|
|
343
344
|
UploadTelemetry: () => UploadTelemetry,
|
|
344
345
|
VideoService: () => VideoService,
|
|
@@ -6559,7 +6560,7 @@ var AudioService = class extends ServiceModule {
|
|
|
6559
6560
|
constructor(client, storage) {
|
|
6560
6561
|
super(client);
|
|
6561
6562
|
this.storage = storage;
|
|
6562
|
-
this.basePath = "/v1/
|
|
6563
|
+
this.basePath = "/v1/audio";
|
|
6563
6564
|
}
|
|
6564
6565
|
/**
|
|
6565
6566
|
* Register a storage-uploaded audio asset with the audio service.
|
|
@@ -6617,6 +6618,35 @@ var AudioService = class extends ServiceModule {
|
|
|
6617
6618
|
}
|
|
6618
6619
|
};
|
|
6619
6620
|
|
|
6621
|
+
// src/services/tts.ts
|
|
6622
|
+
var TtsService = class extends ServiceModule {
|
|
6623
|
+
constructor() {
|
|
6624
|
+
super(...arguments);
|
|
6625
|
+
this.basePath = "/v1/tts";
|
|
6626
|
+
}
|
|
6627
|
+
async synthesize(params, options) {
|
|
6628
|
+
return this.post(
|
|
6629
|
+
"/synthesize",
|
|
6630
|
+
{
|
|
6631
|
+
text: params.text,
|
|
6632
|
+
speech_profile: params.speechProfile,
|
|
6633
|
+
voice: params.voice,
|
|
6634
|
+
model: params.model,
|
|
6635
|
+
provider: params.provider,
|
|
6636
|
+
async: params.async,
|
|
6637
|
+
access_mode: params.accessMode
|
|
6638
|
+
},
|
|
6639
|
+
options
|
|
6640
|
+
);
|
|
6641
|
+
}
|
|
6642
|
+
async getJob(id, options) {
|
|
6643
|
+
return this._get(`/jobs/${id}`, options);
|
|
6644
|
+
}
|
|
6645
|
+
async listVoices(params, options) {
|
|
6646
|
+
return this._get(this.withQuery("/voices", { provider: params?.provider }), options);
|
|
6647
|
+
}
|
|
6648
|
+
};
|
|
6649
|
+
|
|
6620
6650
|
// src/services/queue.ts
|
|
6621
6651
|
var DeadLetterApi = class extends ServiceModule {
|
|
6622
6652
|
constructor() {
|
|
@@ -7468,6 +7498,7 @@ var ScaleMule = class {
|
|
|
7468
7498
|
this.functions = new FunctionsService(this._client);
|
|
7469
7499
|
this.photo = new PhotoService(this._client, this.storage);
|
|
7470
7500
|
this.audio = new AudioService(this._client, this.storage);
|
|
7501
|
+
this.tts = new TtsService(this._client);
|
|
7471
7502
|
this.flagContent = new FlagContentService(this._client);
|
|
7472
7503
|
this.creatorMaker = new CreatorMakerService(this._client);
|
|
7473
7504
|
this.compliance = new ComplianceService(this._client);
|
|
@@ -7649,6 +7680,7 @@ var index_default = ScaleMule;
|
|
|
7649
7680
|
SocialService,
|
|
7650
7681
|
StorageService,
|
|
7651
7682
|
TeamsService,
|
|
7683
|
+
TtsService,
|
|
7652
7684
|
UploadResumeStore,
|
|
7653
7685
|
UploadTelemetry,
|
|
7654
7686
|
VideoService,
|
package/dist/index.mjs
CHANGED
|
@@ -6186,7 +6186,7 @@ var AudioService = class extends ServiceModule {
|
|
|
6186
6186
|
constructor(client, storage) {
|
|
6187
6187
|
super(client);
|
|
6188
6188
|
this.storage = storage;
|
|
6189
|
-
this.basePath = "/v1/
|
|
6189
|
+
this.basePath = "/v1/audio";
|
|
6190
6190
|
}
|
|
6191
6191
|
/**
|
|
6192
6192
|
* Register a storage-uploaded audio asset with the audio service.
|
|
@@ -6244,6 +6244,35 @@ var AudioService = class extends ServiceModule {
|
|
|
6244
6244
|
}
|
|
6245
6245
|
};
|
|
6246
6246
|
|
|
6247
|
+
// src/services/tts.ts
|
|
6248
|
+
var TtsService = class extends ServiceModule {
|
|
6249
|
+
constructor() {
|
|
6250
|
+
super(...arguments);
|
|
6251
|
+
this.basePath = "/v1/tts";
|
|
6252
|
+
}
|
|
6253
|
+
async synthesize(params, options) {
|
|
6254
|
+
return this.post(
|
|
6255
|
+
"/synthesize",
|
|
6256
|
+
{
|
|
6257
|
+
text: params.text,
|
|
6258
|
+
speech_profile: params.speechProfile,
|
|
6259
|
+
voice: params.voice,
|
|
6260
|
+
model: params.model,
|
|
6261
|
+
provider: params.provider,
|
|
6262
|
+
async: params.async,
|
|
6263
|
+
access_mode: params.accessMode
|
|
6264
|
+
},
|
|
6265
|
+
options
|
|
6266
|
+
);
|
|
6267
|
+
}
|
|
6268
|
+
async getJob(id, options) {
|
|
6269
|
+
return this._get(`/jobs/${id}`, options);
|
|
6270
|
+
}
|
|
6271
|
+
async listVoices(params, options) {
|
|
6272
|
+
return this._get(this.withQuery("/voices", { provider: params?.provider }), options);
|
|
6273
|
+
}
|
|
6274
|
+
};
|
|
6275
|
+
|
|
6247
6276
|
// src/services/queue.ts
|
|
6248
6277
|
var DeadLetterApi = class extends ServiceModule {
|
|
6249
6278
|
constructor() {
|
|
@@ -7095,6 +7124,7 @@ var ScaleMule = class {
|
|
|
7095
7124
|
this.functions = new FunctionsService(this._client);
|
|
7096
7125
|
this.photo = new PhotoService(this._client, this.storage);
|
|
7097
7126
|
this.audio = new AudioService(this._client, this.storage);
|
|
7127
|
+
this.tts = new TtsService(this._client);
|
|
7098
7128
|
this.flagContent = new FlagContentService(this._client);
|
|
7099
7129
|
this.creatorMaker = new CreatorMakerService(this._client);
|
|
7100
7130
|
this.compliance = new ComplianceService(this._client);
|
|
@@ -7275,6 +7305,7 @@ export {
|
|
|
7275
7305
|
SocialService,
|
|
7276
7306
|
StorageService,
|
|
7277
7307
|
TeamsService,
|
|
7308
|
+
TtsService,
|
|
7278
7309
|
UploadResumeStore,
|
|
7279
7310
|
UploadTelemetry,
|
|
7280
7311
|
VideoService,
|