Perchance - Create a Random Text Generator

548 readers
14 users here now

⚄︎ Perchance

This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.

Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)

This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.

See this post for the Complete Guide to Posting Here on the Community!

Rules

1. Please follow the Lemmy.World instance rules.

2. Be kind and friendly.

  • Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)

3. Be thankful to those who try to help you.

  • If you ask a question and someone has made a effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)

4. Only post about stuff related to perchance.

  • Please only post about perchance related stuff like generators on it, bugs, and the site.

5. Refrain from requesting Prompts for the AI Tools.

  • We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (text-to-image-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"
  • See Perchance AI FAQ for FAQ about the AI tools.
  • You can ask for help with prompting at the 'sister' community Casual Perchance, which is for more casual discussions.
  • We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

6. Search through the Community Before Posting.

  • Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.

founded 2 years ago
MODERATORS
1
 
 

Welcome to the Perchance Community!

Perchance.org is a platform for sharing and creating random text generators.

This Lemmy community is for:

  • Asking for help with problems, issues, or requests about generators in Perchance
  • Sharing and showcasing your created generators, templates, plugins, or pages in Perchance
  • Starting friendly discussions about topics related to Perchance
If it is your first time in using Lemmy, please check out this message from Lemmy.World and the Support Page from Lemmy.World to get started on using Lemmy.

Posting from Mastodon

Feel free to checkout this post to know how to post in this Lemmy Community through Mastodon.

Other Community Links

Rules

Here are some rules in this community:

  • Please follow the lemmy.world instance rules.
  • Be kind and friendly.
    • Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)
  • Be thankful to those who try to help you.
    • If you ask a question and someone has made an effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)
  • Only post about stuff related to perchance.
    • Please only post about perchance related stuff like generators on it, bugs, and the site.
  • Search through the Community Before Posting
    • Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.

Posting

Here are some optional tags to add in your title to categorize the posts. These are merely tags, you still need to title your post effectively.

  • [Bug] - if you think you find any bug in Perchance, use this tag.
  • [Question] or [Help] - this is to denote that your post is a question or requesting for help
  • [Suggestion] - for any suggestions in Perchance
  • [Feedback] or [Appreciation] - for any feedback or appreciation to any generator or to Perchance in general.
  • [{Generator Category}] - Used to share any generator with the specified category
    • Text, Image, Template, Hub, Plugin, Preprocessor, Community/RP, Game, Experiment, Useful Generator
  • [Fluff] or [Non-Generator] - Non-generator posts but about Perchance
  • [Tutorial] or [Guide] - for any Perchance related tutorials or guides to help others

AI Plugins Posts

Here is a FAQ for the AI tools in Perchance.

We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (text-to-image-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"

There are guides, tutorials, and resources on the internet that can be applied when prompting in the AI tools in Perchance.

We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

If you need help in prompting, please post on the 'sister' forum at Casual Perchance

Getting Started with Perchance

To get started with Perchance, check out the Perchance Tutorial or the Beginner Tutorial at the Perchance Hub Learn Tab to get to know the website.

Asking for help

Feel free to ask for help but please check out these tips on searching for an answer:

  • Check the following pages, to see if your question has already been answered or talked about or a plugin has been made for it. We recommend using the browser's search function (ctrl+f) and searching for similar keywords to your question/problem.
  • If you didn't find anything about your problem there, feel free to search through the posts/articles here:
  • If you can't still find anything related to your problem, feel free to post a thread here.
    • Please title your post effectively.
    • Please provide a link to your generator with your attempts of solving the problem.
    • Try to explain what you want it to do and what example output it should be doing.
2
 
 

Hey everyone!! I'm a retired software engineer and the last few years I have gained a lot of knowledge about HTML/CSS automatic element scaling and responsive design in general. Been pretty busy on Stackoverflow and Codepen in that respect. I just love the perChance philosophy and what you people did with the place and I want to share my knowledge and start to maintain elaborate HTML/CSS/JS files on perChance (with all simple trickery) for everyone to use, starting with generic CSS and some JS convenient oneliner functions. MY QUESTION: what is the best way to store, import and access generic CSS (as well as HTML/JS) on perChance without having to copy content for each generator over and over again.

(I know and/or @import will work just fine, but I want to do it the 'proper perChance' way. I've been here for just a week, so gimme time to dive into the whole list and plugin sharing mechanism....)

3
1
submitted 3 hours ago* (last edited 1 hour ago) by Spinner to c/perchance
 
 

When using a 'select' control added within the 'userInputs' section of the default text-to-image generator: Is it possible to present a list with 'grouped' options (the same as it with HTML)? If so: How does one format the list used by the control?

4
 
 

I'm experiencing an error with text generators, and I'm trying to determine if it's server-related or due to an outage. The issue persists across different browsers (Chrome, Edge, Firefox) and devices (PC, cell phone, Linux box). It occurs whether I'm logged in, in incognito mode, or using different internet connections (Wi-Fi, Ethernet).

Has anyone else encountered this problem, or does anyone have insights into what might be causing it?

5
 
 

So I’ve been using this amazing site to roleplay with characters from movies and shows, and now suddenly I’m getting this error message? Can someone explain to me what happened? Did they shut down AI Character Chat?

This actually depresses me so much because I used it everyday and created some amazing stories, and characters despite every few hours they would all be deleted.

6
 
 

first time trying t2i speak as character, and made first character (Princess Celestia of course), then started creating character 2, Princess Luna, but realized i should copypaste something from Celestia page, so went to it, then, when i was switching back to the as of yet unnamed Luna page, BOOM ERROR. ERRRRRRORRRRRRR!!!

It was horrible.

And then I came here.

The End.

7
1
submitted 2 days ago by thknas to c/perchance
 
 

If you go here: https://perchance.org/ai-text-to-image-generator, enter a prompt, click on the persona/chat button of an image, click generate persona, possibly edit the result, and then click chat with them, it creates a public link with the character's image and the generated/edited text description. How long does that link persist?

8
4
submitted 5 days ago* (last edited 5 days ago) by StupidAiUser to c/perchance
 
 

Hey. Currently the image generator uses this stable-diffusion model. I was wondering if it could be changed to a better and newer model like AUTOMATIC1111 because the current model that it is using hasn't been updated in 3 years, and it is likely outdated. On top of that, the creator(s) are not responding to ANYONE on the github page there (As far as I know). I would like to see this in the future, you don't have to do it though.

9
2
submitted 4 days ago by Typongtv to c/perchance
 
 

Which model does perchance currently implement for its text generator and story generation in particular?

10
 
 

When I try to change the image dimensions for a generated image in the story generator for a character that was imported from ai-character-generator, the image does not change dimensions. Using (resolution:::756x512) keeps the image at a 512x768 resolution. This problem I found is only for characters imported from "ai-character-generator" and not characters made from within the story generator. Is this a known issue that is being fixed?

11
2
submitted 5 days ago by tiocixinha to c/perchance
 
 

It's just my characters that are doing this?

12
 
 

3 questions/issues regarding AI Character Chat...

  • Is the lorebook feature currently broken? While I was able to import a lorebook txt file for the main AI character, when I used /lore to view it, the lore information wasn't displayed - some JS code was shown.
     
  • Are lorebooks for additional characters supported? I have two characters, and each has a separate lorebook txt file. However, the 2nd character is completely unaware of the facts in its own lorebook.
     
  • My observations are that while each character has a custom code block, only the main AI character's block is used; e.g., oc.thread.on("MessageAdded") applies to any message from any character. Character-specific handling needs to be done within this block and code blocks from other characters are ignored. Is this a correct understanding?

Thanks!

13
 
 

I am new to this perchance ai image generation, I am trying to experiment, my requirement is like , I am using html editor for css and ui/ux looks and feels and I am using list editor as backend data storage for my input drop-down options.

-----------------------------In List editor ----------------------

I am trying to do define dd1_data (drop-down options). I just followed the examples from different generators

Dd1_data
    Option1= selected option 1
    Option2 = selected option 2

-----------------------------In HTML editor ----------------------

I am trying to reference the above mentioned drop-down details in html editor. I tried alert method which gives me object datatype for dd1_data with no data. Am I missing something?

<select>Dd1_data</select>

Please help me. My question might be dumb , please help me out as a fellow member of culture 🫠

14
 
 

hello all first post so show mercy I was wondering if I put a url in lorebook function of perchance does it read it and use the information in the page or do I need to make a absolute ton of changes? for example https://xcom.fandom.com/wiki/Ethereal_(XCOM:_Enemy_Unknown) would the story treat this like the new character website function does? thank you in advance

15
3
submitted 1 week ago by Alllo to c/perchance
16
1
[HELP] T or A pose (self.perchance)
submitted 1 week ago by GordyEQ to c/perchance
 
 

I have tried everything I can think of to get perchance image generator to produce images of characters standing in either the classic T or A pose. Also, while I can sometimes convince it to generate an image that is 100% face on to the "camera" and full-length from head to feet inclusive, I cannot get a side or rear view.

What I would really like to do is create 3 high-res images in 1, Front, Side and Rear of the same character with a plain grey background. If anyone has had any consistent luck with all or any part of my goal, I would be very grateful if you could share the appropriate part of your prompt.

I am in the process of teaching myself character modeling and would dearly love a reference source I have full control over. Didn't realize AI could be so "dumb" or "obstinate"

Thanks, in advance for any help you might be able to give.

17
 
 

This could actually really easily detect browser and not suggest chrome if already on chrome. Here's how

18
 
 

So, I'm trying to make Lpheno.pheno produce the phenotype under the Furlength

Example: [Furlength] is LL, then the bottom line will be "They are short-furred". If Furlength is ll then it will say "they are long-furred"

However, I'm struggling with making the pheno under the furlength show up.

Furlength
  LL
    pheno = short
  Ll
    pheno = short
  ll
    pheno = long

What am I doing wrong? D: Apologies if this is a dumb question, I have just been struggling for far too long

19
1
submitted 1 week ago* (last edited 1 week ago) by ProfessorDoc to c/perchance
 
 

I am trying to use my PlayHT API in order to add voice to my character. I am using the custom javascript section in advanced options in order to achieve this. I have a very rudimentary understanding of code so that combined with a bit of ChatGPT for help, I ended up with this:

async function getCustomPlayHTVoices() { const apiKey = "Removed for security"; // Your PlayHT API key const userId = "Removed for security"; // Your PlayHT User ID

try { const response = await fetch("https://api.play.ht/api/v2/cloned-voices", { headers: { "Authorization": Bearer ${apiKey}, "X-User-ID": userId } });

if (!response.ok) throw new Error("Failed to fetch PlayHT voices");

const voices = await response.json();
const customVoices = voices.filter(v => v.name.toLowerCase().includes("arlecchino"));

if (customVoices.length === 0) console.warn("Custom voice 'Arlecchino' not found.");

return customVoices;

} catch (error) { console.error(error); return []; } }

// Populate voice selection dropdown (async () => { const playHTVoices = await getCustomPlayHTVoices(); if (playHTVoices.length === 0) { document.body.innerHTML = "Error fetching PlayHT voices. Check your API key or voice availability."; return; }

const voiceOptions = playHTVoices .map(v => <option value="${v.id}">${v.name}</option>) .join("");

document.body.innerHTML = <p>Please choose a voice:</p> <select id="voiceSelect">${voiceOptions}</select> <br> <button onclick="setVoice()">Submit</button>;

window.chosenVoiceId = playHTVoices[0].id; // Default voice })();

function setVoice() { window.chosenVoiceId = document.getElementById("voiceSelect").value; oc.window.hide(); }

oc.window.show();

// Listen for streamed text and convert it to speech using PlayHT let sentence = ""; oc.thread.on("StreamingMessage", async function (data) { for await (let chunk of data.chunks) { sentence += chunk.text;

// Check for end of sentence OR limit to 200 characters to prevent buffering too much text
let endOfSentenceIndex = sentence.search(/[.!?]/);
if (endOfSentenceIndex !== -1 || sentence.length > 200) {
  let sentenceToSpeak = sentence.slice(0, endOfSentenceIndex + 1 || sentence.length);
  console.log("Speaking sentence:", sentenceToSpeak);
  await textToSpeech({ text: sentenceToSpeak, voiceId: window.chosenVoiceId });
  sentence = sentence.slice(endOfSentenceIndex + 1).trim(); // Reset for next sentence
}

} });

// Function to send text to PlayHT API and play the generated audio async function textToSpeech({ text, voiceId }) { const apiKey = "Removed for security"; // Your PlayHT API key const userId = "Removed for security"; // Your PlayHT User ID

try { const response = await fetch("https://api.play.ht/api/v2/tts/stream", { method: "POST", headers: { "Authorization": Bearer ${apiKey}, "X-User-ID": userId, "Content-Type": "application/json" }, body: JSON.stringify({ text: text, voice: voiceId, format: "mp3" }) });

if (!response.ok) throw new Error("Failed to fetch audio from PlayHT");

const result = await response.json();
console.log("PlayHT Response:", result);

if (!result.audioUrl) throw new Error("No audio URL returned from PlayHT");

return new Promise(resolve => {
  const audio = new Audio(result.audioUrl);
  audio.onended = resolve;
  audio.play();
});

} catch (error) { console.error(error); } }

I would also like to understand where I went wrong so please explain if you know the solution. Apologies as well, I can't get the code to be in a single sheet in preview. I guess that tells me a lot about my ability to code.

20
 
 

Just finished the first full rolling legends edition I hape you enjoy here it was made by my knowledge and some parts my trusted ai companion here is the link to the game: https://perchance.org/rolling-legends-by-ardy

21
 
 

Isn't the gen AI supposed to only edit the HTML panel, and only when prompted? It's actively wrecking my code with random linebreaks and nonsense declarations every time I try to edit, and I can't stop it! Surely the Perchance devs haven't made their site break the entire point of using the site ON PURPOSE?

22
3
Collaboration Request (www.klinza.eu)
submitted 1 week ago by guforosso to c/perchance
 
 

Hi, I have developed a window style UI, my toy is in js php mysql, I would like to include image generation and storage as an application within my project. for the generation of images, and also the chat interaction (which would be interesting to have bots specialized in the topic) I hope this will be of interest,

23
 
 

When looking up the worldbuilding generators, a lot of them seem focused on geopolitical nature of the world or on a pre-existing setting or system. I'm looking to use a generator to work with the AI to do things from scratch with - generating pantheon, the nature of magic, what the races are, the different types of fantastical biomes, etc. Does anyone have any recommendations for AI generators/chatbots that are good at that kind of thing?

This would need to be a nsfw-friendly bot. The ultimate goal is to feed info of this world generated with the AI into an adventure/dungeon crawl RPG style bot and send a party on a pervy dungeon crawl.

24
 
 

I’m trying to use the image I created as a book cover and sell the book. It’s that okay?

25
 
 

Hello there, this is my first post, and I was curious what AI picture generator would be best for creating pictures of a character like this? (this picture is an in -game photo just as an example) I figured this may be something a lot of generators had trouble with.

And also is this the correct section? It's the only topic I saw that had anything related to AI/generators.

view more: next ›