Documentation ¶
Index ¶
- func OnInit(config map[string]interface{}, option ...Option) (err error)
- func Translation_Text_Base(ctx context.Context, original string, from, to string) (result string, err error)
- func Translation_Text_GoogleV3(ctx context.Context, original string, from, to string) (result string, err error)
- func Translation_Voice(ctx context.Context, original []byte, from string) (result string, err error)
- type ISys
- type Option
- type Options
- type Translation
- func (this *Translation) Translation_Text_Base(ctx context.Context, original string, from, to string) (result string, err error)
- func (this *Translation) Translation_Text_GoogleV3(ctx context.Context, original string, from, to string) (result string, err error)
- func (this *Translation) Translation_Voice(ctx context.Context, original []byte, from string) (result string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Translation_Text_Base ¶
Types ¶
type ISys ¶
type ISys interface { Translation_Text_Base(ctx context.Context, original string, from, to string) (result string, err error) Translation_Text_GoogleV3(ctx context.Context, original string, from, to string) (result string, err error) Translation_Voice(ctx context.Context, original []byte, from string) (result string, err error) }
type Translation ¶
type Translation struct {
// contains filtered or unexported fields
}
func (*Translation) Translation_Text_Base ¶
func (this *Translation) Translation_Text_Base(ctx context.Context, original string, from, to string) (result string, err error)
文字翻译
func (*Translation) Translation_Text_GoogleV3 ¶
func (this *Translation) Translation_Text_GoogleV3(ctx context.Context, original string, from, to string) (result string, err error)
文字翻译
func (*Translation) Translation_Voice ¶
func (this *Translation) Translation_Voice(ctx context.Context, original []byte, from string) (result string, err error)
语音转文字
Click to show internal directories.
Click to hide internal directories.