Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rime Integration #12

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"location" : "https://github.com/PreternaturalAI/AI.git",
"state" : {
"branch" : "main",
"revision" : "3bebc493f6dea616f5333c2417e4594ce5cf5a77"
"revision" : "da07ef54dade7ae04686679f0858e9dea7437a1e"
}
},
{
Expand All @@ -34,7 +34,7 @@
"location" : "https://github.com/vmanot/CorePersistence.git",
"state" : {
"branch" : "main",
"revision" : "76191333e43123b0c8417094fecbb0d2a522a59a"
"revision" : "38fd5271fa906a2d8395e4b42724142886a3c763"
}
},
{
Expand All @@ -61,7 +61,7 @@
"location" : "https://github.com/vmanot/Swallow.git",
"state" : {
"branch" : "master",
"revision" : "77ba4912b07d6be4ed76262b4cb6fb5426e171c0"
"revision" : "6227a1114e341daf54e90df61e173599b187a9b1"
}
},
{
Expand Down Expand Up @@ -115,7 +115,7 @@
"location" : "https://github.com/SwiftUIX/SwiftUIX.git",
"state" : {
"branch" : "master",
"revision" : "db0412aa1ef59ddff357432bf2e416e38a34cdb2"
"revision" : "836fc284a9bb07fc9ab6d2dce6ebd0e32aabde26"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,52 @@ extension Sideproject.ExternalAccountTypeDescriptors {

}
}

@HadeanIdentifier("foluv-jufuk-zuhok-hofid")
public struct PlayHT: Sideproject.ExternalAccountTypeDescriptor, _StaticInstance {
public var accountType: Sideproject.ExternalAccountTypeIdentifier {
"com.vmanot.playht"
}

public var credentialType: any Sideproject.ExternalAccountCredential.Type {
Sideproject.ExternalAccountCredentialTypes.APIKey.self
}

public var icon: Image? {
Image("logo/playht", bundle: .module)
}

public var title: String {
"PlayHT"
}

public init() {

}
}

@HadeanIdentifier("tohaz-zivir-bosov-minog")
public struct Rime: Sideproject.ExternalAccountTypeDescriptor, _StaticInstance {
public var accountType: Sideproject.ExternalAccountTypeIdentifier {
"com.vmanot.rime"
}

public var credentialType: any Sideproject.ExternalAccountCredential.Type {
Sideproject.ExternalAccountCredentialTypes.APIKey.self
}

public var icon: Image? {
Image("logo/rime", bundle: .module)
}

public var title: String {
"Rime"
}

public init() {

}
}
}

// MARK: - Supplementary
Expand Down Expand Up @@ -509,6 +555,21 @@ extension Sideproject.ExternalAccountTypeDescriptor where Self == Sideproject.Ex
}
}

extension Sideproject.ExternalAccountTypeDescriptor where Self == Sideproject.ExternalAccountTypeDescriptors.PlayHT
{
public static var playht: Self {
Self()
}
}

extension Sideproject.ExternalAccountTypeDescriptor where Self == Sideproject.ExternalAccountTypeDescriptors.Rime
{
public static var rime: Self {
Self()
}
}


// MARK: - Deprecated

extension Sideproject {
Expand Down
4 changes: 4 additions & 0 deletions Sources/Sideproject/Intramodular/Sideproject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,10 @@ extension Sideproject.ExternalAccountTypeIdentifier: _MIServiceTypeIdentifierCon
return ._Groq
case Sideproject.ExternalAccountTypeDescriptors.ElevenLabs().accountType:
return ._ElevenLabs
case Sideproject.ExternalAccountTypeDescriptors.PlayHT().accountType:
return ._PlayHT
case Sideproject.ExternalAccountTypeDescriptors.Rime().accountType:
return ._Rime
default:
throw Never.Reason.unexpected
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "playht.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "RimeSpeechTech_Logo.2582e20f.svg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading