SkillAgentSearch skills...

Symposium2023

Demonstrates Voice Recognition, Text to Speech, Language Translation, OAuth2, Image Generation, Face Detection and Voice Chatbot.

Install / Use

/learn @geoffsmith82/Symposium2023

README

Artificial Intelligence and ChatGPT

Source code and Documentation for my ADUG Symposium Talk presented on the 28th of April 2023.

I have since added to and continue to enhance the code to further demonstrate capabilities of AI, adding things that wasn't available at the time.

The goal of this project is to enable delphi users to be able to use AI technology in their applications. There are many different types of AI and thousands of different models. This project is working on creating generalized interfaces to the different types of AI models and make them easily accessible.

Artificial intelligence (AI) is an interdisciplinary field that combines computer science, mathematics, and cognitive psychology to create intelligent systems capable of performing complex tasks. Its rapid advancements have led to a wide array of applications demonstrating AI's versatility.

Language translation is one such application, where AI-powered tools efficiently translate between languages, simplifying tasks like translating software programs for global audiences. AI also excels in human-like conversations, with interactive applications that understand and respond to human language naturally. Voice recognition and real-time speech-to-text allow conversion and seamless voice-based interactions, making AI-driven applications more accessible and user-friendly.

In creative and artistic domains, AI can generate images based on textual descriptions, showcasing its capacity to understand and produce visual content. AI's computer vision capabilities enable it to accurately recognize faces and other objects in photographs and documents, illustrating its potential in visual recognition tasks and diverse applications like security and automation.

AI's ability to analyze and process data, and generate comprehensive reports highlights its value in various domains. Furthermore, AI-powered tools can transcribe audio files into written text, making transcription tasks more efficient and accurate.

The example programs below is an attempt to demonstrate the capabilities available to Delphi programmers today. I have worked on creating generic API's so that different providers can be swapped in or out to:

  • experiment
  • follow the current leading AI model
  • make it easy to change based on price
  • avoid vendor lockin
  • or for any other reason.

ChatGPT Prompts

Some Example GPT Prompts

Presentation Slides from Original 2023 ADUG Symposium

Example programs

  • ChatGPTAction
    • Simple Server app that can be added to a ChatGPT GPT action to allow your computer to write delphi code. See AI Generated Delphi for some example programs created with ChatGPTAction.
  • EmbeddingsDemo
    • Simple demo showing how Embeddings work
  • Talk
    • Program demonstrating calling various Text to Speech API's and the different voices available (FMX)
  • Translate
    • translates between languages using the various cloud API's.
    • Simplify translating Delphi programs when using Delphi's built-in multi language resource support.
  • DelphiChatGPT
    • write questions to ChatGPT and have it speak the answer. image
  • FaceDetection
    • Detect faces in a photo. image
  • Weather
    • Query the weather forcast for Bendigo from the bureau of meteorology generate a paragraph or two and read it out image
  • TranscribeAudio
    • Upload a audio file and have it translated via a cloud speech to text api.
  • VoiceRecognition
    • convert speech to text in real-time straight from your microphone, feed it to OpenAI's GPT and have the response read back to you. image
  • Image generation
    • generate an image using text that you provide using OpenAI's DALLE-2 and DALLE-3 API.
  • MCP
    • creates a Media Context Protocol (MCP) Server demonstrates the MCP protocol querying for current weather conditions.
  • ProcessInvoice
    • from a pdf invoice extract out the important details and format as a machine readable JSON string
  • TestAPIs
    • A project to test out the different API's and the functionality of the API's

Project Supports LLM Features

| Feature | GPT-4o | Azure OpenAI Service | Groq | xAI's Grok | Anthropic's Claude | Google's Gemini | Mistral | DeekSeek | |----------------------|--------|-----------------------|------|------------|--------------------|-----------------|--------|----------| | Vision Support | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | * | | Function Calling | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | Image Generation | | | | ✔ % | | | | | | Audio Output | | | | | | | | | | Structured Outputs| | | | | | | | |

*Feature not currently supported/implementated

% Supported via separate Image Generation API.

Questions / Need Help?

Create an issue and I will respond to it.

Providers Used/Available

  • Google - Text to Speech, LLM, Translate
  • Microsoft Azure - Text to Speech, GPT, Translate
  • Amazon - Text to Speech, Translate
  • Anthropic claude-3-opus, claude-3-7-sonnet and claude-3-5-haiku, supporting one of largest context windows currently available (200k tokens)
  • X.AI grok LLM
  • Replicate access a wide range of models
  • Huggingface access a wide range of models
  • OpenRouter access a wide range of models
  • ElevenLabs Text to Speech and Voice Cloning
  • OpenAI Text to Speech, Whisper Voice Recognition, DALLE-2, DALLE-3 Image Generation, GPT4 LLM
  • AssemblyAI Voice Recognition
  • DeepGram Voice Recognition
  • Rev.AI Voice Recognition
  • Conqui-ai Run a variaty of text to speech models locally from a docker container
  • CodeProject-Ai Local Face Detection.

Getting the projects working

  • Each of the cloud API's need to have been setup in their respective developer consoles.
  • Run the TestAPIs project and select the Settings->API Keys... menu item. Add the api for the providers you want to use.
  • If you're not using a particular provider you don't need a key for it. Just leave the key blank in the API Keys dialog.

Questions about code and how to set things up

  • Please feel free to raise issues about any questions you have about the code. I know there is a lot to this project and lots to setup, so I would like to improve the documentation to make it easy for everyone to use all the parts of this project.

Potential future areas of research/study

  • Using Embeddings to search large datasets
  • Using Python4Delphi to be able to call various Python AI libraries from Delphi.

Artificial Intelligence Related links

External Libraries required to build projects

Related Skills

Hook Development

92.1k

This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.

MCP Integration

92.1k

This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", "connect external service", mentions "${CLAUDE_PLUGIN_ROOT} with MCP", or discusses MCP server types (SSE, stdio, HTTP, WebSocket). Provides comprehensive guidance for integrating Model Context Protocol servers into Claude Code plugins for external tool and service integration.

Plugin Structure

92.1k

This skill should be used when the user asks to "create a plugin", "scaffold a plugin", "understand plugin structure", "organize plugin components", "set up plugin.json", "use ${CLAUDE_PLUGIN_ROOT}", "add commands/agents/skills/hooks", "configure auto-discovery", or needs guidance on plugin directory layout, manifest configuration, component organization, file naming conventions, or Claude Code plugin architecture best practices.

Skill Development

92.1k

This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.

View on GitHub
GitHub Stars62
CategoryCustomer
Updated23d ago
Forks16

Languages

Pascal

Security Score

100/100

Audited on Mar 8, 2026

No findings