@vot.js/core
Advanced tools
Comparing version 2.1.12 to 2.1.13
@@ -5,3 +5,3 @@ import { StreamTranslationResponse, SubtitlesResponse, VideoTranslationAudioResponse, VideoTranslationResponse, YandexSessionResponse } from "@vot.js/shared/protos"; | ||
export declare const yandexProtobuf: { | ||
encodeTranslationRequest(url: string, duration: number, requestLang: string, responseLang: string, translationHelp: TranslationHelp[] | null, { forceSourceLang, bypassCache, useNewModel, }?: TranslationExtraOpts): Uint8Array<ArrayBufferLike>; | ||
encodeTranslationRequest(url: string, duration: number, requestLang: string, responseLang: string, translationHelp: TranslationHelp[] | null, { forceSourceLang, wasStream, videoTitle, bypassCache, useNewModel, }?: TranslationExtraOpts): Uint8Array<ArrayBufferLike>; | ||
decodeTranslationResponse(response: ArrayBuffer): VideoTranslationResponse; | ||
@@ -8,0 +8,0 @@ encodeTranslationAudioRequest(url: string, translationId: string, audioBuffer: AudioBufferObject, partialAudio?: PartialAudioObject): Uint8Array<ArrayBufferLike>; |
import { StreamPingRequest, StreamTranslationRequest, StreamTranslationResponse, SubtitlesRequest, SubtitlesResponse, VideoTranslationAudioRequest, VideoTranslationAudioResponse, VideoTranslationRequest, VideoTranslationResponse, YandexSessionRequest, YandexSessionResponse, } from "@vot.js/shared/protos"; | ||
export const yandexProtobuf = { | ||
encodeTranslationRequest(url, duration, requestLang, responseLang, translationHelp, { forceSourceLang = false, bypassCache = false, useNewModel = true, } = {}) { | ||
encodeTranslationRequest(url, duration, requestLang, responseLang, translationHelp, { forceSourceLang = false, wasStream = false, videoTitle = "", bypassCache = false, useNewModel = true, } = {}) { | ||
return VideoTranslationRequest.encode({ | ||
@@ -14,2 +14,3 @@ url, | ||
responseLanguage: responseLang, | ||
wasStream, | ||
unknown2: 1, | ||
@@ -19,2 +20,3 @@ unknown3: 1, | ||
useNewModel, | ||
videoTitle, | ||
}).finish(); | ||
@@ -21,0 +23,0 @@ }, |
@@ -26,4 +26,6 @@ import type { | ||
forceSourceLang: Type.Optional(Type.Boolean()), | ||
wasStream: Type.Optional(Type.Boolean()), | ||
bypassCache: Type.Optional(Type.Boolean()), | ||
useNewModel: Type.Optional(Type.Boolean()) | ||
useNewModel: Type.Optional(Type.Boolean()), | ||
videoTitle: Type.Optional(Type.String()) | ||
}) | ||
@@ -30,0 +32,0 @@ |
@@ -10,4 +10,6 @@ import type { RequestLang, ResponseLang, RequestHeaders } from "@vot.js/shared/types/data"; | ||
forceSourceLang?: boolean; | ||
wasStream?: boolean; | ||
bypassCache?: boolean; | ||
useNewModel?: boolean; | ||
videoTitle?: string; | ||
}; | ||
@@ -14,0 +16,0 @@ export type AudioBufferObject = { |
{ | ||
"name": "@vot.js/core", | ||
"description": "core package", | ||
"version": "2.1.12", | ||
"version": "2.1.13", | ||
"author": "Toil", | ||
@@ -90,3 +90,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@vot.js/shared": "^2.1.12" | ||
"@vot.js/shared": "^2.1.13" | ||
}, | ||
@@ -93,0 +93,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
69731
1292
Updated@vot.js/shared@^2.1.13