Search Results for

    Show / Hide Table of Contents

    Class TranslationService

    Inheritance
    object
    CrudServiceBase<OpenAIClient>
    TranslationService
    Implements
    ICrudService
    Inherited Members
    CrudServiceBase<OpenAIClient>.client
    CrudServiceBase<OpenAIClient>.ApiKey
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.OpenAI.Services
    Assembly: Glitch9.AIDevKit.Provider.OpenAI.dll
    Syntax
    public sealed class TranslationService : CrudServiceBase<OpenAIClient>, ICrudService

    Constructors

    | Edit this page View Source

    TranslationService(OpenAIClient)

    Declaration
    public TranslationService(OpenAIClient client)
    Parameters
    Type Name Description
    OpenAIClient client

    Fields

    | Edit this page View Source

    k_Endpoint

    Declaration
    public const string k_Endpoint = "VERSION/audio/translations"
    Field Value
    Type Description
    string

    Methods

    | Edit this page View Source

    CreateAsync(OpenAITranslationRequest, RequestOptions)

    Translates audio into English.

    Declaration
    public UniTask<string> CreateAsync(OpenAITranslationRequest request, RequestOptions options = null)
    Parameters
    Type Name Description
    OpenAITranslationRequest request
    RequestOptions options
    Returns
    Type Description
    UniTask<string>

    Implements

    ICrudService

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation