Williams spoke playfully and candidly about family, competition, and her accidentally unveiled pregnancy during an on-stage chat with journalist Gayle King at the TED Conference here last night.
Williams said she had made a practice of taking a photo of herself each week, to document the progress of her pregnancy, when she accidentally posted a picture of herself in a swimsuit on social media.
She had shared the news with only a few people until the now widely seen image.
Williams said she learned she was pregnant just two days before the Australian Open, which she went on to win.
More From This Section
She told of being nervous about playing, uncertain whether it would be too dangerous for her or the baby.
Williams said she played differently, shutting out fatigue and stress. Everyone expected her to win the tournament, and few knew she was a mom-to-be.
"I had to take any negative emotions, bottle them up and figure out what the next step was," Williams said.
"Playing Venus is like playing myself; she is my toughest opponent," Williams said.
"On the court, we are mortal enemies, but the moment we shake hands we are best friends again. It might be a day later for me if I lose."
In champion form, she admitted to loathing losing and loving victory.
But, if you do lose, learn from it and improve don't make the same mistakes in the future, she advised.
Kelly Bush Novak, Williams' publicist, had said this week that the US star "looks forward to returning in 2018" and that was echoed by her coach Patrick Mouratoglou.
"I definitely plan on coming back," Williams said of her tennis future.
"My baby is going to be in the stands, hopefully cheering for me and not crying too much."
In December, Williams announced her engagement to tech entrepreneur Alexis Ohanian and will not play again this year.
She said that the next chapter in her life will include her baby, staying fit, playing tennis and working on her fashion line.