-
Notifications
You must be signed in to change notification settings - Fork 27
/
types.go
31 lines (26 loc) · 1.09 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2024 Deepgram SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT
package interfaces
import (
interfaces "github.com/deepgram/deepgram-go-sdk/pkg/client/interfaces"
)
/***********************************/
// Request/Input structs
/***********************************/
type SpeakOptions interfaces.SpeakOptions
/***********************************/
// response/result structs
/***********************************/
type SpeakResponse struct {
ContextType string `json:"content_type,omitempty"`
RequestID string `json:"request_id,omitempty"`
ModelUUID string `json:"model_uuid,omitempty"`
Characters int `json:"characters,omitempty"`
ModelName string `json:"model_name,omitempty"`
TransferEncoding string `json:"transfer_encoding,omitempty"`
Date string `json:"date,omitempty"`
Filename string `json:"filename,omitempty"`
}
// ErrorResponse is the Deepgram specific response error
type ErrorResponse interfaces.DeepgramError