Giter Club home page Giter Club logo

ptchatgpt's People

Contributors

crazypoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ptchatgpt's Issues

编译不通过,Build Failed!4个错误,都在OSSSpeech.swift里。

OSSSpeech.swift里编译报错了,4个错误。其中546行: if let speechRecognizer, !speechRecognizer.isAvailable {
报错:Variable binding in a condition requires an initializer
511行: input.installTap(onBus: bus, bufferSize: 8192, format: recordingFormat) { [weak self] (buffer, ) -> Void in
报错:Unable to infer type of a closure parameter '
' in the current context、Unable to infer type of a closure parameter 'buffer' in the current context

ipa request

大佬能不能直接把ipa包发到release里啊,这边用虚拟机的Mac来build实在太崩溃了

为什么不让他帮你写swiftUI?

struct ChatView: View {
let messages = [
ChatMessage(message: "Hello!", isMine: false),
ChatMessage(message: "Hi there!", isMine: true),
ChatMessage(message: "How are you?", isMine: false),
ChatMessage(message: "I'm doing well, thank you.", isMine: true),
ChatMessage(message: "That's great to hear!", isMine: false)
]

let myName = "Me"

let helperName = "Helper"

let myAvatar = "avatar1"

let helperAvatar = "avatar2"

var body: some View {
    List(messages) { message in
        HStack {
            if message.isMine {
                Spacer()
                VStack(alignment: .trailing) {
                    HStack {
                        Text(myName)
                        Image(myAvatar)
                            .resizable()
                            .frame(width: 40, height: 40)
                            .background(.blue)
                            .cornerRadius(20)
                    }
                    Spacer()
                    Text(message.message)
                        .padding()
                        .background(Color.purple)
                        .foregroundColor(.black)
                        .cornerRadius(10)
                        .padding(.horizontal, 50)
                }
            } else {
                VStack(alignment: .leading) {
                    HStack {
                    Image(helperAvatar)
                        .resizable()
                        .frame(width: 40, height: 40)
                        .background(.green)
                        .cornerRadius(20)
                    Text(helperName)
                    }
                    Spacer()
                    Text(message.message)
                        .padding()
                        .background(Color.red)
                        .foregroundColor(.black)
                        .cornerRadius(10)
                        .padding(.horizontal, 50)
                   
                }
                Spacer()
            }
        }
    }
}

}

struct ChatView_Previews: PreviewProvider {
static var previews: some View {
ChatView()
}
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.